Re: foreign key locks, 2nd attempt
От
Alvaro Herrera
Тема
Re: foreign key locks, 2nd attempt
Дата
Msg-id
1320959229-sup-8122@alvh.no-ip.org
Ответ на
Re: foreign key locks, 2nd attempt (Bruce Momjian)
Список
Дерево обсуждения
foreign key locks, 2nd attempt Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Jim Nasby <jim@nasby.net>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Greg Smith <greg@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Greg Smith <greg@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Jeroen Vermeulen <jtv@xs4all.nl>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Jeroen Vermeulen <jtv@xs4all.nl>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Bruce Momjian <bruce@momjian.us>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Bruce Momjian <bruce@momjian.us>
Re: foreign key locks, 2nd attempt Josh Berkus <josh@agliodbs.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Tom Lane <tgl@sss.pgh.pa.us>
Re: foreign key locks, 2nd attempt Greg Smith <greg@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Tom Lane <tgl@sss.pgh.pa.us>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: foreign key locks, 2nd attempt Vik Reykja <vikreykja@gmail.com>
Re: foreign key locks, 2nd attempt "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: foreign key locks, 2nd attempt Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndquadrant.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Peter Geoghegan <peter@2ndquadrant.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Noah Misch <noah@leadboat.com>
Re: foreign key locks, 2nd attempt Bruce Momjian <bruce@momjian.us>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Bruce Momjian <bruce@momjian.us>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Bruce Momjian <bruce@momjian.us>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Bruce Momjian <bruce@momjian.us>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Bruce Momjian <bruce@momjian.us>
Re: foreign key locks, 2nd attempt Bruce Momjian <bruce@momjian.us>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Gokulakannan Somasundaram <gokul007@gmail.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Gokulakannan Somasundaram <gokul007@gmail.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Gokulakannan Somasundaram <gokul007@gmail.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks, 2nd attempt Jeroen Vermeulen <jtv@xs4all.nl>
Re: foreign key locks, 2nd attempt Christopher Browne <cbbrowne@gmail.com>
Re: foreign key locks, 2nd attempt David Kerr <dmk@mr-paradox.net>
Re: foreign key locks, 2nd attempt Jeroen Vermeulen <jtv@xs4all.nl>
Re: foreign key locks, 2nd attempt "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: foreign key locks, 2nd attempt Christopher Browne <cbbrowne@gmail.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Pavel Stehule <pavel.stehule@gmail.com>
Re: foreign key locks, 2nd attempt Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks, 2nd attempt Tom Lane <tgl@sss.pgh.pa.us>
Re: foreign key locks, 2nd attempt Robert Haas <robertmhaas@gmail.com>
Re: foreign key locks, 2nd attempt Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Excerpts from Bruce Momjian's message of jue nov 10 16:59:20 -0300 2011: > Alvaro Herrera wrote: > > Hello, > > > > After some rather extensive rewriting, I submit the patch to improve > > foreign key locks. > > > > To recap, the point of this patch is to introduce a new lock tuple mode, > > that lets the RI code obtain a lighter lock on tuples, which doesn't > > conflict with updates that do not modify the key columns. > > What kind of operations benefit from a non-key lock like this? I'm not sure I understand the question. With this patch, a RI check does "SELECT FOR KEY SHARE". This means the tuple is locked with that mode until the transaction finishes. An UPDATE that modifies the referenced row will not conflict with that lock. An UPDATE that modifies the key columns will be blocked, just as now. Same with a DELETE. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-hackers по дате отправления