Re: Update on tables when the row doesn't change
От
Martijn van Oosterhout
Тема
Re: Update on tables when the row doesn't change
Дата
Msg-id
20050524154719.GB31997@svana.org
Ответ на
Update on tables when the row doesn't change (Sebastian Böck)
Список
Дерево обсуждения
Update on tables when the row doesn't change Sebastian Böck <sebastianboeck@freenet.de>
Re: Update on tables when the row doesn't change Martijn van Oosterhout <kleptog@svana.org>
Re: Update on tables when the row doesn't change Sebastian Böck <sebastianboeck@freenet.de>
Re: Update on tables when the row doesn't change Jaime Casanova <systemguards@gmail.com>
Re: Update on tables when the row doesn't change Sebastian Böck <sebastianboeck@freenet.de>
Re: Update on tables when the row doesn't change Tom Lane <tgl@sss.pgh.pa.us>
Re: Update on tables when the row doesn't change Richard Huxton <dev@archonet.com>
Re: Update on tables when the row doesn't change Sebastian Böck <sebastianboeck@freenet.de>
Re: Update on tables when the row doesn't change Dawid Kuroczko <qnex42@gmail.com>
Re: Update on tables when the row doesn't change Sebastian Böck <sebastianboeck@freenet.de>
Re: Update on tables when the row doesn't change Dawid Kuroczko <qnex42@gmail.com>
Re: Update on tables when the row doesn't change Sebastian Böck <sebastianboeck@freenet.de>
Re: Update on tables when the row doesn't change Ragnar Hafstað <gnari@simnet.is>
Re: Update on tables when the row doesn't change Sebastian Böck <sebastianboeck@freenet.de>
Re: Update on tables when the row doesn't change "Tim Vadnais" <tvadnais@earthlink.net>
Re: Update on tables when the row doesn't change Scott Marlowe <smarlowe@g2switchworks.com>
Re: Update on tables when the row doesn't change Martijn van Oosterhout <kleptog@svana.org>
I'm sure I'm not the only one, but, what are you talking about? RULEs are not really obvious so it would help if you could post an example of what you mean... Have a nice day, On Tue, May 24, 2005 at 05:05:34PM +0200, Sebastian Böck wrote: > Hi all, > > maybe it's a very silly question, but why does Postgres perform an > update on the table even if no data changes? > > I recognized this recently doing a rewrite of my rules because they > took to long. I had many conditional rules I collapsed to one > unconditional rule, so that the views get constructed only once. If I > split these updates to the underlying tables, I get a lot of updates > which don't perform any "real" updates. > > Can I circumvent this behaviour of Postgres only by defining lot of > rules / triggers on these underlying table are there some trickier ways? > > Any help appreciated, > > Sebastian > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly -- Martijn van Oosterhout http://svana.org/kleptog/ > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a > tool for doing 5% of the work and then sitting around waiting for someone > else to do the other 95% so you can sue them.
В списке pgsql-general по дате отправления