Re: Delay locking partitions during INSERT and UPDATE
David Rowley <david.rowley@2ndquadrant.com>
From: David Rowley <david.rowley@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>, Robert Haas <robertmhaas@gmail.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>,
John Naylor <john.naylor@2ndquadrant.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-02-18T22:56:22Z
Lists: pgsql-hackers
On Tue, 19 Feb 2019 at 11:47, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Are we talking about the same patch? The one I'm looking at seems > to be mostly planner and plancache changes: > > src/backend/catalog/dependency.c | 1 + > src/backend/commands/createas.c | 1 + > src/backend/executor/execUtils.c | 20 +++++++++++--------- > src/backend/nodes/copyfuncs.c | 1 + > src/backend/nodes/equalfuncs.c | 1 + > src/backend/nodes/outfuncs.c | 1 + > src/backend/nodes/readfuncs.c | 1 + > src/backend/optimizer/plan/planner.c | 2 ++ > src/backend/optimizer/util/inherit.c | 11 +++++++++++ > src/backend/parser/parse_relation.c | 2 ++ > src/backend/replication/logical/worker.c | 1 + > src/backend/rewrite/rewriteHandler.c | 1 + > src/backend/utils/adt/ri_triggers.c | 2 ++ > src/backend/utils/adt/ruleutils.c | 3 +++ > src/backend/utils/cache/plancache.c | 15 +++++++++++---- > src/include/nodes/parsenodes.h | 2 ++ Looks like you're looking at the patch from the "Delay locking partitions during query execution" thread [1]. Different thing altogether, although the names are confusingly similar. [1] https://commitfest.postgresql.org/22/1897/ -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
Commits
-
Delay lock acquisition for partitions until we route a tuple to them.
- 9eefba181f77 12.0 landed