Re: [PATCHES] Continue transactions after errors in psql - Mailing list pgsql-hackers

From Joshua D. Drake
Subject Re: [PATCHES] Continue transactions after errors in psql
Date
Msg-id 426E53BD.1040806@commandprompt.com
Whole thread Raw
In response to Re: [PATCHES] Continue transactions after errors in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] Continue transactions after errors in psql
List pgsql-hackers
> I would far rather see people code explicit markers around statements
> whose failure can be ignored.  That is, a script that needs this
> behavior ought to look like
>
>     BEGIN;
>     \begin_ignore_error
>     DROP TABLE foo;
>     \end_ignore_error
>     CREATE ...
>     ...
>     COMMIT;

That seems awful noisy. Why not just:

       BEGIN:
       DROP TABLE foo;
       ERROR: table foo does not exist;
       CONTINUE;
       etc....

Sincerely,

Joshua D. Drake
Command Prompt, Inc.




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Continue transactions after errors in psql
Next
From: Harald Fuchs
Date:
Subject: Re: Continue transactions after errors in psql