diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-08-20 16:07:15 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-08-20 16:07:15 +0000 |
commit | 1b5e0143b51b672672e8256dc7e8f31f41ebc88f (patch) | |
tree | 23618aadbabca689ca2735db5e8c106ca2d3b864 /src/bin/pg_dump/pg_backup_archiver.h | |
parent | fcc5b95e0fb54e046a590c7c2727b490fd682f9d (diff) |
This patch allows pg_restore to recognize $-quotes in SQL queries. It
will treat any unquoted string that starts with a $ and has no preceding
identifier chars as a potential $-quote tag, it then makes sure that the
tag chars are valid. If so, it processes the $-quote.
Philip Warner
Diffstat (limited to 'src/bin/pg_dump/pg_backup_archiver.h')
-rw-r--r-- | src/bin/pg_dump/pg_backup_archiver.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.h b/src/bin/pg_dump/pg_backup_archiver.h index 7466feab0bb..7f6740376e7 100644 --- a/src/bin/pg_dump/pg_backup_archiver.h +++ b/src/bin/pg_dump/pg_backup_archiver.h @@ -17,7 +17,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.h,v 1.58 2004/04/22 02:39:10 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.h,v 1.59 2004/08/20 16:07:15 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -137,7 +137,9 @@ typedef enum SQL_SCAN = 0, SQL_IN_SQL_COMMENT, SQL_IN_EXT_COMMENT, - SQL_IN_QUOTE + SQL_IN_QUOTE, + SQL_IN_DOLLARTAG, + SQL_IN_DOLLARQUOTE } sqlparseState; typedef struct @@ -147,6 +149,7 @@ typedef struct char lastChar; char quoteChar; int braceDepth; + PQExpBuffer tagBuf; } sqlparseInfo; typedef struct _archiveHandle |