Further fixes for per-tablespace options patch.
Robert Haas <rhaas@postgresql.org>
Further fixes for per-tablespace options patch. Add missing varlena header to TableSpaceOpts structure. And, per Tom Lane, instead of calling tablespace_reloptions in CacheMemoryContext, call it in the caller's memory context and copy the value over afterwards, to reduce the chances of a session-lifetime memory leak.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/cache/spccache.c | modified | +4 −6 |
| src/include/commands/tablespace.h | modified | +2 −1 |