Re: FailedAssertion("pd_idx == pinfo->nparts", File: "execPartition.c", Line: 1689)

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andy Fan <zhihui.fan1213@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Amit Langote <amitlangote09@gmail.com>, Justin Pryzby <pryzby@telsasoft.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2020-08-07T02:44:30Z
Lists: pgsql-hackers
Andy Fan <zhihui.fan1213@gmail.com> writes:
> I am not sure if we need to limit the scope to "between parsing and
> execution",

Yeah, there might be reason to add similar functionality in other
places later.  I'm not sure where yet --- but that idea does make
me slightly unhappy with the "delay_execution" moniker.  I don't
have a better name though ...

			regards, tom lane



Commits

  1. Support testing of cases where table schemas change after planning.

  2. Fix matching of sub-partitions when a partitioned plan is stale.

  3. Speed up planning when partitions can be pruned at plan time.

  4. Allow ATTACH PARTITION with only ShareUpdateExclusiveLock.