mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
pgindent run for 9.6
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
*/
|
||||
typedef struct xl_logical_message
|
||||
{
|
||||
Oid dbId; /* database Oid emitted from */
|
||||
bool transactional; /* is message transactional? */
|
||||
Size prefix_size; /* length of prefix */
|
||||
Size message_size; /* size of the message */
|
||||
char message[FLEXIBLE_ARRAY_MEMBER]; /* message including the null
|
||||
Oid dbId; /* database Oid emitted from */
|
||||
bool transactional; /* is message transactional? */
|
||||
Size prefix_size; /* length of prefix */
|
||||
Size message_size; /* size of the message */
|
||||
char message[FLEXIBLE_ARRAY_MEMBER]; /* message including the null
|
||||
* terminated prefix of length
|
||||
* prefix_size */
|
||||
} xl_logical_message;
|
||||
@@ -31,7 +31,7 @@ typedef struct xl_logical_message
|
||||
#define SizeOfLogicalMessage (offsetof(xl_logical_message, message))
|
||||
|
||||
extern XLogRecPtr LogLogicalMessage(const char *prefix, const char *message,
|
||||
size_t size, bool transactional);
|
||||
size_t size, bool transactional);
|
||||
|
||||
/* RMGR API*/
|
||||
#define XLOG_LOGICAL_MESSAGE 0x00
|
||||
|
@@ -78,12 +78,12 @@ typedef void (*LogicalDecodeCommitCB) (
|
||||
*/
|
||||
typedef void (*LogicalDecodeMessageCB) (
|
||||
struct LogicalDecodingContext *,
|
||||
ReorderBufferTXN *txn,
|
||||
XLogRecPtr message_lsn,
|
||||
bool transactional,
|
||||
const char *prefix,
|
||||
Size message_size,
|
||||
const char *message);
|
||||
ReorderBufferTXN *txn,
|
||||
XLogRecPtr message_lsn,
|
||||
bool transactional,
|
||||
const char *prefix,
|
||||
Size message_size,
|
||||
const char *message);
|
||||
|
||||
/*
|
||||
* Filter changes by origin.
|
||||
|
@@ -27,7 +27,7 @@ typedef struct ReorderBufferTupleBuf
|
||||
HeapTupleData tuple;
|
||||
|
||||
/* pre-allocated size of tuple buffer, different from tuple size */
|
||||
Size alloc_tuple_size;
|
||||
Size alloc_tuple_size;
|
||||
|
||||
/* actual tuple data follows */
|
||||
} ReorderBufferTupleBuf;
|
||||
@@ -102,10 +102,10 @@ typedef struct ReorderBufferChange
|
||||
/* Message with arbitrary data. */
|
||||
struct
|
||||
{
|
||||
char *prefix;
|
||||
Size message_size;
|
||||
char *message;
|
||||
} msg;
|
||||
char *prefix;
|
||||
Size message_size;
|
||||
char *message;
|
||||
} msg;
|
||||
|
||||
/* New snapshot, set when action == *_INTERNAL_SNAPSHOT */
|
||||
Snapshot snapshot;
|
||||
@@ -285,12 +285,12 @@ typedef void (*ReorderBufferCommitCB) (
|
||||
|
||||
/* message callback signature */
|
||||
typedef void (*ReorderBufferMessageCB) (
|
||||
ReorderBuffer *rb,
|
||||
ReorderBufferTXN *txn,
|
||||
XLogRecPtr message_lsn,
|
||||
bool transactional,
|
||||
const char *prefix, Size sz,
|
||||
const char *message);
|
||||
ReorderBuffer *rb,
|
||||
ReorderBufferTXN *txn,
|
||||
XLogRecPtr message_lsn,
|
||||
bool transactional,
|
||||
const char *prefix, Size sz,
|
||||
const char *message);
|
||||
|
||||
struct ReorderBuffer
|
||||
{
|
||||
@@ -369,9 +369,9 @@ ReorderBufferChange *ReorderBufferGetChange(ReorderBuffer *);
|
||||
void ReorderBufferReturnChange(ReorderBuffer *, ReorderBufferChange *);
|
||||
|
||||
void ReorderBufferQueueChange(ReorderBuffer *, TransactionId, XLogRecPtr lsn, ReorderBufferChange *);
|
||||
void ReorderBufferQueueMessage(ReorderBuffer *, TransactionId, Snapshot snapshot, XLogRecPtr lsn,
|
||||
bool transactional, const char *prefix,
|
||||
Size message_size, const char *message);
|
||||
void ReorderBufferQueueMessage(ReorderBuffer *, TransactionId, Snapshot snapshot, XLogRecPtr lsn,
|
||||
bool transactional, const char *prefix,
|
||||
Size message_size, const char *message);
|
||||
void ReorderBufferCommit(ReorderBuffer *, TransactionId,
|
||||
XLogRecPtr commit_lsn, XLogRecPtr end_lsn,
|
||||
TimestampTz commit_time, RepOriginId origin_id, XLogRecPtr origin_lsn);
|
||||
@@ -392,7 +392,7 @@ void ReorderBufferAddNewTupleCids(ReorderBuffer *, TransactionId, XLogRecPtr lsn
|
||||
void ReorderBufferAddInvalidations(ReorderBuffer *, TransactionId, XLogRecPtr lsn,
|
||||
Size nmsgs, SharedInvalidationMessage *msgs);
|
||||
void ReorderBufferImmediateInvalidation(ReorderBuffer *, uint32 ninvalidations,
|
||||
SharedInvalidationMessage *invalidations);
|
||||
SharedInvalidationMessage *invalidations);
|
||||
void ReorderBufferProcessXid(ReorderBuffer *, TransactionId xid, XLogRecPtr lsn);
|
||||
void ReorderBufferXidSetCatalogChanges(ReorderBuffer *, TransactionId xid, XLogRecPtr lsn);
|
||||
bool ReorderBufferXidHasCatalogChanges(ReorderBuffer *, TransactionId xid);
|
||||
|
@@ -64,7 +64,7 @@ extern void SnapBuildClearExportedSnapshot(void);
|
||||
|
||||
extern SnapBuildState SnapBuildCurrentState(SnapBuild *snapstate);
|
||||
extern Snapshot SnapBuildGetOrBuildSnapshot(SnapBuild *builder,
|
||||
TransactionId xid);
|
||||
TransactionId xid);
|
||||
|
||||
extern bool SnapBuildXactNeedsSkip(SnapBuild *snapstate, XLogRecPtr ptr);
|
||||
|
||||
|
Reference in New Issue
Block a user