diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-03-21 22:29:11 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-03-21 22:29:11 +0000 |
commit | f938c2b91bebb7f436a3615cf86347d7261f71e8 (patch) | |
tree | 012d53c3414a88b0d35a4210becbcadf3b81a09c /src/include/executor | |
parent | bee3b2a0a01eab4b9e8d795fd2e3b5515bf22df3 (diff) |
Revise syntax-error reporting behavior to give pleasant results for
errors in internally-generated queries, such as those submitted by
plpgsql functions. Per recent discussions with Fabien Coelho.
Diffstat (limited to 'src/include/executor')
-rw-r--r-- | src/include/executor/spi_priv.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/executor/spi_priv.h b/src/include/executor/spi_priv.h index 6c5c19994d5..dcafa1ccb9a 100644 --- a/src/include/executor/spi_priv.h +++ b/src/include/executor/spi_priv.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/executor/spi_priv.h,v 1.17 2003/11/29 22:41:01 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/executor/spi_priv.h,v 1.18 2004/03/21 22:29:11 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -27,11 +27,10 @@ typedef struct typedef struct { - /* - * context containing _SPI_plan itself as well as subsidiary - * structures - */ + /* Context containing _SPI_plan itself as well as subsidiary data */ MemoryContext plancxt; + /* Original query string (used for error reporting) */ + const char *query; /* List of List of querytrees; one sublist per original parsetree */ List *qtlist; /* List of plan trees --- length == # of querytrees, but flat list */ |