Error Dumping Postgres Database

21 Mar 2021, 9:24 p.m.
00:31 minutes

When dumping database

sudo -u postgres pg_dump database-name  > dump.sql

You get an error that looks like

perl: warning: Falling back to the standard locale ('c')
perl: warning: Falling back to the standard locale ('c').

The fix

dpkg-reconfigure locales

For completeness, we should also talk about importing a database

su postgres
psql -U postgres  database-name  > dump.sql

Captcha: What's the standard TCP port of the following service?

captcha

0 comments