Re: getting ERROR "relation 16401 has no triggers" with partition foreign key alter
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-07-16T13:59:52Z
Lists: pgsql-hackers
Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com> writes: > I am getting ERROR: relation 16401 has no triggers error while executing > below query. Yeah, I can reproduce that back to v11. If you try the same scenario with a non-partitioned table you get ERROR: 55006: cannot ALTER TABLE "tbl2" because it has pending trigger events LOCATION: CheckTableNotInUse, tablecmds.c:3436 but that test evidently fails to detect pending events for a partition child table. regards, tom lane
Commits
-
Check that partitions are not in use when dropping constraints
- ec7f9a7407d3 11.5 landed
- 5562272a4229 13.0 landed
- 3ffe655c0af0 12.0 landed