Re: Can't find not null constraint, but \d+ shows that
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tender Wang <tndrwang@gmail.com>
Cc: jian he <jian.universality@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-03-28T09:18:38Z
Lists: pgsql-hackers
On 2024-Mar-28, Tender Wang wrote: > RemoveConstraintById() should think recurse(e.g. partition table)? I'm not > sure now. > If we should think process recurse in RemoveConstraintById(), the > function will look complicated than before. No -- this function handles just a single constraint, as identified by OID. The recursion is handled by upper layers, which can be either dependency.c or tablecmds.c. I think the problem you found is caused by the fact that I worked with the tablecmds.c recursion and neglected the one in dependency.c. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "No nos atrevemos a muchas cosas porque son difíciles, pero son difíciles porque no nos atrevemos a hacerlas" (Séneca)
Commits
-
Better handle indirect constraint drops
- 0cd711271d42 17.0 landed
-
Add macros for looping through a List without a ListCell.
- 14dd0f27d7cd 17.0 cited