| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com> |
| Cc: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-patches(at)postgresql(dot)org, Chad Wagner <chad(dot)wagner(at)gmail(dot)com> |
| Subject: | Re: \prompt for psql |
| Date: | 2007-02-09 15:14:01 |
| Message-ID: | 20070209151401.GE4253@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
Gurjeet Singh wrote:
> On 2/9/07, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
> >
> >At least it'd help those poor people trying to do conditional COMMIT or
> >ROLLBACK based on the transaction status.
>
>
> The user doesn't need to check the status of the transaction if he just
> needs to end it. Just fire the END command and it'll take care of whether to
> COMMIT or ROLLBACK the transaction:
Hmm, right. Maybe I was thinking in savepoints, which Merlin Moncure is
so fond of complaining of ;-)
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Merlin Moncure | 2007-02-09 15:27:35 | Re: \prompt for psql |
| Previous Message | Alvaro Herrera | 2007-02-09 15:01:17 | Re: [HACKERS] plpgsql, return can contains any expression |