diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-01-07 03:53:08 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-01-07 03:53:08 +0000 |
commit | 814c8a03bacf9e30c2c7b4e652986b68a292ac30 (patch) | |
tree | 77d8fd67ced2db54c4fcee3e3d5233174e077a54 /src/include/commands/tablespace.h | |
parent | c7f08913ba98931753f7acef39fc2d83a18f7b6e (diff) |
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.
Diffstat (limited to 'src/include/commands/tablespace.h')
-rw-r--r-- | src/include/commands/tablespace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/commands/tablespace.h b/src/include/commands/tablespace.h index 9330a1f81fe..3d46eeb650e 100644 --- a/src/include/commands/tablespace.h +++ b/src/include/commands/tablespace.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/tablespace.h,v 1.22 2010/01/05 21:53:59 rhaas Exp $ + * $PostgreSQL: pgsql/src/include/commands/tablespace.h,v 1.23 2010/01/07 03:53:08 rhaas Exp $ * *------------------------------------------------------------------------- */ @@ -34,6 +34,7 @@ typedef struct xl_tblspc_drop_rec typedef struct TableSpaceOpts { + int32 vl_len_; /* varlena header (do not touch directly!) */ float8 random_page_cost; float8 seq_page_cost; } TableSpaceOpts; |