aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2020-03-15 20:53:12 -0700
committerPeter Geoghegan <pg@bowt.ie>2020-03-15 20:53:12 -0700
commitf207bb0b8f13999c91b405a2e6c8526225470816 (patch)
treef86ed0f1026a3e998fc34f61763285fb07fa5ffc /src
parent70a7b4776be4e776221e578d8ca53b2b9f8118c0 (diff)
downloadpostgresql-f207bb0b8f13999c91b405a2e6c8526225470816.tar.gz
postgresql-f207bb0b8f13999c91b405a2e6c8526225470816.zip
nbtree: Reorder nbtinsert.c prototypes.
Relocate _bt_newroot() prototype, so that the order that prototypes appear in matches the order that the functions are defined in.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/nbtree/nbtinsert.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/access/nbtree/nbtinsert.c b/src/backend/access/nbtree/nbtinsert.c
index 849a16ac28b..259cd078c2e 100644
--- a/src/backend/access/nbtree/nbtinsert.c
+++ b/src/backend/access/nbtree/nbtinsert.c
@@ -29,8 +29,6 @@
#define BTREE_FASTPATH_MIN_LEVEL 2
-static Buffer _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf);
-
static TransactionId _bt_check_unique(Relation rel, BTInsertState insertstate,
Relation heapRel,
IndexUniqueCheck checkUnique, bool *is_unique,
@@ -55,6 +53,7 @@ static Buffer _bt_split(Relation rel, BTScanInsert itup_key, Buffer buf,
IndexTuple nposting, uint16 postingoff);
static void _bt_insert_parent(Relation rel, Buffer buf, Buffer rbuf,
BTStack stack, bool is_root, bool is_only);
+static Buffer _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf);
static bool _bt_pgaddtup(Page page, Size itemsize, IndexTuple itup,
OffsetNumber itup_off);
static void _bt_vacuum_one_page(Relation rel, Buffer buffer, Relation heapRel);