Re: pgsql: Add psql option: -1 or --single-transaction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Add psql option: -1 or --single-transaction
Date: 2006-02-14 14:57:02
Message-ID: 13782.1139929022@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> How should it work?

> 1. Remove the BEGIN and COMMIT around blobs?
> 2. Use SAVEPOINT ?

> Presumably (1).

Yeah, there is no need for the per-blob begin/commit if we've got one
around the whole restore.

One thing to be careful of is not to suppress BEGINs that are sent on
the dumping side --- it's sometimes hard to tell which parts of pg_dump
execute when.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2006-02-14 15:01:07 Re: pgsql: Add psql option: -1 or --single-transaction
Previous Message Simon Riggs 2006-02-14 14:49:34 Re: pgsql: Add psql option: -1 or --single-transaction