postgresql/src/backend/utils
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
..
adt Clean up handling of XactReadOnly and RecoveryInProgress checks. 2010-02-20 21:24:02 +00:00
cache Stamp HEAD as 9.0devel, and update various places that were referring to 8.5 2010-02-17 04:19:41 +00:00
error Stamp HEAD as 9.0devel, and update various places that were referring to 8.5 2010-02-17 04:19:41 +00:00
fmgr Wrap calls to SearchSysCache and related functions using macros. 2010-02-14 18:42:19 +00:00
hash Remove all the special-case code for INT64_IS_BUSTED, per decision that 2010-01-07 04:53:35 +00:00
init Wrap calls to SearchSysCache and related functions using macros. 2010-02-14 18:42:19 +00:00
mb Remove personal copyright now that file has been rewritten using 2010-02-16 20:35:07 +00:00
misc Stamp HEAD as 9.0devel, and update various places that were referring to 8.5 2010-02-17 04:19:41 +00:00
mmgr Force READY portals into FAILED state when a transaction or subtransaction 2010-02-18 03:06:46 +00:00
resowner Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
sort Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
time Add C comments that HEAP_MOVED_* define usage is only for pre-9.0 binary 2010-02-08 14:10:21 +00:00
.cvsignore Cleanup to ensure good state of derived files in tarballs. 2000-06-09 02:38:36 +00:00
Gen_dummy_probes.sed Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
Gen_fmgrtab.pl Fix genbki.pl and Gen_fmgrtab.pl to use PID-specific temp file names, 2010-01-05 20:23:32 +00:00
Makefile Get rid of the need for manual maintenance of the initial contents of 2010-01-05 01:06:57 +00:00
probes.d Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00