]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Allow type_func_name_keywords in even more places
authorStephen Frost <sfrost@snowman.net>
Wed, 22 Jan 2014 03:49:22 +0000 (22:49 -0500)
committerStephen Frost <sfrost@snowman.net>
Wed, 22 Jan 2014 04:00:58 +0000 (23:00 -0500)
commitcbd850bf609c5b1d51874ba9611723cb17da8626
treeced9d67c6271fb5b66f42c53ed28641e0cf3b29a
parentd2636486b3fe13d855b0109f15efaa5f4e00adef
Allow type_func_name_keywords in even more places

A while back, 2c92edad48796119c83d7dbe6c33425d1924626d allowed
type_func_name_keywords to be used in more places, including role
identifiers.  Unfortunately, that commit missed out on cases where
name_list was used for lists-of-roles, eg: for DROP ROLE.  This
resulted in the unfortunate situation that you could CREATE a role
with a type_func_name_keywords-allowed identifier, but not DROP it
(directly- ALTER could be used to rename it to something which
could be DROP'd).

This extends allowing type_func_name_keywords to places where role
lists can be used.

Back-patch to 9.0, as 2c92edad48796119c83d7dbe6c33425d1924626d was.
src/backend/parser/gram.y