PostgreSQL Source Code  git master
xlogdefs.h File Reference
#include <fcntl.h>
Include dependency graph for xlogdefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define InvalidXLogRecPtr   0
 
#define XLogRecPtrIsInvalid(r)   ((r) == InvalidXLogRecPtr)
 
#define FirstNormalUnloggedLSN   ((XLogRecPtr) 1000)
 
#define LSN_FORMAT_ARGS(lsn)   (AssertVariableIsOfTypeMacro((lsn), XLogRecPtr), (uint32) ((lsn) >> 32)), ((uint32) (lsn))
 
#define PG_O_DIRECT   0
 
#define DEFAULT_SYNC_METHOD   SYNC_METHOD_FSYNC
 

Typedefs

typedef uint64 XLogRecPtr
 
typedef uint64 XLogSegNo
 
typedef uint32 TimeLineID
 
typedef uint16 RepOriginId
 

Macro Definition Documentation

◆ DEFAULT_SYNC_METHOD

#define DEFAULT_SYNC_METHOD   SYNC_METHOD_FSYNC

Definition at line 113 of file xlogdefs.h.

◆ FirstNormalUnloggedLSN

#define FirstNormalUnloggedLSN   ((XLogRecPtr) 1000)

Definition at line 36 of file xlogdefs.h.

Referenced by gistGetFakeLSN(), GuessControlValues(), InitControlFile(), and StartupXLOG().

◆ InvalidXLogRecPtr

#define InvalidXLogRecPtr   0

Definition at line 28 of file xlogdefs.h.

Referenced by AddSubscriptionRelState(), AdvanceXLInsertBuffer(), AlterSubscription_refresh(), AssertChangeLsnOrder(), AssertTXNLsnOrder(), CheckPointLogicalRewriteHeap(), CheckPointSnapBuild(), CheckPointTwoPhase(), CheckRecoveryConsistency(), CreateCheckPoint(), CreateDecodingContext(), CreateReplicationSlot(), CreateRestartPoint(), CreateSubscription(), DecodeAbort(), DecodeCommit(), EndPrepare(), exitArchiveRecovery(), filter_by_origin_cb_wrapper(), filter_prepare_cb_wrapper(), FindStreamingStart(), GenericXLogFinish(), get_flush_position(), GetLastImportantRecPtr(), GetOldestSnapshot(), GetSnapshotDataInitOldSnapshot(), GetSubscriptionNotReadyRelations(), GetSubscriptionRelations(), GetSubscriptionRelState(), getTimelineHistory(), gistbeginscan(), gistGetFakeLSN(), heap_insert(), heap_multi_insert(), InitProcess(), InitWalSenderSlot(), InvalidateObsoleteReplicationSlots(), KeepLogSeg(), lazy_scan_heap(), lazy_vacuum_heap_page(), LogicalConfirmReceivedLocation(), LogicalIncreaseRestartDecodingForSlot(), LogicalIncreaseXminForSlot(), logicalrep_read_begin(), logicalrep_worker_launch(), LogicalRepSyncTableStart(), main(), MarkBufferDirtyHint(), output_plugin_error_callback(), pg_create_logical_replication_slot(), pg_create_physical_replication_slot(), pg_get_replication_slots(), pg_logical_replication_slot_advance(), pg_logical_slot_get_changes_guts(), pg_lsn_in_internal(), pg_physical_replication_slot_advance(), pg_replication_origin_advance(), pg_replication_origin_progress(), pg_replication_origin_session_progress(), pg_replication_origin_session_reset(), pg_replication_origin_xact_reset(), pgoutput_stream_start(), PhysicalConfirmReceivedLocation(), ProcessStandbyReplyMessage(), ProcessTwoPhaseBuffer(), ReadRecord(), readTimeLineHistory(), recoveryStopsAfter(), recoveryStopsBefore(), ReorderBufferAbort(), ReorderBufferAllocate(), ReorderBufferCommit(), ReorderBufferCommitChild(), ReorderBufferFinishPrepared(), ReorderBufferForget(), ReorderBufferGetOldestTXN(), ReorderBufferInvalidate(), ReorderBufferPrepare(), ReorderBufferProcessTXN(), ReorderBufferQueueChange(), ReorderBufferRememberPrepareInfo(), ReorderBufferRestoreChanges(), ReorderBufferRestoreCleanup(), ReorderBufferSetBaseSnapshot(), ReorderBufferSkipPrepare(), ReorderBufferStreamTXN(), ReorderBufferTransferSnapToParent(), ReorderBufferTXNByXid(), ReorderBufferXidHasBaseSnapshot(), ReorderBufferXidHasCatalogChanges(), ReplicationSlotCreate(), ReplicationSlotReserveWal(), ReplicationSlotsComputeLogicalRestartLSN(), ReplicationSlotsComputeRequiredLSN(), replorigin_advance(), replorigin_drop_guts(), replorigin_get_progress(), replorigin_redo(), replorigin_session_get_progress(), replorigin_session_setup(), RestoreSlotFromDisk(), restoreTwoPhaseData(), rewind_parseTimeLineHistory(), send_feedback(), sendFeedback(), shutdown_cb_wrapper(), SnapBuildFindSnapshot(), SnapBuildProcessRunningXacts(), SnapBuildSerialize(), StartReplication(), startup_cb_wrapper(), StartupXLOG(), stop_streaming(), StreamLog(), StreamLogicalLog(), SyncRepGetSyncRecPtr(), tliSwitchPoint(), TransactionIdAbortTree(), TransactionIdCommitTree(), TransactionIdGetCommitLSN(), UpdateSubscriptionRelState(), ValidXLogRecordHeader(), WaitXLogInsertionsToFinish(), WALDumpReadPage(), WalRcvWaitForStartPosition(), WalSndPrepareWrite(), WalSndWaitForWal(), xlog_redo(), XLogBackgroundFlush(), XLogBeginRead(), XLogDecodeOneRecord(), XLogFileReadAnyTLI(), XLogInsert(), XLogInsertRecord(), XLogReadDetermineTimeline(), XLogReaderInvalReadState(), XLogReaderValidatePageHeader(), XLogRecordAssemble(), XLogSaveBufferForHint(), XLogSendLogical(), and XLOGShmemInit().

