Joe Conway <mail(at)joeconway(dot)com> writes:
> We have very strange behavior from an internal production database.
> There are multiple symptoms, all pointing to a problem with clusterwide
> tables. For example:
"psql -l" really should produce the same results as doing "\l" in the
template1 database. Does it? If so, the next thing to look at is
probably whether the pg_class and pg_attribute entries for pg_database
look the same in template1 and in cyspec. Similarly you could compare
what pg_shadow looks like from different databases, and what the local
system tables have as entries for it.
regards, tom lane