Getting the encoding of a Postgres database

前端 未结 6 443
感情败类
感情败类 2021-01-30 09:57

I have a database, and I need to know the default encoding for the database. I want to get it from the command line.

6条回答
  •  抹茶落季
    2021-01-30 10:38

    Because there's more than one way to skin a cat:

    psql -l
    

    Shows all the database names, encoding, and more.

提交回复
热议问题