mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
This commit is contained in:
@@ -70,9 +70,9 @@ static void DecodeMultiInsert(LogicalDecodingContext *ctx, XLogRecordBuffer *buf
|
||||
static void DecodeSpecConfirm(LogicalDecodingContext *ctx, XLogRecordBuffer *buf);
|
||||
|
||||
static void DecodeCommit(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
|
||||
xl_xact_parsed_commit *parsed, TransactionId xid);
|
||||
xl_xact_parsed_commit *parsed, TransactionId xid);
|
||||
static void DecodeAbort(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
|
||||
xl_xact_parsed_abort *parsed, TransactionId xid);
|
||||
xl_xact_parsed_abort *parsed, TransactionId xid);
|
||||
|
||||
/* common function to decode tuples */
|
||||
static void DecodeXLogTuple(char *data, Size len, ReorderBufferTupleBuf *tup);
|
||||
|
@@ -55,18 +55,18 @@ typedef struct LogicalErrorCallbackState
|
||||
/* wrappers around output plugin callbacks */
|
||||
static void output_plugin_error_callback(void *arg);
|
||||
static void startup_cb_wrapper(LogicalDecodingContext *ctx, OutputPluginOptions *opt,
|
||||
bool is_init);
|
||||
bool is_init);
|
||||
static void shutdown_cb_wrapper(LogicalDecodingContext *ctx);
|
||||
static void begin_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn);
|
||||
static void commit_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn,
|
||||
XLogRecPtr commit_lsn);
|
||||
XLogRecPtr commit_lsn);
|
||||
static void change_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn,
|
||||
Relation relation, ReorderBufferChange *change);
|
||||
Relation relation, ReorderBufferChange *change);
|
||||
static void truncate_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn,
|
||||
int nrelations, Relation relations[], ReorderBufferChange *change);
|
||||
int nrelations, Relation relations[], ReorderBufferChange *change);
|
||||
static void message_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn,
|
||||
XLogRecPtr message_lsn, bool transactional,
|
||||
const char *prefix, Size message_size, const char *message);
|
||||
XLogRecPtr message_lsn, bool transactional,
|
||||
const char *prefix, Size message_size, const char *message);
|
||||
|
||||
static void LoadOutputPlugin(OutputPluginCallbacks *callbacks, char *plugin);
|
||||
|
||||
|
@@ -31,7 +31,7 @@
|
||||
|
||||
static void logicalrep_write_attrs(StringInfo out, Relation rel);
|
||||
static void logicalrep_write_tuple(StringInfo out, Relation rel,
|
||||
HeapTuple tuple);
|
||||
HeapTuple tuple);
|
||||
|
||||
static void logicalrep_read_attrs(StringInfo in, LogicalRepRelation *rel);
|
||||
static void logicalrep_read_tuple(StringInfo in, LogicalRepTupleData *tuple);
|
||||
|
@@ -163,10 +163,10 @@ static const Size max_changes_in_memory = 4096;
|
||||
static ReorderBufferTXN *ReorderBufferGetTXN(ReorderBuffer *rb);
|
||||
static void ReorderBufferReturnTXN(ReorderBuffer *rb, ReorderBufferTXN *txn);
|
||||
static ReorderBufferTXN *ReorderBufferTXNByXid(ReorderBuffer *rb,
|
||||
TransactionId xid, bool create, bool *is_new,
|
||||
XLogRecPtr lsn, bool create_as_top);
|
||||
TransactionId xid, bool create, bool *is_new,
|
||||
XLogRecPtr lsn, bool create_as_top);
|
||||
static void ReorderBufferTransferSnapToParent(ReorderBufferTXN *txn,
|
||||
ReorderBufferTXN *subtxn);
|
||||
ReorderBufferTXN *subtxn);
|
||||
|
||||
static void AssertTXNLsnOrder(ReorderBuffer *rb);
|
||||
|
||||
@@ -181,7 +181,7 @@ static void AssertTXNLsnOrder(ReorderBuffer *rb);
|
||||
static ReorderBufferIterTXNState *ReorderBufferIterTXNInit(ReorderBuffer *rb, ReorderBufferTXN *txn);
|
||||
static ReorderBufferChange *ReorderBufferIterTXNNext(ReorderBuffer *rb, ReorderBufferIterTXNState *state);
|
||||
static void ReorderBufferIterTXNFinish(ReorderBuffer *rb,
|
||||
ReorderBufferIterTXNState *state);
|
||||
ReorderBufferIterTXNState *state);
|
||||
static void ReorderBufferExecuteInvalidations(ReorderBuffer *rb, ReorderBufferTXN *txn);
|
||||
|
||||
/*
|
||||
@@ -192,19 +192,19 @@ static void ReorderBufferExecuteInvalidations(ReorderBuffer *rb, ReorderBufferTX
|
||||
static void ReorderBufferCheckSerializeTXN(ReorderBuffer *rb, ReorderBufferTXN *txn);
|
||||
static void ReorderBufferSerializeTXN(ReorderBuffer *rb, ReorderBufferTXN *txn);
|
||||
static void ReorderBufferSerializeChange(ReorderBuffer *rb, ReorderBufferTXN *txn,
|
||||
int fd, ReorderBufferChange *change);
|
||||
int fd, ReorderBufferChange *change);
|
||||
static Size ReorderBufferRestoreChanges(ReorderBuffer *rb, ReorderBufferTXN *txn,
|
||||
int *fd, XLogSegNo *segno);
|
||||
int *fd, XLogSegNo *segno);
|
||||
static void ReorderBufferRestoreChange(ReorderBuffer *rb, ReorderBufferTXN *txn,
|
||||
char *change);
|
||||
char *change);
|
||||
static void ReorderBufferRestoreCleanup(ReorderBuffer *rb, ReorderBufferTXN *txn);
|
||||
static void ReorderBufferCleanupSerializedTXNs(const char *slotname);
|
||||
static void ReorderBufferSerializedPath(char *path, ReplicationSlot *slot,
|
||||
TransactionId xid, XLogSegNo segno);
|
||||
TransactionId xid, XLogSegNo segno);
|
||||
|
||||
static void ReorderBufferFreeSnap(ReorderBuffer *rb, Snapshot snap);
|
||||
static Snapshot ReorderBufferCopySnap(ReorderBuffer *rb, Snapshot orig_snap,
|
||||
ReorderBufferTXN *txn, CommandId cid);
|
||||
ReorderBufferTXN *txn, CommandId cid);
|
||||
|
||||
/* ---------------------------------------
|
||||
* toast reassembly support
|
||||
@@ -213,9 +213,9 @@ static Snapshot ReorderBufferCopySnap(ReorderBuffer *rb, Snapshot orig_snap,
|
||||
static void ReorderBufferToastInitHash(ReorderBuffer *rb, ReorderBufferTXN *txn);
|
||||
static void ReorderBufferToastReset(ReorderBuffer *rb, ReorderBufferTXN *txn);
|
||||
static void ReorderBufferToastReplace(ReorderBuffer *rb, ReorderBufferTXN *txn,
|
||||
Relation relation, ReorderBufferChange *change);
|
||||
Relation relation, ReorderBufferChange *change);
|
||||
static void ReorderBufferToastAppendChunk(ReorderBuffer *rb, ReorderBufferTXN *txn,
|
||||
Relation relation, ReorderBufferChange *change);
|
||||
Relation relation, ReorderBufferChange *change);
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user