Re: Transient plans versus the SPI API
От
Tom Lane
Тема
Re: Transient plans versus the SPI API
Дата
Msg-id
21817.1312399151@sss.pgh.pa.us
Ответ на
Re: Transient plans versus the SPI API (Robert Haas)
Список
Дерево обсуждения
Transient plans versus the SPI API Tom Lane <tgl@sss.pgh.pa.us>
Re: Transient plans versus the SPI API Peter Eisentraut <peter_e@gmx.net>
Re: Transient plans versus the SPI API Tom Lane <tgl@sss.pgh.pa.us>
Re: Transient plans versus the SPI API Bruce Momjian <bruce@momjian.us>
Re: Transient plans versus the SPI API Jeff Davis <pgsql@j-davis.com>
Re: Transient plans versus the SPI API Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: Transient plans versus the SPI API "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Transient plans versus the SPI API Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: Transient plans versus the SPI API Tom Lane <tgl@sss.pgh.pa.us>
Re: Transient plans versus the SPI API Jeff Davis <pgsql@j-davis.com>
Re: Transient plans versus the SPI API Robert Haas <robertmhaas@gmail.com>
Re: Transient plans versus the SPI API Jeff Davis <pgsql@j-davis.com>
Re: Transient plans versus the SPI API Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: Transient plans versus the SPI API Robert Haas <robertmhaas@gmail.com>
Re: Transient plans versus the SPI API Tom Lane <tgl@sss.pgh.pa.us>
Re: Transient plans versus the SPI API Hannu Krosing <hannu@krosing.net>
Re: Transient plans versus the SPI API Hannu Krosing <hannu@krosing.net>
Re: Transient plans versus the SPI API Anssi Kääriäinen <anssi.kaariainen@thl.fi>
Re: Transient plans versus the SPI API Hannu Krosing <hannu@2ndQuadrant.com>
Re: Transient plans versus the SPI API Anssi Kääriäinen <anssi.kaariainen@thl.fi>
Re: Transient plans versus the SPI API Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: Transient plans versus the SPI API Yeb Havinga <yebhavinga@gmail.com>
Re: Transient plans versus the SPI API Robert Haas <robertmhaas@gmail.com>
Re: Transient plans versus the SPI API Simon Riggs <simon@2ndQuadrant.com>
Re: Transient plans versus the SPI API Tom Lane <tgl@sss.pgh.pa.us>
Re: Transient plans versus the SPI API Simon Riggs <simon@2ndQuadrant.com>
Re: Transient plans versus the SPI API Tom Lane <tgl@sss.pgh.pa.us>
Re: Transient plans versus the SPI API Simon Riggs <simon@2ndQuadrant.com>
Re: Transient plans versus the SPI API Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: Transient plans versus the SPI API Simon Riggs <simon@2ndQuadrant.com>
Robert Haas writes: > This seems like a good design. Now what would be really cool is if > you could observe a stream of queries like this: > SELECT a, b FROM foo WHERE c = 123 > SELECT a, b FROM foo WHERE c = 97 > SELECT a, b FROM foo WHERE c = 236 > ...and say, hey, I could just make a generic plan and use it every > time I see one of these. It's not too clear to me how you'd make > recognition of such queries cheap enough to be practical, but maybe > someone will think of a way... Hm, you mean reverse-engineering the parameterization of the query? Interesting thought, but I really don't see a way to make it practical. In any case, it would amount to making up for a bad decision on the application side, ie, not transmitting the query in the parameterized form that presumably exists somewhere in the application. I think we'd be better served all around by encouraging app developers to rely more heavily on parameterized queries ... but first we have to fix the performance risks there. regards, tom lane
В списке pgsql-hackers по дате отправления