summaryrefslogtreecommitdiff
path: root/src/include/access/reloptions.h
diff options
context:
space:
mode:
authorAlvaro Herrera2009-02-02 19:31:40 +0000
committerAlvaro Herrera2009-02-02 19:31:40 +0000
commit3a5b77371522b64feda006a7aed2a0e57bfb2b22 (patch)
tree2a3660571ea184c8e40a78608839914af4f2bb27 /src/include/access/reloptions.h
parent80f95a6500d7f5762e4701c80eb202c3fce9095f (diff)
Allow reloption names to have qualifiers, initially supporting a TOAST
qualifier, and add support for this in pg_dump. This allows TOAST tables to have user-defined fillfactor, and will also enable us to move the autovacuum parameters to reloptions without taking away the possibility of setting values for TOAST tables.
Diffstat (limited to 'src/include/access/reloptions.h')
-rw-r--r--src/include/access/reloptions.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/access/reloptions.h b/src/include/access/reloptions.h
index 1c23b3f004d..7c02f3b12b3 100644
--- a/src/include/access/reloptions.h
+++ b/src/include/access/reloptions.h
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/access/reloptions.h,v 1.11 2009/01/26 19:41:06 alvherre Exp $
+ * $PostgreSQL: pgsql/src/include/access/reloptions.h,v 1.12 2009/02/02 19:31:39 alvherre Exp $
*
*-------------------------------------------------------------------------
*/
@@ -44,6 +44,9 @@ typedef enum relopt_kind
RELOPT_KIND_MAX = 255
} relopt_kind;
+/* reloption namespaces allowed for heaps -- currently only TOAST */
+#define HEAP_RELOPT_NAMESPACES { "toast", NULL }
+
/* generic struct to hold shared data */
typedef struct relopt_gen
{
@@ -240,6 +243,7 @@ extern void add_string_reloption(int kind, char *name, char *desc,
char *default_val, validate_string_relopt validator);
extern Datum transformRelOptions(Datum oldOptions, List *defList,
+ char *namspace, char *validnsps[],
bool ignoreOids, bool isReset);
extern List *untransformRelOptions(Datum options);
extern bytea *extractRelOptions(HeapTuple tuple, TupleDesc tupdesc,