Re: Does psql use nested transactions?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Philip Warner <pjw(at)rhyme(dot)com(dot)au>, Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Does psql use nested transactions?
Date: 2004-08-17 18:56:19
Message-ID: 8608.1092768979@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Doing it only for interactive mode seems too error-prone to me (it works
> in psql, but not from my script).

You're missing the point: a script cannot safely work this way. A human
typing at the terminal can notice that his command failed and react to
that, but a psql script cannot.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2004-08-17 19:15:18 7.3.7 packaged ...
Previous Message Bruce Momjian 2004-08-17 18:44:18 Re: Does psql use nested transactions?