Re: Does psql use nested transactions?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: "Philip Warner" <pjw(at)rhyme(dot)com(dot)au>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Does psql use nested transactions?
Date: 2004-08-11 15:47:35
Message-ID: 5898.1092239255@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>> Should psql run every statement in a nested transaction and only rollback
>> that TX?

> psql is designed to follow the same logical statement progression as any
> other connection to the database. Your suggestion could muck up sql
> scripts piped through it to the database.

The other objection is that this would create very substantial overhead.

It might be reasonable to offer that behavior as an option, but I think
I'd only want it on for interactive input.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Harald Fuchs 2004-08-11 15:49:22 Re: Add Missing From?
Previous Message Philip Warner 2004-08-11 15:46:52 pg_restore (libpq? parser?) bug in 8