postgresql/src
Robert Haas 2b9bb6979d Fix bugs in relpersistence handling during table creation.
Unlike the relistemp field which it replaced, relpersistence must be
set correctly quite early during the table creation process, as we
rely on it quite early on for a number of purposes, including security
checks.  Normally, this is set based on whether the user enters CREATE
TABLE, CREATE UNLOGGED TABLE, or CREATE TEMPORARY TABLE, but a
relation may also be made implicitly temporary by creating it in
pg_temp.  This patch fixes the handling of that case, and also
disables creation of unlogged tables in temporary tablespace (such
table indeed skip WAL-logging, but we reject an explicit
specification) and creation of relations in the temporary schemas of
other sessions (which is not very sensible, and didn't work right
anyway).

Report by Amit Khandekar.
2011-07-03 17:46:58 -04:00
..
backend Fix bugs in relpersistence handling during table creation. 2011-07-03 17:46:58 -04:00
bin Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:27 -04:00
include Fix bugs in relpersistence handling during table creation. 2011-07-03 17:46:58 -04:00
interfaces Capitalization fixes 2011-06-19 00:39:19 +03:00
makefiles Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:50 -04:00
pl Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:27 -04:00
port Unify spelling of "canceled", "canceling", "cancellation" 2011-07-02 23:30:01 +03:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Fix bugs in relpersistence handling during table creation. 2011-07-03 17:46:58 -04:00
timezone Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
tools Add comment about pg_ctl stop 2011-06-10 15:27:38 -04:00
tutorial Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:27 -04:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:50 -04:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00