[postgresql] Getting the encoding of a Postgres database