pg_dump 'die on errors' option
Dear patchers,
Please find attached a submission to add a "die on errors" option to
pg_restore, as it seems that some people have scripts that rely on the
previous "abort on error" default behavior when restoring data with a
direct connection.
It works for me. Maybe Philip could test that it works for him?
Have a nice day,
--
Fabien Coelho - coelho@cri.ensmp.fr
Attachments:
die_on_errors_option.patchtext/plain; charset=US-ASCII; name=die_on_errors_option.patchDownload+26-7
I might rename this option for constency.
Your patch has been added to the PostgreSQL unapplied patches list at:
http://momjian.postgresql.org/cgi-bin/pgpatches
It will be applied as soon as one of the PostgreSQL committers reviews
and approves it.
---------------------------------------------------------------------------
Fabien COELHO wrote:
Dear patchers,
Please find attached a submission to add a "die on errors" option to
pg_restore, as it seems that some people have scripts that rely on the
previous "abort on error" default behavior when restoring data with a
direct connection.It works for me. Maybe Philip could test that it works for him?
Have a nice day,
--
Fabien Coelho - coelho@cri.ensmp.fr
Content-Description:
[ Attachment, skipping... ]
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Patch applied. Thanks.
I renamed 'die-on-errors' to 'exit-on-error' which I think was clearer.
Modified patch attached.
---------------------------------------------------------------------------
Fabien COELHO wrote:
Dear patchers,
Please find attached a submission to add a "die on errors" option to
pg_restore, as it seems that some people have scripts that rely on the
previous "abort on error" default behavior when restoring data with a
direct connection.It works for me. Maybe Philip could test that it works for him?
Have a nice day,
--
Fabien Coelho - coelho@cri.ensmp.fr
Content-Description:
[ Attachment, skipping... ]
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073