1/*-------------------------------------------------------------------------
4 * Efficiently and reliably populate a new relation
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/storage/bulk_write.h
12 *-------------------------------------------------------------------------
20/* Bulk writer state, contents are private to bulk_write.c */
24 * Temporary buffer to hold a page to until it's written out. Use
25 * smgr_bulk_get_buf() to reserve one of these. This is a separate typedef to
26 * distinguish it from other block-sized buffers passed around in the system.
30/* forward declared from smgr.h */
41#endif /* BULK_WRITE_H */
struct SMgrRelationData * SMgrRelation
BulkWriteState * smgr_bulk_start_rel(Relation rel, ForkNumber forknum)
void smgr_bulk_write(BulkWriteState *bulkstate, BlockNumber blocknum, BulkWriteBuffer buf, bool page_std)
BulkWriteBuffer smgr_bulk_get_buf(BulkWriteState *bulkstate)
BulkWriteState * smgr_bulk_start_smgr(SMgrRelation smgr, ForkNumber forknum, bool use_wal)
void smgr_bulk_finish(BulkWriteState *bulkstate)
PGIOAlignedBlock * BulkWriteBuffer