Re: A bad behavior under autocommit off mode
От | Bruce Momjian |
---|---|
Тема | Re: A bad behavior under autocommit off mode |
Дата | |
Msg-id | 200303200326.h2K3QEu03590@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: A bad behavior under autocommit off mode (Hiroshi Inoue <Inoue@tpf.co.jp>) |
Список | pgsql-hackers |
Hiroshi Inoue wrote: > > > > This patch removes that "stuff all queries into a single transaction" > > > > behavior and makes them function just like queries arriving separately. > > > > This does BREAK BACKWARD COMPATIBILITY. However, if they want the old > > > > behavior, they just need to wrap BEGIN/COMMIT around the query string. > > > > > > Does the change worth the trouble ? > > > Please don't break BACKWARD COMPATIBILITY easily. > > > > It clearly fixes an existing bug, > > My proposal also fixes the bug though Tom objected to it. Yes, there are other ways to fix this --- but this is the cleanest, and I think cleans up some surprising functionality. We cleaned up some suprises in 7.3 (pg_atoi), and if we don't do cleanups like this, we accumulate a system that behaves eratically --- as you showed in the original report of psql -c not working for autocommit off. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania19073
В списке pgsql-hackers по дате отправления: