OSDN Git Service

Some variants of ALTER OWNER tried to make the "object" field of the
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Feb 2008 21:07:55 +0000 (21:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Feb 2008 21:07:55 +0000 (21:07 +0000)
commit1ab19a36a5687b78fcd8abe87261ef34cdd03289
tree069945072ddbd9b805ca1b8b8033fe74460b1144
parent49a730128c50fc6d5031001a26730caff0b0ea4b
Some variants of ALTER OWNER tried to make the "object" field of the
statement be a list of bare C strings, rather than String nodes, which is
what they need to be for copyfuncs/equalfuncs to work.  Fortunately these
node types never go out to disk (if they did, we'd likely have noticed the
problem sooner), so we can just fix it without creating a need for initdb.
This bug has been there since 8.0, but 8.3 exposes it in a more common
code path (Parse messages) than prior releases did.  Per bug #3940 from
Vladimir Kokovic.
src/backend/commands/alter.c
src/backend/parser/gram.y