postgresql/src/backend
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
..
access Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
bootstrap Create a "relation mapping" infrastructure to support changing the relfilenodes 2010-02-07 20:48:13 +00:00
catalog Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
commands Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
executor Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
foreign Wrap calls to SearchSysCache and related functions using macros. 2010-02-14 18:42:19 +00:00
lib Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
libpq Fix pq_getbyte_if_available() function. It was confused on what it 2010-02-18 11:13:46 +00:00
main Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
nodes Replace the pg_listener-based LISTEN/NOTIFY mechanism with an in-memory queue. 2010-02-16 22:34:57 +00:00
optimizer Reduce the rescan cost estimate for Materialize nodes to cpu_operator_cost per 2010-02-19 21:49:10 +00:00
parser Stamp HEAD as 9.0devel, and update various places that were referring to 8.5 2010-02-17 04:19:41 +00:00
po Translation updates for 9.0alpha4 2010-02-19 00:40:05 +00:00
port Another typo fix. 2010-02-17 05:51:40 +00:00
postmaster Wrap calls to SearchSysCache and related functions using macros. 2010-02-14 18:42:19 +00:00
regex Change regexp engine's ccondissect/crevdissect routines to perform DFA 2010-02-01 02:45:29 +00:00
replication Don't use O_DIRECT when writing WAL files if archiving or streaming is 2010-02-19 10:51:04 +00:00
rewrite Wrap calls to SearchSysCache and related functions using macros. 2010-02-14 18:42:19 +00:00
snowball Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
storage Replace the pg_listener-based LISTEN/NOTIFY mechanism with an in-memory queue. 2010-02-16 22:34:57 +00:00
tcop Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
tsearch When estimating the selectivity of an inequality "column > constant" or 2010-01-04 02:44:40 +00:00
utils Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
common.mk Expand test coverage support to entire tree 2009-08-07 20:50:22 +00:00
Makefile Well, the systemtap guys moved the goalposts again: with the latest version, 2010-01-20 23:12:03 +00:00
nls.mk Convert the core lexer and parser into fully reentrant code, by making use 2009-07-13 02:02:20 +00:00