Re: NOTICE: there is no transaction in progress

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: NOTICE: there is no transaction in progress
Дата
Msg-id 4A8276C7.1020807@archonet.com
обсуждение исходный текст
Ответ на NOTICE: there is no transaction in progress  ("Rodrick Hales" <RHALES@mstc.state.ms.us>)
Список pgsql-general
Rodrick Hales wrote:
> We have two machines that run a C application that interfaces with a
> Postgres database.  They are our development and production machines.
> The version is PostgreSQL 8.3.7 on i686-redhat-linux-gnu, complied by
> GCC gcc (GCC) 4.1.2.20071124 (Red Hat 4.1.2-42) .
>
> On the development machine,  I don't get notices and warnings related
> to Postgres SQL commands.  COMMIT and ABORT are likely the culprits.
> On the production machine I do.

The message you mention would be to a COMMIT/ROLLBACK being issued
without a BEGIN. I think the setting you are after is probably
client_min_messages (ch 18 of the manuals). One machine is probably set
to NOTICE and one to WARNING.

Some useful commands:
   SHOW client_min_messages;
   ALTER DATABASE db1 SET client_min_messages = 'WARNING';
   ALTER USER u1 SET client_min_messages = ...

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Best way to "mask" password in DBLINK
Следующее
От: "Ow Mun Heng"
Дата:
Сообщение: Re: Best way to "mask" password in DBLINK