Re: [GENERAL] currval and DISCARD ALL
От
Tom Lane
Тема
Re: [GENERAL] currval and DISCARD ALL
Дата
Msg-id
12538.1366237053@sss.pgh.pa.us
Ответ на
Re: [GENERAL] currval and DISCARD ALL (Marko Kreen)
Список
Дерево обсуждения
Re: [GENERAL] currval and DISCARD ALL Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] currval and DISCARD ALL "suresh.balasubra" <suresh@netsonicuae.com>
Re: [GENERAL] currval and DISCARD ALL Fabrízio de Royes Mello<fabrizio@timbira.com.br>
Re: [GENERAL] currval and DISCARD ALL Robert Haas <robertmhaas@gmail.com>
Re: [GENERAL] currval and DISCARD ALL Adrian Klaver <adrian.klaver@gmail.com>
Re: [GENERAL] currval and DISCARD ALL Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: [GENERAL] currval and DISCARD ALL Robert Haas <robertmhaas@gmail.com>
Re: [GENERAL] currval and DISCARD ALL Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: [GENERAL] currval and DISCARD ALL Peter Eisentraut <peter_e@gmx.net>
Re: [GENERAL] currval and DISCARD ALL Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [GENERAL] currval and DISCARD ALL Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] currval and DISCARD ALL Robert Haas <robertmhaas@gmail.com>
Re: [GENERAL] currval and DISCARD ALL Boszormenyi Zoltan <zb@cybertec.at>
Re: [GENERAL] currval and DISCARD ALL Boszormenyi Zoltan <zb@cybertec.at>
Re: [GENERAL] currval and DISCARD ALL Fabrízio de Royes Mello<fabrizio@timbira.com.br>
Re: [GENERAL] currval and DISCARD ALL Robert Haas <robertmhaas@gmail.com>
Re: [GENERAL] currval and DISCARD ALL Fabrízio de Royes Mello <fabrizio@timbira.com.br>
Marko Kreen writes: > On Tue, Apr 16, 2013 at 05:09:19PM -0400, Tom Lane wrote: >> Bruce Momjian writes: >>> I think his point is why don't we clear currval() on DISCARD ALL? I >>> can't think of a good reason we don't. >> Because we'd have to invent a new suboperation DISCARD SEQUENCES, >> for one thing, in order to be consistent. I'd rather ask why it's >> important that we should throw away such state. It doesn't seem to >> me to be important enough to justify a new subcommand. > "consistency" is a philosophical thing. No, it's a critical tool in complexity management. When you're dealing with systems as complicated as a database, every little non-orthogonal detail adds up. DISCARD ALL has a clear definition in terms of simpler commands, and it's going to stay that way. Either this is worth a subcommand, or it's not worth worrying about at all. > But currval() is quite noticeable thing that DISCARD ALL should clear. If it were as obvious and noticeable as all that, somebody would have noticed before now. We've had DISCARD ALL with its current meaning since 8.3, and nobody complained in the five-plus years since that shipped. At this point, even if a concrete case were made why DISCARD ALL should clear currval (and I repeat that no credible case has been made; nobody has for example pointed to a reasonably-well-designed application that this breaks), there would be a pretty strong backwards-compatibility argument not to change it. regards, tom lane
В списке pgsql-hackers по дате отправления