Re: Any better plan for this query?..

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Any better plan for this query?..
Дата
в 13:49:56
Msg-id
20444.1242146977@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Kenneth Marshall <ktm@rice.edu>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Kenneth Marshall <ktm@rice.edu>
Re: Any better plan for this query?.. Craig Ringer <craig@postnewspapers.com.au>
Re: Any better plan for this query?.. Kenneth Marshall <ktm@rice.edu>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Chris <dmagick@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Richard Huxton <dev@archonet.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Richard Huxton <dev@archonet.com>
Re: Any better plan for this query?.. "Albe Laurenz" <laurenz.albe@wien.gv.at>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Kenneth Marshall <ktm@rice.edu>
Re: Any better plan for this query?.. Craig Ringer <craig@postnewspapers.com.au>
Re: Any better plan for this query?.. Kenneth Marshall <ktm@rice.edu>
Re: Any better plan for this query?.. Matthew Wakeling <matthew@flymine.org>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Merlin Moncure <mmoncure@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Tom Lane <tgl@sss.pgh.pa.us>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Aidan Van Dyk <aidan@highrise.ca>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Alvaro Herrera <alvherre@commandprompt.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Dimitri Fontaine <dfontaine@hi-media.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Robert Haas <robertmhaas@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. "Joshua D. Drake" <jd@commandprompt.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Any better plan for this query?.. Robert Haas <robertmhaas@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Robert Haas <robertmhaas@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Tom Lane <tgl@sss.pgh.pa.us>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Tom Lane <tgl@sss.pgh.pa.us>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Tom Lane <tgl@sss.pgh.pa.us>
Re: Any better plan for this query?.. Robert Haas <robertmhaas@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Robert Haas <robertmhaas@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Matthew Wakeling <matthew@flymine.org>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Robert Haas <robertmhaas@gmail.com>
Re: Any better plan for this query?.. Matthew Wakeling <matthew@flymine.org>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Scott Carey <scott@richrelevance.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. "Dave Dutcher" <dave@tridecap.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Merlin Moncure <mmoncure@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Merlin Moncure <mmoncure@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Merlin Moncure <mmoncure@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Scott Carey <scott@richrelevance.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Scott Carey <scott@richrelevance.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Scott Carey <scott@richrelevance.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Matthew Wakeling <matthew@flymine.org>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Matthew Wakeling <matthew@flymine.org>
Re: Any better plan for this query?.. Tom Lane <tgl@sss.pgh.pa.us>
Re: Any better plan for this query?.. Robert Haas <robertmhaas@gmail.com>
Re: Any better plan for this query?.. Tom Lane <tgl@sss.pgh.pa.us>
Re: Any better plan for this query?.. Greg Stark <stark@enterprisedb.com>
Re: Any better plan for this query?.. Robert Haas <robertmhaas@gmail.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. "Joshua D. Drake" <jd@commandprompt.com>
Re: Any better plan for this query?.. Aidan Van Dyk <aidan@highrise.ca>
Re: Any better plan for this query?.. "Joshua D. Drake" <jd@commandprompt.com>
Re: Any better plan for this query?.. Stephen Frost <sfrost@snowman.net>
Re: Any better plan for this query?.. Robert Haas <robertmhaas@gmail.com>
Re: Any better plan for this query?.. Glenn Maynard <glennfmaynard@gmail.com>
Re: Any better plan for this query?.. "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Dimitri Fontaine <dfontaine@hi-media.com>
Re: Any better plan for this query?.. Alvaro Herrera <alvherre@commandprompt.com>
Re: Any better plan for this query?.. Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Re: Any better plan for this query?.. Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Andres Freund <andres@anarazel.de>
Re: Any better plan for this query?.. Alvaro Herrera <alvherre@commandprompt.com>
Re: Any better plan for this query?.. Scott Carey <scott@richrelevance.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Scott Carey <scott@richrelevance.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Dimitri Fontaine <dfontaine@hi-media.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Merlin Moncure <mmoncure@gmail.com>
Re: Any better plan for this query?.. Gregory Stark <stark@enterprisedb.com>
Re: Any better plan for this query?.. Simon Riggs <simon@2ndQuadrant.com>
Re: Any better plan for this query?.. Matthew Wakeling <matthew@flymine.org>
Re: Any better plan for this query?.. Merlin Moncure <mmoncure@gmail.com>
Re: Any better plan for this query?.. Merlin Moncure <mmoncure@gmail.com>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Re: Any better plan for this query?.. Richard Huxton <dev@archonet.com>
Re: Any better plan for this query?.. Ries van Twisk <pg@rvt.dds.nl>
Re: Any better plan for this query?.. Dimitri <dimitrik.fr@gmail.com>
Robert Haas  writes:
> AIUI, whenever the connection pooler switches to serving a new client,
> it tells the PG backend to DISCARD ALL.  But why couldn't we just
> implement this same logic internally?  IOW, when a client disconnects,
> instead of having the backend exit immediately, have it perform the
> equivalent of DISCARD ALL and then stick around for a minute or two
> and, if a new connection request arrives within that time, have the
> old backend handle the new connection...

See previous discussions.  IIRC, there are two killer points:

1. There is no (portable) way to pass the connection from the postmaster
to another pre-existing process.

2. You'd have to track which database, and probably which user, each
such backend had been launched for; reconnecting a backend to a new
database is probably impractical and would certainly invalidate all
the caching.

Overall it looked like way too much effort for way too little gain.

			regards, tom lane
В списке pgsql-performance по дате отправления
От: Dimitri
Дата:
От: Alvaro Herrera
Дата:
FAQ