Re: ALTER TABLE lock strength reduction patch is unsafe
От
Tom Lane
Тема
Re: ALTER TABLE lock strength reduction patch is unsafe
Дата
Msg-id
27994.1325531580@sss.pgh.pa.us
Ответ на
Re: ALTER TABLE lock strength reduction patch is unsafe (Simon Riggs)
Список
Дерево обсуждения
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Noah Misch <noah@leadboat.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Peter Geoghegan <pg@heroku.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Vik Fearing <vik.fearing@dalibo.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Noah Misch <noah@leadboat.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Noah Misch <noah@leadboat.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Atri Sharma <atri.jiit@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Stephen Frost <sfrost@snowman.net>
Re: ALTER TABLE lock strength reduction patch is unsafe Alvaro Herrera <alvherre@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Stephen Frost <sfrost@snowman.net>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Stephen Frost <sfrost@snowman.net>
Re: ALTER TABLE lock strength reduction patch is unsafe Atri Sharma <atri.jiit@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Vik Fearing <vik.fearing@dalibo.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Alvaro Herrera <alvherre@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe
Reply-To: Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Greg Stark <stark@mit.edu>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe
Reply-To: Noah Misch <noah@leadboat.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe
Reply-To: Noah Misch <noah@leadboat.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe
Reply-To: Noah Misch <noah@leadboat.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe
Reply-To: Noah Misch <noah@leadboat.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe
Reply-To: Noah Misch <noah@leadboat.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe
Reply-To: Vik Fearing <vik.fearing@dalibo.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Reply-To: Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Atri Sharma <atri.jiit@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Atri Sharma <atri.jiit@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Atri Sharma <atri.jiit@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Noah Misch <noah@leadboat.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Jim Nasby <jim@nasby.net>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Andres Freund <andres@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Peter Geoghegan <pg@heroku.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Bruce Momjian <bruce@momjian.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Bruce Momjian <bruce@momjian.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Alvaro Herrera <alvherre@2ndquadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Robert Haas <robertmhaas@gmail.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Heikki Linnakangas <hlinnakangas@vmware.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Bruce Momjian <bruce@momjian.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Heikki Linnakangas <hlinnakangas@vmware.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Bruce Momjian <bruce@momjian.us>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Re: ALTER TABLE lock strength reduction patch is unsafe Simon Riggs <simon@2ndQuadrant.com>
Simon Riggs writes: > On Mon, Jan 2, 2012 at 6:06 PM, Noah Misch wrote: >> On Mon, Jan 02, 2012 at 05:09:16PM +0000, Simon Riggs wrote: >>> Attached patch makes SnapshotNow into an MVCC snapshot, >> That's a neat trick. �However, if you start a new SnapshotNow scan while one is >> ongoing, the primordial scan's snapshot will change mid-stream. > Do we ever do that? Almost certainly yes. For example, a catcache load may invoke catcache or relcache reload operations on its way to opening the table or index needed to fetch the desired row. I think you can only safely do this if each caller has its own snapshot variable, a la SnapshotDirty, and that's going to be hugely more invasive. regards, tom lane
В списке pgsql-hackers по дате отправления