proposal: pg_restore --convert-to-text

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: proposal: pg_restore --convert-to-text
Date: 2019-02-13 22:56:04
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

One of the remarkably common user errors with pg_restore is users
leaving off the -d option. (We get cases of it regularly on the IRC
channel, including one just now which prompted me to finally propose

I propose we add a new option: --convert-to-text or some such name, and
then make pg_restore throw a usage error if neither -d nor the new
option is given.


(Yes, it will break the scripts of anyone who is currently scripting
pg_restore to output SQL text. How many people do that?)

Andrew (irc:RhodiumToad)


Browse pgsql-hackers by date

  From Date Subject
Next Message James Sewell 2019-02-13 23:00:01 Re: Reaping Temp tables to avoid XID wraparound
Previous Message Tom Lane 2019-02-13 22:37:56 Re: Using POPCNT and other advanced bit manipulation instructions