Centralize code for interpreting schema references, which had gotten
Tom Lane <tgl@sss.pgh.pa.us>
Centralize code for interpreting schema references, which had gotten copied more places than I first thought it would. This fixes a bug: a couple of these places were neglecting to enforce USAGE access on explicitly-referenced schemas.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/namespace.c | modified | +69 −100 |
| src/backend/commands/comment.c | modified | +8 −19 |
| src/backend/commands/indexcmds.c | modified | +5 −34 |
| src/backend/commands/opclasscmds.c | modified | +6 −35 |
| src/backend/parser/parse_type.c | modified | +5 −34 |
| src/include/catalog/namespace.h | modified | +6 −1 |