pgsql: Simplify coding to detach constraints when detaching partition - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Simplify coding to detach constraints when detaching partition
Date
Msg-id E1gmfye-0003is-LK@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Simplify coding to detach constraints when detaching partition

The original coding was too baroque and led to an use-after-release
mistake, noticed by buildfarm member prion.

Discussion: https://postgr.es/m/21693.1548305934@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/19184fcc09739abf75ccdada965ed6135c6d07c3

Modified Files
--------------
src/backend/commands/tablecmds.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)


pgsql-committers by date:

Previous
From: Etsuro Fujita
Date:
Subject: pgsql: postgres_fdw: Account for tlist eval costs inestimate_path_cost
Next
From: Alvaro Herrera
Date:
Subject: Re: pgsql: Detach constraints when partitions are detached