postgresql/src/backend
Robert Haas 5da79169d3 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:34:47 -04:00
..
access Enable CHECK constraints to be declared NOT VALID 2011-06-30 11:24:31 -04:00
bootstrap Capitalization fixes 2011-06-19 00:37:30 +03:00
catalog Fix bugs in relpersistence handling during table creation. 2011-07-03 17:34:47 -04:00
commands Fix bugs in relpersistence handling during table creation. 2011-07-03 17:34:47 -04:00
executor Fix bugs in relpersistence handling during table creation. 2011-07-03 17:34:47 -04:00
foreign Clean up most -Wunused-but-set-variable warnings from gcc 4.6 2011-04-11 22:28:45 +03:00
lib Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
libpq Modernise pg_hba.conf token processing 2011-06-28 15:57:24 -04:00
main Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
nodes Avoid compiler warnings due to possibly unused variables 2011-06-16 23:43:56 +03:00
optimizer Enable CHECK constraints to be declared NOT VALID 2011-06-30 11:24:31 -04:00
parser Fix bugs in relpersistence handling during table creation. 2011-07-03 17:34:47 -04:00
po Fixed string in German translation that causes segfault. 2011-06-20 13:53:15 +02:00
port Capitalization fixes 2011-06-19 00:37:30 +03:00
postmaster Unify spelling of "canceled", "canceling", "cancellation" 2011-06-29 09:28:46 +03:00
regex Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
replication Add missing -I switch for VPATH builds. 2011-06-22 13:20:03 -04:00
rewrite Add a missing_ok argument to get_object_address(). 2011-06-27 21:19:31 -04:00
snowball Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
storage Unify spelling of "canceled", "canceling", "cancellation" 2011-06-29 09:28:46 +03:00
tcop Enable CHECK constraints to be declared NOT VALID 2011-06-30 11:24:31 -04:00
tsearch Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
utils Mark pg_stat_reset_shared as strict 2011-07-03 13:15:58 +02:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Workaround for recursive make breakage 2011-01-13 09:32:06 +02:00
Makefile Fix symlink for errcodes.h so it works in VPATH builds from tarballs. 2011-06-22 13:08:08 -04:00
nls.mk Add the possibility to pass --flag arguments to xgettext calls 2011-06-27 00:37:21 +03:00