My question is similar to this I even vote up it, but unfortunately in my case I have text
dump and I can not restore using pg_restore
=(
zcat /home/kes/work/projects/bennet/db/bennet.sql.gz | \
pg_restore -h 127.0.0.1 -p 5432 -U bennet --no-owner --role=bennet -d bennet
pg_restore: error: input file appears to be a text format dump. Please use psql.
But psql
has no role
and no-owner
options
Is there a way to restore text
dump on different owner?