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

Robert Haas <rhaas@postgresql.org>

Commit: a60c16db5f36562df571d36fcacbbed33fd40bd4
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-08-11T15:29:20Z
Releases: 9.1.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 +5 −0