mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
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.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.421 2009/01/22 20:16:03 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.422 2009/02/02 19:31:39 alvherre Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -2125,6 +2125,18 @@ _copyOptionDefElem(OptionDefElem *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static ReloptElem *
|
||||
_copyReloptElem(ReloptElem *from)
|
||||
{
|
||||
ReloptElem *newnode = makeNode(ReloptElem);
|
||||
|
||||
COPY_STRING_FIELD(optname);
|
||||
COPY_STRING_FIELD(nmspc);
|
||||
COPY_NODE_FIELD(arg);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static LockingClause *
|
||||
_copyLockingClause(LockingClause *from)
|
||||
{
|
||||
@@ -4079,6 +4091,9 @@ copyObject(void *from)
|
||||
case T_OptionDefElem:
|
||||
retval = _copyOptionDefElem(from);
|
||||
break;
|
||||
case T_ReloptElem:
|
||||
retval = _copyReloptElem(from);
|
||||
break;
|
||||
case T_LockingClause:
|
||||
retval = _copyLockingClause(from);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user