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: Daniel Gustafsson <daniel@yesql.se>, clemens@ladisch.de, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2019-06-12T02:36:56Z
Lists: pgsql-bugs
On Tue, Jun 11, 2019 at 09:32:55AM -0400, Alvaro Herrera wrote: > Yeah, looks better. I think the error message should be a normal elog() > cache failure, though ... at least in the COMMENT case, the obj-does-not- > exist message is supposed to be thrown by get_object_address(), before > check_object_ownership is called. > > As a matter of style, I would get rid of the 'conoid' variable and just > use address.objectId where needed. OK. I have included both your comments, and committed the patch down to 9.5 where it applies. Thanks for the feedback! s/unathorized/unauthorized/ by the way. -- 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