Fix crasher bugs in previous commit

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: e3f1c24b992acb88e4ccf33118640aee4b11dd47
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2015-03-09T20:00:43Z
Releases: 9.5.0
Fix crasher bugs in previous commit

ALTER DEFAULT PRIVILEGES was trying to decode the list of roles in the
FOR clause as a list of names rather than of RoleSpecs; and the IN
clause in CREATE ROLE was doing the same thing.  This was evidenced by
crashes on some buildfarm machines, though on my platform this doesn't
cause a failure by mere chance; I can reproduce the failures only by
adding some padding in struct RoleSpecs.

Fix by dereferencing those lists as being of RoleSpecs, not string
Values.

Files

PathChange+/−
src/backend/catalog/aclchk.c modified +10 −10
src/backend/commands/user.c modified +6 −2