postgresql/src/backend
Alvaro Herrera 6bfa88acd3 Fix WAL replay of locking an updated tuple
We were resetting the tuple's HEAP_HOT_UPDATED flag as well as t_ctid on
WAL replay of a tuple-lock operation, which is incorrect when the tuple
is already updated.

Back-patch to 9.3.  The clearing of both header elements was there
previously, but since no update could be present on a tuple that was
being locked, it was harmless.

Bug reported by Peter Geoghegan and Greg Stark in
CAM3SWZTMQiCi5PV5OWHb+bYkUcnCk=O67w0cSswPvV7XfUcU5g@mail.gmail.com and
CAM-w4HPTOeMT4KP0OJK+mGgzgcTOtLRTvFZyvD0O4aH-7dxo3Q@mail.gmail.com
respectively; diagnosis by Andres Freund.
2014-02-27 11:13:39 -03:00
..
access Fix WAL replay of locking an updated tuple 2014-02-27 11:13:39 -03:00
bootstrap Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
catalog Show xid and xmin in pg_stat_activity and pg_stat_replication. 2014-02-25 12:34:04 -05:00
commands Update a few comments to mention materialized views. 2014-02-25 13:40:12 -05:00
executor Fix *-qualification of named parameters in SQL-language functions. 2014-02-03 14:47:17 -05:00
foreign Update copyright for 2014 2014-01-07 16:05:30 -05:00
lib Update copyright for 2014 2014-01-07 16:05:30 -05:00
libpq Disallow use of SSL v3 protocol in the server as well as in libpq. 2014-01-31 17:51:18 -05:00
main Fix possible crashes due to using elog/ereport too early in startup. 2014-01-11 16:36:07 -05:00
nodes Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
optimizer Fix bogus handling of "postponed" lateral quals. 2014-01-30 14:51:16 -05:00
parser Remove broken code that tried to handle OVERLAPS with a single argument. 2014-02-18 12:44:20 -05:00
po Translation updates 2013-12-02 00:17:07 -05:00
port Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
postmaster Show xid and xmin in pg_stat_activity and pg_stat_replication. 2014-02-25 12:34:04 -05:00
regex Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
replication pg_basebackup: Skip only the *contents* of pg_replslot. 2014-02-25 11:23:45 -05:00
rewrite Update copyright for 2014 2014-01-07 16:05:30 -05:00
snowball Prefer pg_any_to_server/pg_server_to_any over pg_do_encoding_conversion. 2014-02-23 16:59:05 -05:00
storage Show xid and xmin in pg_stat_activity and pg_stat_replication. 2014-02-25 12:34:04 -05:00
tcop Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
tsearch Prefer pg_any_to_server/pg_server_to_any over pg_do_encoding_conversion. 2014-02-23 16:59:05 -05:00
utils Fix crash in json_to_record(). 2014-02-26 07:47:41 -08:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Get rid of use of dlltool in Mingw builds. 2014-02-11 12:56:20 -05:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00