postgresql/src/include/access/hio.h

45 lines
1.2 KiB
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* hio.h
* POSTGRES heap access method input/output definitions.
*
*
2011-01-01 19:18:15 +01:00
* Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
2010-09-20 22:08:53 +02:00
* src/include/access/hio.h
*
*-------------------------------------------------------------------------
*/
#ifndef HIO_H
#define HIO_H
#include "access/htup.h"
#include "utils/relcache.h"
2006-07-13 19:47:02 +02:00
#include "storage/buf.h"
/*
* state for bulk inserts --- private to heapam.c and hio.c
*
* If current_buf isn't InvalidBuffer, then we are holding an extra pin
* on that buffer.
*
* "typedef struct BulkInsertStateData *BulkInsertState" is in heapam.h
*/
typedef struct BulkInsertStateData
{
BufferAccessStrategy strategy; /* our BULKWRITE strategy object */
Buffer current_buf; /* current insertion target page */
2011-04-10 17:42:00 +02:00
} BulkInsertStateData;
1999-05-25 18:15:34 +02:00
extern void RelationPutHeapTuple(Relation relation, Buffer buffer,
HeapTuple tuple);
extern Buffer RelationGetBufferForTuple(Relation relation, Size len,
Buffer otherBuffer, int options,
struct BulkInsertStateData * bistate,
Buffer *vmbuffer);
#endif /* HIO_H */