diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-09-21 20:10:21 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-09-21 20:10:21 +0000 |
commit | 923413ac6d31826bd599711962ce9cb7d51a997f (patch) | |
tree | 61538745eb89472649451470ca12011eb5392106 /src/backend/commands/define.c | |
parent | 0f427dfe5ae26f4b792f4f0b8d235dd60a1d144f (diff) | |
download | postgresql-923413ac6d31826bd599711962ce9cb7d51a997f.tar.gz postgresql-923413ac6d31826bd599711962ce9cb7d51a997f.zip |
Define a new, more extensible syntax for COPY options.
This is intentionally similar to the recently revised syntax for EXPLAIN
options, ie, (name value, ...). The old syntax is still supported for
backwards compatibility, but we intend that any options added in future
will be provided only in the new syntax.
Robert Haas, Emmanuel Cecchet
Diffstat (limited to 'src/backend/commands/define.c')
-rw-r--r-- | src/backend/commands/define.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/commands/define.c b/src/backend/commands/define.c index 2fd919dd546..da16be4e36b 100644 --- a/src/backend/commands/define.c +++ b/src/backend/commands/define.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/define.c,v 1.105 2009/07/26 23:34:17 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/define.c,v 1.106 2009/09/21 20:10:21 tgl Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -88,6 +88,8 @@ defGetString(DefElem *def) return TypeNameToString((TypeName *) def->arg); case T_List: return NameListToString((List *) def->arg); + case T_A_Star: + return pstrdup("*"); default: elog(ERROR, "unrecognized node type: %d", (int) nodeTag(def->arg)); } |