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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Add psql option: -1 or --single-transaction
Дата
Msg-id 13551.1139927713@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Add psql option: -1 or --single-transaction  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: pgsql: Add psql option: -1 or --single-transaction  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-committers
Simon Riggs <simon@2ndquadrant.com> writes:
> On Tue, 2006-02-14 at 16:55 +0800, Christopher Kings-Lynne wrote:
>> Huh?  But it'll cause a total failure of dump restore?

> Perhaps you can explain further?

As the code stands, a restore involving blobs plus --single-transaction
produces
    BEGIN;
    ...
    BEGIN;
    ...
    COMMIT;
    ...
    COMMIT;
which does *not* have the intended behavior because BEGIN does not nest.
This is a must-fix, else we may as well revert the patch entirely,
because it does not work.

            regards, tom lane

В списке pgsql-committers по дате отправления:

Предыдущее
От: fxjr@pgfoundry.org (User Fxjr)
Дата:
Сообщение: npgsql - Npgsql2: Imported Sources
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: pgsql: Add psql option: -1 or --single-transaction