PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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-2025, 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 */
22extern void NewRelationCreateToastTable(Oid relOid, Datum reloptions);
23extern void NewHeapCreateToastTable(Oid relOid, Datum reloptions,
24 LOCKMODE lockmode, Oid OIDOldToast);
25extern void AlterTableCreateToastTable(Oid relOid, Datum reloptions,
26 LOCKMODE lockmode);
27extern 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:69
unsigned int Oid
Definition: postgres_ext.h:32
void BootstrapToastTable(char *relName, Oid toastOid, Oid toastIndexOid)
Definition: toasting.c:98
void NewHeapCreateToastTable(Oid relOid, Datum reloptions, LOCKMODE lockmode, Oid OIDOldToast)
Definition: toasting.c:64
void NewRelationCreateToastTable(Oid relOid, Datum reloptions)
Definition: toasting.c:71
void AlterTableCreateToastTable(Oid relOid, Datum reloptions, LOCKMODE lockmode)
Definition: toasting.c:58