PostgreSQL Source Code  git master
toasting.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * toasting.h
4  * This file provides some definitions to support creation of toast tables
5  *
6  *
7  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/catalog/toasting.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef TOASTING_H
15 #define TOASTING_H
16 
17 #include "storage/lock.h"
18 
19 /*
20  * toasting.c prototypes
21  */
22 extern void NewRelationCreateToastTable(Oid relOid, Datum reloptions);
23 extern void NewHeapCreateToastTable(Oid relOid, Datum reloptions,
24  LOCKMODE lockmode, Oid OIDOldToast);
25 extern void AlterTableCreateToastTable(Oid relOid, Datum reloptions,
26  LOCKMODE lockmode);
27 extern void BootstrapToastTable(char *relName,
28  Oid toastOid, Oid toastIndexOid);
29 
30 #endif /* TOASTING_H */
int LOCKMODE
Definition: lockdefs.h:26
uintptr_t Datum
Definition: postgres.h:64
unsigned int Oid
Definition: postgres_ext.h:31
void BootstrapToastTable(char *relName, Oid toastOid, Oid toastIndexOid)
Definition: toasting.c:97
void NewHeapCreateToastTable(Oid relOid, Datum reloptions, LOCKMODE lockmode, Oid OIDOldToast)
Definition: toasting.c:63
void NewRelationCreateToastTable(Oid relOid, Datum reloptions)
Definition: toasting.c:70
void AlterTableCreateToastTable(Oid relOid, Datum reloptions, LOCKMODE lockmode)
Definition: toasting.c:57