diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-17 18:47:09 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-17 18:47:09 +0000 |
commit | fcaad7e2c11b74c9bd30ad483b99d45a71e3f925 (patch) | |
tree | d3ccb4120ce4f2d115df852cd37ca49a3c5f87b8 /src/include/parser | |
parent | 388ffad0401e7ebe0c44b0a4bfb85ce0ed48b294 (diff) | |
download | postgresql-fcaad7e2c11b74c9bd30ad483b99d45a71e3f925.tar.gz postgresql-fcaad7e2c11b74c9bd30ad483b99d45a71e3f925.zip |
Standardize on the assumption that the arguments of a RowExpr correspond
to the physical layout of the rowtype, ie, there are dummy arguments
corresponding to any dropped columns in the rowtype. We formerly had a
couple of places that did it this way and several others that did not.
Fixes Gaetano Mendola's "cache lookup failed for type 0" bug of 5-Aug.
Diffstat (limited to 'src/include/parser')
-rw-r--r-- | src/include/parser/parsetree.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/parser/parsetree.h b/src/include/parser/parsetree.h index 9b488c397ac..e7f401ac315 100644 --- a/src/include/parser/parsetree.h +++ b/src/include/parser/parsetree.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/parser/parsetree.h,v 1.24 2004/05/26 04:41:46 neilc Exp $ + * $PostgreSQL: pgsql/src/include/parser/parsetree.h,v 1.25 2004/08/17 18:47:09 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -55,6 +55,13 @@ extern char *get_rte_attribute_name(RangeTblEntry *rte, AttrNumber attnum); extern void get_rte_attribute_type(RangeTblEntry *rte, AttrNumber attnum, Oid *vartype, int32 *vartypmod); +/* + * Check whether an attribute of an RTE has been dropped (note that + * get_rte_attribute_type will fail on such an attr) + */ +extern bool get_rte_attribute_is_dropped(RangeTblEntry *rte, + AttrNumber attnum); + /* ---------------- * target list operations |