Re: BUG #15833: defining a comment on a domain constraint fails with wrong OID
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: clemens@ladisch.de, pgsql-bugs@lists.postgresql.org
Date: 2019-06-10T06:28:55Z
Lists: pgsql-bugs
Attachments
- dom-constraint-comments-v1.patch (text/x-diff) patch v1
On Fri, Jun 07, 2019 at 02:42:33PM +0900, Michael Paquier wrote: > Well, it wouldn't be a problem to do a syscache lookup and then use > the type from contypid, no? It seems to me that it would be more > consistent to just add a pg_domain_constraint_ownercheck() in aclchk.c > as all the syscache lookups happen their for all the other objects > types. What do you think? Attached is what I have in mind. There are already tests at the bottom of constraints.source checking for comments on both table and domain constraints, so my proposal is to run them with a dedicated role. What do you think? -- Michael
Commits
-
Fix handling of COMMENT for domain constraints
- 13f4b462dbe8 9.5.18 landed
- ff1a25601e75 9.6.14 landed
- 56a932533aa2 10.9 landed
- fa5f3a4bcca7 11.4 landed
- ceac4505d342 12.0 landed