mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Avoid including tableam.h and xlogreader.h in nbtree.h
Doing that seems rather random and unnecessary. This commit removes those and fixes fallout, which is pretty minimal. We do need to add a forward declaration of struct TM_IndexDeleteOp (whose full definition appears in tableam.h) so that _bt_delitems_delete_check()'s declaration can use it. Author: Álvaro Herrera <alvherre@kurilemu.de> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/202508051109.lzk3lcuzsaxo@alvherre.pgsql
This commit is contained in:
@@ -17,9 +17,8 @@
|
||||
#include "access/amapi.h"
|
||||
#include "access/itup.h"
|
||||
#include "access/sdir.h"
|
||||
#include "access/tableam.h"
|
||||
#include "access/xlogreader.h"
|
||||
#include "catalog/pg_am_d.h"
|
||||
#include "catalog/pg_class.h"
|
||||
#include "catalog/pg_index.h"
|
||||
#include "lib/stringinfo.h"
|
||||
#include "storage/bufmgr.h"
|
||||
@@ -1285,9 +1284,10 @@ extern void _bt_pageinit(Page page, Size size);
|
||||
extern void _bt_delitems_vacuum(Relation rel, Buffer buf,
|
||||
OffsetNumber *deletable, int ndeletable,
|
||||
BTVacuumPosting *updatable, int nupdatable);
|
||||
struct TM_IndexDeleteOp; /* avoid including tableam.h here */
|
||||
extern void _bt_delitems_delete_check(Relation rel, Buffer buf,
|
||||
Relation heapRel,
|
||||
TM_IndexDeleteOp *delstate);
|
||||
struct TM_IndexDeleteOp *delstate);
|
||||
extern void _bt_pagedel(Relation rel, Buffer leafbuf, BTVacState *vstate);
|
||||
extern void _bt_pendingfsm_init(Relation rel, BTVacState *vstate,
|
||||
bool cleanuponly);
|
||||
|
||||
Reference in New Issue
Block a user