Unbreak legacy syntax "COMMENT ON RULE x IS y", with no relation name.

Robert Haas <rhaas@postgresql.org>

Commit: 5057366eedaccef1f4c25a7c5de0d6c1c5a291f1
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-08-11T15:23:51Z
Releases: 9.2.0
Unbreak legacy syntax "COMMENT ON RULE x IS y", with no relation name.

check_object_ownership() isn't happy about the null relation pointer.
We could fix it there, but this seems more future-proof.

Files

PathChange+/−
src/backend/catalog/objectaddress.c modified +6 −0