Re: show all;

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: show all;
Дата
Msg-id 200106021630.f52GUXA13107@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: show all;  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
> The problem is that they don't want to change the log levels.  They are
> using BEGIN;COMMIT; as an automatic thing in the PHP interface to close
> any open transaction before passing the persistent connection to another
> user.  This is a special case.

My original question has not been answered.  Is BEGIN;COMMIT; the proper
way for persistent connections to abort any transaction left open?

ABORT throws a message in the log each time if there is no open
transaction, which seems wrong for this usage.

BEGIN;COMMIT will throw an elog message if there is an open
transaction, but that is OK because it is quite rare to happen.

With this and RESET ALL, persistent connections will be safe.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: show all;
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: AW: [HACKERS] Re: Support for %TYPE in CREATE FUNCTION