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 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 106 of file xlogdefs.h.

◆ FirstNormalUnloggedLSN

#define FirstNormalUnloggedLSN   ((XLogRecPtr) 1000)

Definition at line 36 of file xlogdefs.h.

Referenced by BootStrapXLOG(), and gistGetFakeLSN().

◆ InvalidXLogRecPtr

#define InvalidXLogRecPtr   0

Definition at line 28 of file xlogdefs.h.

Referenced by AddSubscriptionRelState(), AdvanceXLInsertBuffer(), AlterSubscription_refresh(), AssertTXNLsnOrder(), CheckPointLogicalRewriteHeap(), CheckPointSnapBuild(), CheckPointTwoPhase(), CheckRecoveryConsistency(), CreateCheckPoint(), CreateDecodingContext(), CreateReplicationSlot(), CreateRestartPoint(), CreateSubscription(), DecodeCommit(), DecodingContextFindStartpoint(), EndPrepare(), exitArchiveRecovery(), extractPageMap(), filter_by_origin_cb_wrapper(), FindStreamingStart(), GenericXLogFinish(), get_flush_position(), GetLastImportantRecPtr(), GetOldestSnapshot(), GetSnapshotData(), GetSubscriptionRelState(), getTimelineHistory(), gistbeginscan(), InitProcess(), InitWalSenderSlot(), KeepLogSeg(), lazy_scan_heap(), lazy_vacuum_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_replication_origin_advance(), pg_replication_origin_progress(), pg_replication_origin_session_progress(), pg_replication_origin_session_reset(), pg_replication_origin_xact_reset(), PhysicalConfirmReceivedLocation(), ProcessStandbyReplyMessage(), ProcessTwoPhaseBuffer(), ReadRecord(), readTimeLineHistory(), recoveryStopsAfter(), recoveryStopsBefore(), RemoveNonParentXlogFiles(), RemoveXlogFile(), ReorderBufferAbort(), ReorderBufferAllocate(), ReorderBufferCommit(), ReorderBufferCommitChild(), ReorderBufferForget(), ReorderBufferGetOldestTXN(), ReorderBufferQueueChange(), ReorderBufferRestoreChanges(), ReorderBufferRestoreCleanup(), ReorderBufferSetBaseSnapshot(), ReorderBufferTransferSnapToParent(), ReorderBufferTXNByXid(), ReorderBufferXidHasBaseSnapshot(), ReorderBufferXidHasCatalogChanges(), ReplicationSlotCreate(), ReplicationSlotReserveWal(), ReplicationSlotsComputeLogicalRestartLSN(), ReplicationSlotsComputeRequiredLSN(), replorigin_advance(), replorigin_drop(), 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(), WaitXLogInsertionsToFinish(), WalRcvWaitForStartPosition(), WalSndPrepareWrite(), WalSndWaitForWal(), xlog_redo(), XLogBackgroundFlush(), XLogDumpReadPage(), XLogInsert(), XLogInsertRecord(), XLogReadDetermineTimeline(), XLogReaderValidatePageHeader(), XLogReadRecord(), XLogRecordAssemble(), XLogSaveBufferForHint(), XLogSendLogical(), and XLOGShmemInit().

◆ PG_O_DIRECT

#define PG_O_DIRECT   0

Definition at line 72 of file xlogdefs.h.

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

◆ XLogRecPtrIsInvalid

Typedef Documentation

◆ RepOriginId

Definition at line 58 of file xlogdefs.h.

◆ TimeLineID

typedef uint32 TimeLineID

Definition at line 52 of file xlogdefs.h.

◆ XLogRecPtr

typedef uint64 XLogRecPtr

Definition at line 21 of file xlogdefs.h.

◆ XLogSegNo

typedef uint64 XLogSegNo

Definition at line 41 of file xlogdefs.h.