Fix unwanted denial of ALTER OWNER rights to superusers. There was some
Tom Lane <tgl@sss.pgh.pa.us>
Fix unwanted denial of ALTER OWNER rights to superusers. There was some discussion of getting around this by relaxing the checks made for regular users, but I'm disinclined to toy with the security model right now, so just special-case it for superusers where needed.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/aggregatecmds.c | modified | +20 −15 |
| src/backend/commands/conversioncmds.c | modified | +20 −15 |
| src/backend/commands/dbcommands.c | modified | +3 −2 |
| src/backend/commands/functioncmds.c | modified | +20 −15 |
| src/backend/commands/opclasscmds.c | modified | +19 −15 |
| src/backend/commands/operatorcmds.c | modified | +20 −15 |
| src/backend/commands/schemacmds.c | modified | +3 −2 |
| src/backend/commands/tablecmds.c | modified | +22 −18 |
| src/backend/commands/typecmds.c | modified | +20 −15 |