postgresql/src/backend/commands
Tom Lane 0b33790421 Clean up the mess around EXPLAIN and materialized views.
Revert the matview-related changes in explain.c's API, as per recent
complaint from Robert Haas.  The reason for these appears to have been
principally some ill-considered choices around having intorel_startup do
what ought to be parse-time checking, plus a poor arrangement for passing
it the view parsetree it needs to store into pg_rewrite when creating a
materialized view.  Do the latter by having parse analysis stick a copy
into the IntoClause, instead of doing it at runtime.  (On the whole,
I seriously question the choice to represent CREATE MATERIALIZED VIEW as a
variant of SELECT INTO/CREATE TABLE AS, because that means injecting even
more complexity into what was already a horrid legacy kluge.  However,
I didn't go so far as to rethink that choice ... yet.)

I also moved several error checks into matview parse analysis, and
made the check for external Params in a matview more accurate.

In passing, clean things up a bit more around interpretOidsOption(),
and fix things so that we can use that to force no-oids for views,
sequences, etc, thereby eliminating the need to cons up "oids = false"
options when creating them.

catversion bump due to change in IntoClause.  (I wonder though if we
really need readfuncs/outfuncs support for IntoClause anymore.)
2013-04-12 19:25:31 -04:00
..
Makefile Add a materialized view relations. 2013-03-03 18:23:31 -06:00
aggregatecmds.c Code beautification for object-access hook machinery. 2013-03-06 20:53:25 -05:00
alter.c Allow extracting machine-readable object identity 2013-03-20 18:19:19 -03:00
analyze.c Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
async.c Fix bogus when-to-deregister-from-listener-array logic. 2013-02-13 12:48:05 -05:00
cluster.c Create a distinction between a populated matview and a scannable one. 2013-04-09 13:02:49 -05:00
collationcmds.c Refactor ALTER some-obj RENAME implementation 2013-01-21 12:06:41 -03:00
comment.c Add a materialized view relations. 2013-03-03 18:23:31 -06:00
constraint.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
conversioncmds.c Refactor ALTER some-obj RENAME implementation 2013-01-21 12:06:41 -03:00
copy.c Support writable foreign tables. 2013-03-10 14:16:02 -04:00
createas.c Clean up the mess around EXPLAIN and materialized views. 2013-04-12 19:25:31 -04:00
dbcommands.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
define.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
discard.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
dropcmds.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
event_trigger.c Remove quotes around SQL statement in error message 2013-04-11 12:00:09 -03:00
explain.c Clean up the mess around EXPLAIN and materialized views. 2013-04-12 19:25:31 -04:00
extension.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
foreigncmds.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
functioncmds.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
indexcmds.c Add a materialized view relations. 2013-03-03 18:23:31 -06:00
lockcmds.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
matview.c Create a distinction between a populated matview and a scannable one. 2013-04-09 13:02:49 -05:00
opclasscmds.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
operatorcmds.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
portalcmds.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
prepare.c Clean up the mess around EXPLAIN and materialized views. 2013-04-12 19:25:31 -04:00
proclang.c Code beautification for object-access hook machinery. 2013-03-06 20:53:25 -05:00
schemacmds.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
seclabel.c Add a materialized view relations. 2013-03-03 18:23:31 -06:00
sequence.c Clean up the mess around EXPLAIN and materialized views. 2013-04-12 19:25:31 -04:00
tablecmds.c Clean up the mess around EXPLAIN and materialized views. 2013-04-12 19:25:31 -04:00
tablespace.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
trigger.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
tsearchcmds.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
typecmds.c Clean up the mess around EXPLAIN and materialized views. 2013-04-12 19:25:31 -04:00
user.c Extend object-access hook machinery to support post-alter events. 2013-03-17 22:57:26 -04:00
vacuum.c Add a materialized view relations. 2013-03-03 18:23:31 -06:00
vacuumlazy.c Allow I/O reliability checks using 16-bit checksums 2013-03-22 13:54:07 +00:00
variable.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
view.c Clean up the mess around EXPLAIN and materialized views. 2013-04-12 19:25:31 -04:00