diff options
| author | Heikki Linnakangas | 2012-06-24 15:51:37 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2012-06-24 16:19:45 +0000 |
| commit | 0ab9d1c4b31622e9176472b4276f3e9831e3d6ba (patch) | |
| tree | b8e9e5337338ba3010e00af50e1a33adb906a212 /src/include/access/transam.h | |
| parent | 061e7efb1b4c5b8a5d02122b7780531b8d5bf23d (diff) | |
Replace XLogRecPtr struct with a 64-bit integer.
This simplifies code that needs to do arithmetic on XLogRecPtrs.
To avoid changing on-disk format of data pages, the LSN on data pages is
still stored in the old format. That should keep pg_upgrade happy. However,
we have XLogRecPtrs embedded in the control file, and in the structs that
are sent over the replication protocol, so this changes breaks compatibility
of pg_basebackup and server. I didn't do anything about this in this patch,
per discussion on -hackers, the right thing to do would to be to change the
replication protocol to be architecture-independent, so that you could use
a newer version of pg_receivexlog, for example, against an older server
version.
Diffstat (limited to 'src/include/access/transam.h')
| -rw-r--r-- | src/include/access/transam.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/include/access/transam.h b/src/include/access/transam.h index 937386575b6..228f6a12c36 100644 --- a/src/include/access/transam.h +++ b/src/include/access/transam.h @@ -139,10 +139,6 @@ extern bool TransactionStartedDuringRecovery(void); /* in transam/varsup.c */ extern PGDLLIMPORT VariableCache ShmemVariableCache; -/* in transam/transam.c */ -extern const XLogRecPtr InvalidXLogRecPtr; - - /* * prototypes for functions in transam/transam.c */ |
