| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Greg Stark <gsstark(at)mit(dot)edu> |
| Cc: | PostgreSQL General Discussion <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Status of interactive psql's error handling? |
| Date: | 2005-06-01 21:40:31 |
| Message-ID: | 200506012140.j51LeVb29034@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Greg Stark wrote:
>
> What's the current status on psql handling typos and interrupts more usefully
> by automatically encapsulating every statement in a savepoint? I'm just
> curious whether it's already in for 8.1 or if it got stalled.
>
> I ask because I just got bit again by a typo where I accidently deleted the
> wrong data and would dearly love to be able to start using autocommit=off so I
> can double check my ad-hoc database work before committing. I adopted this
> when I was working with Oracle and it saved my life more times than I can
> remember. But it's really not feasible if every typo requires starting from
> scratch.
psql in 8.1 will have:
\set ON_ERROR_ROLLBACK interactive
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | mark.lubratt | 2005-06-01 21:57:35 | Re: SRFs returning records from a view |
| Previous Message | Joshua D. Drake | 2005-06-01 21:39:43 | Re: SRFs returning records from a view |