IsSystemRelationName() treats TOAST relations as system relations.
Tom Lane <tgl@sss.pgh.pa.us>
IsSystemRelationName() treats TOAST relations as system relations. This seems the right thing for most usages, but I notice two places where it is the wrong thing. One is that the default permissions on TOAST rels should be no-access, not world-readable; the other is that PrepareForTupleInvalidation doesn't really need to spend time looking at tuples of TOAST relations.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/catalog.c | modified | +19 −7 |
| src/backend/utils/adt/acl.c | modified | +4 −2 |
| src/backend/utils/cache/inval.c | modified | +5 −1 |
| src/include/catalog/catalog.h | modified | +2 −1 |