pg_dump 'die on errors' option

Started by Fabien COELHOalmost 22 years ago3 messagespatches
Jump to latest
#1Fabien COELHO
coelho@cri.ensmp.fr

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
#2Bruce Momjian
bruce@momjian.us
In reply to: Fabien COELHO (#1)
Re: pg_dump 'die on errors' option

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?

http://archives.postgresql.org

-- 
  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
#3Bruce Momjian
bruce@momjian.us
In reply to: Fabien COELHO (#1)
Re: pg_dump 'die on errors' option

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?

http://archives.postgresql.org

-- 
  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

Attachments:

/bjm/difftext/plainDownload+33-14