diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-04-19 17:22:31 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-04-19 17:22:31 +0000 |
| commit | 862b20b3822887bdb3b42a72ea0e73dc8028fb31 (patch) | |
| tree | f32c0739293f6ad6389173060b1cf55aecc66575 /src/backend/parser/keywords.c | |
| parent | 83ab1c04757fadf116942f837408c8f9e95796e2 (diff) | |
| download | postgresql-862b20b3822887bdb3b42a72ea0e73dc8028fb31.tar.gz | |
Complete TODO item:
o -Allow dump/load of CSV format
This adds new keywords to COPY and \copy:
CSV - enable CSV mode (comma separated variable)
QUOTE - specify quote character
ESCAPE - specify escape character
FORCE - force quoting of specified column
LITERAL - suppress null comparison for columns
Doc changes included. Regression updates coming from Andrew.
Diffstat (limited to 'src/backend/parser/keywords.c')
| -rw-r--r-- | src/backend/parser/keywords.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/parser/keywords.c b/src/backend/parser/keywords.c index 54ac767126..613d22ac30 100644 --- a/src/backend/parser/keywords.c +++ b/src/backend/parser/keywords.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.147 2004/03/11 01:47:40 ishii Exp $ + * $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.148 2004/04/19 17:22:31 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -90,6 +90,7 @@ static const ScanKeyword ScanKeywords[] = { {"createdb", CREATEDB}, {"createuser", CREATEUSER}, {"cross", CROSS}, + {"csv", CSV}, {"current_date", CURRENT_DATE}, {"current_time", CURRENT_TIME}, {"current_timestamp", CURRENT_TIMESTAMP}, @@ -186,6 +187,7 @@ static const ScanKeyword ScanKeywords[] = { {"like", LIKE}, {"limit", LIMIT}, {"listen", LISTEN}, + {"literal", LITERAL}, {"load", LOAD}, {"local", LOCAL}, {"localtime", LOCALTIME}, @@ -248,6 +250,7 @@ static const ScanKeyword ScanKeywords[] = { {"privileges", PRIVILEGES}, {"procedural", PROCEDURAL}, {"procedure", PROCEDURE}, + {"quote", QUOTE}, {"read", READ}, {"real", REAL}, {"recheck", RECHECK}, |
