1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-07 19:06:32 +03:00

Improve COPY syntax to use WITH clause, keep backward compatibility.

This commit is contained in:
Bruce Momjian
2002-06-20 16:00:44 +00:00
parent 2912fd45d1
commit c2c2fd57ee
24 changed files with 1228 additions and 961 deletions

View File

@@ -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;
/* ----------------------