pgsql: Fix the implicit-RTE code to be able to handle implicit RTEs for - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix the implicit-RTE code to be able to handle implicit RTEs for
Date
Msg-id 20081006021256.D74B67545A4@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix the implicit-RTE code to be able to handle implicit RTEs for CTEs, as
well as regular tables.  Per discussion, this seems necessary to meet the
principle of least astonishment.

In passing, simplify the error messages in warnAutoRange().  Now that we
have parser error position info for these errors, it doesn't seem very
useful to word the error message differently depending on whether we are
inside a sub-select or not.

Modified Files:
--------------
    pgsql/src/backend/parser:
        parse_clause.c (r1.180 -> r1.181)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_clause.c?r1=1.180&r2=1.181)
        parse_relation.c (r1.136 -> r1.137)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_relation.c?r1=1.136&r2=1.137)
    pgsql/src/include/parser:
        parse_relation.h (r1.59 -> r1.60)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/parser/parse_relation.h?r1=1.59&r2=1.60)

pgsql-committers by date:

Previous
From: itagaki@pgfoundry.org (User Itagaki)
Date:
Subject: orafce - orafce: Fix out-of-range access in dbms_pipe.db_pipes.
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Experimental patch to see if it fixes MSVC builds ...