mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Change WAL-logging scheme for multixacts to be more like regular
transaction IDs, rather than like subtrans; in particular, the information now survives a database restart. Per previous discussion, this is essential for PITR log shipping and for 2PC.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/access/htup.h,v 1.74 2005/04/28 21:47:17 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/access/htup.h,v 1.75 2005/06/08 15:50:27 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -505,6 +505,8 @@ typedef struct xl_heap_newpage
|
||||
typedef struct xl_heap_lock
|
||||
{
|
||||
xl_heaptid target; /* locked tuple id */
|
||||
TransactionId locking_xid; /* might be a MultiXactId not xid */
|
||||
bool xid_is_mxact; /* is it? */
|
||||
bool shared_lock; /* shared or exclusive row lock? */
|
||||
} xl_heap_lock;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user