Further fixes for per-tablespace options patch.

Robert Haas <rhaas@postgresql.org>

Commit: 814c8a03bacf9e30c2c7b4e652986b68a292ac30
Author: Robert Haas <rhaas@postgresql.org>
Date: 2010-01-07T03:53:08Z
Releases: 9.0.0
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

PathChange+/−
src/backend/utils/cache/spccache.c modified +4 −6
src/include/commands/tablespace.h modified +2 −1