Re: [HACKERS] Connection Pools and DISCARD ALL
От
Bruce Momjian
Тема
Re: [HACKERS] Connection Pools and DISCARD ALL
Дата
Msg-id
200711101437.lAAEbcA19090@momjian.us
Ответ на
Re: [HACKERS] Connection Pools and DISCARD ALL (Bruce Momjian)
Список
Дерево обсуждения
Re: [HACKERS] Connection Pools and DISCARD ALL Simon Riggs <simon@2ndquadrant.com>
Bruce Momjian wrote: > Tom Lane wrote: > > Andrew Dunstan writes: > > > Could we maybe have some flavor of ROLLBACK that doesn't issue a warning > > > if no transaction is in progress? There is precedent for this sort of > > > facility - DROP ... IF EXISTS. > > > > Something that would actually be doable for 8.3 would be to downgrade > > this particular WARNING to a NOTICE. A DBA who hasn't got > > log_min_messages set higher than NOTICE hasn't really got a lot of room > > to whine about bulky logs. > > I have developed the attached patch to implement this. I assume we want > to change ABORT outside a transaction from WARNING to NOTICE, but not > COMMIT. Patch applied: test=> ROLLBACK; NOTICE: there is no transaction in progress ROLLBACK Commit is unchanged: test=> COMMIT; WARNING: there is no transaction in progress COMMIT -- Bruce Momjian http://momjian.us EnterpriseDB http://postgres.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
В списке pgsql-patches по дате отправления