postgresql/src/include/commands
Tom Lane 895a94de6d Avoid incrementing the CommandCounter when CommandCounterIncrement is called
but no database changes have been made since the last CommandCounterIncrement.
This should result in a significant improvement in the number of "commands"
that can typically be performed within a transaction before hitting the 2^32
CommandId size limit.  In particular this buys back (and more) the possible
adverse consequences of my previous patch to fix plan caching behavior.

The implementation requires tracking whether the current CommandCounter
value has been "used" to mark any tuples.  CommandCounter values stored into
snapshots are presumed not to be used for this purpose.  This requires some
small executor changes, since the executor used to conflate the curcid of
the snapshot it was using with the command ID to mark output tuples with.
Separating these concepts allows some small simplifications in executor APIs.

Something for the TODO list: look into having CommandCounterIncrement not do
AcceptInvalidationMessages.  It seems fairly bogus to be doing it there,
but exactly where to do it instead isn't clear, and I'm disinclined to mess
with asynchronous behavior during late beta.
2007-11-30 21:22:54 +00:00
..
alter.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
async.h RESET SESSION, plus related new DDL commands. Patch from Marko Kreen, 2007-04-12 06:53:49 +00:00
cluster.h Have CLUSTER advance the table's relfrozenxid. The new frozen point is the 2007-05-18 23:19:42 +00:00
comment.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
conversioncmds.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
copy.h First phase of plan-invalidation project: create a plan cache management 2007-03-13 00:33:44 +00:00
dbcommands.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
defrem.h Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
discard.h Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
explain.h Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
lockcmds.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
portalcmds.h Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
prepare.h pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
proclang.h Allow non-superuser database owners to create procedural languages. 2007-03-26 16:58:41 +00:00
schemacmds.h pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
sequence.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
tablecmds.h pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
tablespace.h Rework temp_tablespaces patch so that temp tablespaces are assigned separately 2007-06-07 19:19:57 +00:00
trigger.h Avoid incrementing the CommandCounter when CommandCounterIncrement is called 2007-11-30 21:22:54 +00:00
typecmds.h Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
user.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
vacuum.h pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
variable.h pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
version.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
view.h First phase of plan-invalidation project: create a plan cache management 2007-03-13 00:33:44 +00:00