diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/commands/copy.h | 7 | ||||
| -rw-r--r-- | src/include/commands/dbcommands.h | 4 | ||||
| -rw-r--r-- | src/include/nodes/parsenodes.h | 9 |
3 files changed, 8 insertions, 12 deletions
diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h index e0a4ecdcd4..40cbb35195 100644 --- a/src/include/commands/copy.h +++ b/src/include/commands/copy.h @@ -7,19 +7,18 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: copy.h,v 1.17 2002/03/29 19:06:21 tgl Exp $ + * $Id: copy.h,v 1.18 2002/06/20 16:00:44 momjian Exp $ * *------------------------------------------------------------------------- */ #ifndef COPY_H #define COPY_H +#include "nodes/parsenodes.h" #include "nodes/primnodes.h" extern int copy_lineno; -void DoCopy(const RangeVar *relation, bool binary, bool oids, - bool from, bool pipe, - char *filename, char *delim, char *null_print); +void DoCopy(const CopyStmt *stmt); #endif /* COPY_H */ diff --git a/src/include/commands/dbcommands.h b/src/include/commands/dbcommands.h index 1a99da6d4d..c4c9f56eec 100644 --- a/src/include/commands/dbcommands.h +++ b/src/include/commands/dbcommands.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: dbcommands.h,v 1.22 2002/06/18 17:27:58 momjian Exp $ + * $Id: dbcommands.h,v 1.23 2002/06/20 16:00:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -16,7 +16,7 @@ #include <nodes/parsenodes.h> -extern void createdb(CreatedbStmt *stmt); +extern void createdb(const CreatedbStmt *stmt); extern void dropdb(const char *dbname); extern void AlterDatabaseSet(AlterDatabaseSetStmt *stmt); diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 01b90ce028..627c30c644 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.180 2002/06/18 17:27:58 momjian Exp $ + * $Id: parsenodes.h,v 1.181 2002/06/20 16:00:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -851,13 +851,10 @@ typedef struct ClosePortalStmt typedef struct CopyStmt { NodeTag type; - bool binary; /* is a binary copy? */ RangeVar *relation; /* the relation to copy */ - bool oids; /* copy oid's? */ - int direction; /* TO or FROM */ + bool is_from; /* TO or FROM */ char *filename; /* if NULL, use stdin/stdout */ - char *delimiter; /* delimiter character, \t by default */ - char *null_print; /* how to print NULLs, `\N' by default */ + List *options; /* List of DefElem nodes */ } CopyStmt; /* ---------------------- |
