Jason Armstrong <ja(at)riverdrums(dot)com> writes:> How do I get the name of a database from a directory on disk (eg> $datadir/base/16494)?
That number should match the pg_database.oid column.
regards, tom lane