◆ LSN_FORMAT_ARGS

#define LSN_FORMAT_ARGS (   lsn)    (AssertVariableIsOfTypeMacro((lsn), XLogRecPtr), (uint32) ((lsn) >> 32)), ((uint32) (lsn))

Definition at line 43 of file xlogdefs.h.

Referenced by AddWALInfoToBackupManifest(), AdvanceXLInsertBuffer(), bt_child_check(), bt_child_highkey_check(), bt_downlink_missing_check(), bt_target_page_check(), CheckRecoveryConsistency(), checkTimeLineSwitch(), createBackupLabel(), CreateDecodingContext(), CreateReplicationSlot(), CreateRestartPoint(), DecodeXLogRecord(), DecodingContextFindStartpoint(), do_pg_start_backup(), do_pg_stop_backup(), extractPageInfo(), extractPageMap(), findLastCheckpoint(), getTimelineHistory(), GetXLogBuffer(), heap_xlog_logical_rewrite(), IdentifySystem(), InvalidateObsoleteReplicationSlots(), libpqrcv_startstreaming(), LogCurrentRunningXacts(), logical_rewrite_log_mapping(), LogicalIncreaseRestartDecodingForSlot(), LogicalRepSyncTableStart(), main(), output_plugin_error_callback(), page_header(), parse_required_wal(), pg_lsn_out(), pg_replication_slot_advance(), prepareToTerminate(), ProcessStandbyReplyMessage(), readOneRecord(), ReceiveXlogStream(), RecoveryRestartPoint(), recoveryStopsAfter(), recoveryStopsBefore(), ReorderBufferSerializedPath(), replorigin_desc(), rescanLatestTimeLine(), RestoreBlockImage(), rm_redo_error_callback(), send_feedback(), sendFeedback(), SendXlogRecPtrResult(), SnapBuildDistributeNewCatalogSnapshot(), SnapBuildFindSnapshot(), SnapBuildRestore(), SnapBuildSerialize(), StartReplication(), StartupReplicationOrigin(), StartupXLOG(), stop_streaming(), StreamLog(), StreamLogicalLog(), SyncRepReleaseWaiters(), SyncRepWaitForLSN(), UpdateMinRecoveryPoint(), ValidXLogRecord(), ValidXLogRecordHeader(), WaitForWALToBecomeAvailable(), WaitXLogInsertionsToFinish(), WalRcvWaitForStartPosition(), WalReceiverMain(), writeTimeLineHistory(), xact_desc_commit(), xlog_desc(), xlog_redo(), XLogBackgroundFlush(), XLogDecodeOneRecord(), XLogDumpDisplayRecord(), XLogFlush(), XLogInsertRecord(), XLogReadDetermineTimeline(), XLogReaderValidatePageHeader(), XlogReadTwoPhaseData(), XLogRestorePoint(), XLogSendPhysical(), XLogWalRcvFlush(), XLogWalRcvSendReply(), and XLogWrite().

◆ PG_O_DIRECT

#define PG_O_DIRECT   0

Definition at line 79 of file xlogdefs.h.

Referenced by get_sync_bit(), test_open_sync(), and test_sync().

◆ XLogRecPtrIsInvalid

Typedef Documentation

◆ RepOriginId

Definition at line 65 of file xlogdefs.h.

◆ TimeLineID

typedef uint32 TimeLineID

Definition at line 59 of file xlogdefs.h.

◆ XLogRecPtr

typedef uint64 XLogRecPtr

Definition at line 21 of file xlogdefs.h.

◆ XLogSegNo

typedef uint64 XLogSegNo

Definition at line 48 of file xlogdefs.h.