postgresql/src/backend/commands
Tom Lane 458857cc9d Throw a useful error message if an extension script file is fed to psql.
We have seen one too many reports of people trying to use 9.1 extension
files in the old-fashioned way of sourcing them in psql.  Not only does
that usually not work (due to failure to substitute for MODULE_PATHNAME
and/or @extschema@), but if it did work they'd get a collection of loose
objects not an extension.  To prevent this, insert an \echo ... \quit
line that prints a suitable error message into each extension script file,
and teach commands/extension.c to ignore lines starting with \echo.
That should not only prevent any adverse consequences of loading a script
file the wrong way, but make it crystal clear to users that they need to
do it differently now.

Tom Lane, following an idea of Andrew Dunstan's.  Back-patch into 9.1
... there is not going to be much value in this if we wait till 9.2.
2011-10-12 15:45:03 -04:00
..
Makefile DDL support for collations 2011-02-12 15:55:18 +02:00
aggregatecmds.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
alter.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
analyze.c Remove many -Wcast-qual warnings 2011-09-11 21:54:32 +03:00
async.c Use callbacks in SlruScanDirectory for the actual action 2011-10-04 14:03:23 -03:00
cluster.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
collationcmds.c Fix typo in error message. 2011-09-07 13:29:26 -04:00
comment.c Remove rel.h from objectaddress.h; only relcache.h is necessary. 2011-06-28 17:08:29 -04:00
constraint.c Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
conversioncmds.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
copy.c Remove many -Wcast-qual warnings 2011-09-11 21:54:32 +03:00
dbcommands.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
define.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
discard.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
explain.c Rearrange the implementation of index-only scans. 2011-10-11 14:21:30 -04:00
extension.c Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
foreigncmds.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
functioncmds.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
indexcmds.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
lockcmds.c Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
opclasscmds.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
operatorcmds.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
portalcmds.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
prepare.c Redesign the plancache mechanism for more flexibility and efficiency. 2011-09-16 00:43:52 -04:00
proclang.c Rethink behavior of CREATE OR REPLACE during CREATE EXTENSION. 2011-07-23 16:59:39 -04:00
schemacmds.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
seclabel.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
sequence.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
tablecmds.c Fix ALTER TABLE ONLY .. DROP CONSTRAINT. 2011-10-09 23:39:52 -04:00
tablespace.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
trigger.c Rearrange the implementation of index-only scans. 2011-10-11 14:21:30 -04:00
tsearchcmds.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
typecmds.c Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
user.c Move Timestamp/Interval typedefs and basic macros into datatype/timestamp.h. 2011-09-09 13:23:41 -04:00
vacuum.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
vacuumlazy.c Move Timestamp/Interval typedefs and basic macros into datatype/timestamp.h. 2011-09-09 13:23:41 -04:00
variable.c Simplify handling of the timezone GUC by making initdb choose the default. 2011-09-09 17:59:11 -04:00
view.c Fix bugs in relpersistence handling during table creation. 2011-07-03 17:34:47 -04:00