pgsql: Further fixes for per-tablespace options patch.

From: rhaas(at)postgresql(dot)org (Robert Haas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Further fixes for per-tablespace options patch.
Date: 2010-01-07 03:53:08
Message-ID: 20100107035308.6DCBC7541B9@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/utils/cache:
spccache.c (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/cache/spccache.c?r1=1.3&r2=1.4)
pgsql/src/include/commands:
tablespace.h (r1.22 -> r1.23)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/commands/tablespace.h?r1=1.22&r2=1.23)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2010-01-07 03:58:34 Re: pgsql: PG_MAJORVERSION: For simplicity, use PG_MAJORVERSION rather than
Previous Message Robert Haas 2010-01-07 03:49:18 Re: pgsql: PG_MAJORVERSION: For simplicity, use PG_MAJORVERSION rather than