postgresql/src/include
Tom Lane 742fd06d98 Fix up ruleutils.c for CTE features. The main problem was that
get_name_for_var_field didn't have enough context to interpret a reference to
a CTE query's output.  Fixing this requires separate hacks for the regular
deparse case (pg_get_ruledef) and for the EXPLAIN case, since the available
context information is quite different.  It's pretty nearly parallel to the
existing code for SUBQUERY RTEs, though.  Also, add code to make sure we
qualify a relation name that matches a CTE name; else the CTE will mistakenly
capture the reference when reloading the rule.

In passing, fix a pre-existing problem with get_name_for_var_field not working
on variables in targetlists of SubqueryScan plan nodes.  Although latent all
along, this wasn't a problem until we made EXPLAIN VERBOSE try to print
targetlists.  To do this, refactor the deparse_context_for_plan API so that
the special case for SubqueryScan is all on ruleutils.c's side.
2008-10-06 20:29:38 +00:00
..
access Rewrite the FSM. Instead of relying on a fixed-size shared memory segment, the 2008-09-30 10:52:14 +00:00
bootstrap Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
catalog When expanding a whole-row Var into a RowExpr during ResolveNew(), attach 2008-10-06 17:39:26 +00:00
commands Mark SessionReplicationRole as PGDLLIMPORT so it 2008-09-19 14:43:46 +00:00
executor Implement SQL-standard WITH clauses, including WITH RECURSIVE. 2008-10-04 21:56:55 +00:00
lib Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
libpq Parse pg_hba.conf in postmaster, instead of once in each backend for 2008-09-15 12:32:57 +00:00
mb Move wchar2char() and char2wchar() from tsearch into /mb to be easier to 2008-06-18 18:42:54 +00:00
nodes When expanding a whole-row Var into a RowExpr during ResolveNew(), attach 2008-10-06 17:39:26 +00:00
optimizer Implement SQL-standard WITH clauses, including WITH RECURSIVE. 2008-10-04 21:56:55 +00:00
parser Fix GetCTEForRTE() to deal with the possibility that the RTE it's given came 2008-10-06 15:15:22 +00:00
port Add $PostgreSQL$ markers to a lot of files that were missing them. 2008-05-17 01:28:26 +00:00
portability Add support for tracking call counts and elapsed runtime for user-defined 2008-05-15 00:17:41 +00:00
postmaster Introduce the concept of relation forks. An smgr relation can now consist 2008-08-11 11:05:11 +00:00
regex Convert three more guc settings to enum type: 2008-04-02 14:42:56 +00:00
rewrite Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
snowball Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
storage Use fork names instead of numbers in the file names for additional 2008-10-06 14:13:17 +00:00
tcop Implement enum type for guc parameters, and convert a couple of existing 2008-03-10 12:55:13 +00:00
tsearch Create a selectivity estimation function for the text search @@ operator. 2008-09-19 19:03:41 +00:00
utils Fix up ruleutils.c for CTE features. The main problem was that 2008-10-06 20:29:38 +00:00
c.h Update source code comment about when to use gettext_noop(). 2008-07-03 02:49:54 +00:00
fmgr.h If a loadable module has wrong values in its magic block, spell out 2008-09-03 22:34:50 +00:00
funcapi.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
getaddrinfo.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
getopt_long.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
Makefile Remove all traces that suggest that a non-Bison yacc might be supported, and 2008-08-29 13:02:33 +00:00
miscadmin.h Prevent shutdown in normal mode if online backup is running, and 2008-04-23 13:44:59 +00:00
pg_config.h.in Extend yesterday's patch making BLCKSZ and RELSEG_SIZE configurable to also 2008-05-02 19:52:37 +00:00
pg_config.h.win32 Provide for MSVC config equivalents of recently added configure options. Remove 2008-05-03 00:24:06 +00:00
pg_config_manual.h Don't make --enable-cassert turn on RANDOMIZE_ALLOCATED_MEMORY automatically; 2008-07-12 02:28:43 +00:00
pg_trace.h Enable probes to work with Mac OS X Leopard and other OSes that will 2008-03-17 19:44:41 +00:00
pgstat.h Make the temporary directory for pgstat files configurable by the GUC 2008-08-15 08:37:41 +00:00
pgtime.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
port.h Fix rmtree() so that it keeps going after failure to remove any individual 2008-04-18 17:05:45 +00:00
postgres.h Allow float8, int8, and related datatypes to be passed by value on machines 2008-04-21 00:26:47 +00:00
postgres_ext.h Move NAMEDATALEN definition from postgres_ext.h to pg_config_manual.h. It 2007-02-06 09:16:08 +00:00
postgres_fe.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
rusagestub.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00