]> granicus.if.org Git - postgresql/commit
Disallow SET SESSION AUTHORIZATION pg_*
authorStephen Frost <sfrost@snowman.net>
Thu, 14 Apr 2016 01:31:24 +0000 (21:31 -0400)
committerStephen Frost <sfrost@snowman.net>
Thu, 14 Apr 2016 01:31:24 +0000 (21:31 -0400)
commitbfed4ab824789fd7c000286650d4498dccb05634
treef9b820970942fc064f507a6b7b153c91cb014d36
parentbe65eddd80093a923b091dc60776aa6f966d1f07
Disallow SET SESSION AUTHORIZATION pg_*

As part of reserving the pg_* namespace for default roles and in line
with SET ROLE and other previous efforts, disallow settings the role
to a default/reserved role using SET SESSION AUTHORIZATION.

These checks and restrictions on what is allowed regarding default /
reserved roles are under debate, but it seems prudent to ensure that
the existing checks at least cover the intended cases while the
debate rages on.  On me to clean it up if the consensus decision is
to remove these checks.
src/backend/commands/variable.c