postgresql/src
Tom Lane 05d8a561ff Clean up handling of XactReadOnly and RecoveryInProgress checks.
Add some checks that seem logically necessary, in particular let's make
real sure that HS slave sessions cannot create temp tables.  (If they did
they would think that temp tables belonging to the master's session with
the same BackendId were theirs.  We *must* not allow myTempNamespace to
become set in a slave session.)

Change setval() and nextval() so that they are only allowed on temp sequences
in a read-only transaction.  This seems consistent with what we allow for
table modifications in read-only transactions.  Since an HS slave can't have a
temp sequence, this also provides a nicer cure for the setval PANIC reported
by Erik Rijkers.

Make the error messages more uniform, and have them mention the specific
command being complained of.  This seems worth the trifling amount of extra
code, since people are likely to see such messages a lot more than before.
2010-02-20 21:24:02 +00:00
..
backend Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
bin Small corrections to message output targets in pg_ctl 2010-02-19 14:12:19 +00:00
include Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
interfaces Translation updates for 9.0alpha4 2010-02-19 00:40:05 +00:00
makefiles Adjust windows makefiles too, now that the walreceiver dynamic module 2010-01-20 09:30:07 +00:00
pl Translation updates for 9.0alpha4 2010-02-19 00:40:05 +00:00
port Stamp HEAD as 9.0devel, and update various places that were referring to 8.5 2010-02-17 04:19:41 +00:00
template Tweak configure to attempt to add -qnoansialias to CFLAGS whenever running 2009-02-11 20:02:40 +00:00
test Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
timezone Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
tools Stamp HEAD as 9.0devel, and update various places that were referring to 8.5 2010-02-17 04:19:41 +00:00
tutorial Remove copyright mention of Andrew Yu, per author's permission. 2010-02-02 18:52:02 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00: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 Rethink the way walreceiver is linked into the backend. Instead than shoving 2010-01-20 09:16:24 +00:00
Makefile.global.in Python 3 support in PL/Python 2009-12-15 22:59:55 +00:00
Makefile.shlib Derived files that are shipped in the distribution used to be built in the 2009-08-28 20:26:19 +00:00
nls-global.mk Update of install-sh, mkinstalldirs, and associated configury 2009-08-26 22:24:44 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00