PostgreSQL Source Code  git master
toasting.c File Reference
#include "postgres.h"
#include "access/heapam.h"
#include "access/xact.h"
#include "catalog/binary_upgrade.h"
#include "catalog/catalog.h"
#include "catalog/dependency.h"
#include "catalog/heap.h"
#include "catalog/index.h"
#include "catalog/namespace.h"
#include "catalog/pg_am.h"
#include "catalog/pg_namespace.h"
#include "catalog/pg_opclass.h"
#include "catalog/pg_type.h"
#include "catalog/toasting.h"
#include "miscadmin.h"
#include "nodes/makefuncs.h"
#include "storage/lock.h"
#include "utils/builtins.h"
#include "utils/rel.h"
#include "utils/syscache.h"
Include dependency graph for toasting.c:

Go to the source code of this file.

Functions

static void CheckAndCreateToastTable (Oid relOid, Datum reloptions, LOCKMODE lockmode, bool check)
 
static bool create_toast_table (Relation rel, Oid toastOid, Oid toastIndexOid, Datum reloptions, LOCKMODE lockmode, bool check)
 
static bool needs_toast_table (Relation rel)
 
void AlterTableCreateToastTable (Oid relOid, Datum reloptions, LOCKMODE lockmode)
 
void NewHeapCreateToastTable (Oid relOid, Datum reloptions, LOCKMODE lockmode)
 
void NewRelationCreateToastTable (Oid relOid, Datum reloptions)
 
void BootstrapToastTable (char *relName, Oid toastOid, Oid toastIndexOid)
 

Variables

Oid binary_upgrade_next_toast_pg_type_oid = InvalidOid
 

Function Documentation

◆ AlterTableCreateToastTable()

void AlterTableCreateToastTable ( Oid  relOid,
Datum  reloptions,
LOCKMODE  lockmode 
)

Definition at line 60 of file toasting.c.

References CheckAndCreateToastTable().

Referenced by ATRewriteCatalogs().

61 {
62  CheckAndCreateToastTable(relOid, reloptions, lockmode, true);
63 }
static void CheckAndCreateToastTable(Oid relOid, Datum reloptions, LOCKMODE lockmode, bool check)
Definition: toasting.c:78

◆ BootstrapToastTable()

void BootstrapToastTable ( char *  relName,
Oid  toastOid,
Oid  toastIndexOid 
)

Definition at line 96 of file toasting.c.

References AccessExclusiveLock, create_toast_table(), elog, ereport, errcode(), errmsg(), ERROR, makeRangeVar(), NoLock, RelationData::rd_rel, table_close(), and table_openrv().

97 {
98  Relation rel;
99 
100  rel = table_openrv(makeRangeVar(NULL, relName, -1), AccessExclusiveLock);
101 
102  if (rel->rd_rel->relkind != RELKIND_RELATION &&
103  rel->rd_rel->relkind != RELKIND_MATVIEW)
104  ereport(ERROR,
105  (errcode(ERRCODE_WRONG_OBJECT_TYPE),
106  errmsg("\"%s\" is not a table or materialized view",
107  relName)));
108 
109  /* create_toast_table does all the work */
110  if (!create_toast_table(rel, toastOid, toastIndexOid, (Datum) 0,
111  AccessExclusiveLock, false))
112  elog(ERROR, "\"%s\" does not require a toast table",
113  relName);
114 
115  table_close(rel, NoLock);
116 }
void table_close(Relation relation, LOCKMODE lockmode)
Definition: table.c:133
int errcode(int sqlerrcode)
Definition: elog.c:570
Form_pg_class rd_rel
Definition: rel.h:83
static bool create_toast_table(Relation rel, Oid toastOid, Oid toastIndexOid, Datum reloptions, LOCKMODE lockmode, bool check)
Definition: toasting.c:127
#define ERROR
Definition: elog.h:43
#define NoLock
Definition: lockdefs.h:34
#define ereport(elevel, rest)
Definition: elog.h:141
uintptr_t Datum
Definition: postgres.h:367
Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode)
Definition: table.c:68
#define AccessExclusiveLock
Definition: lockdefs.h:45
int errmsg(const char *fmt,...)
Definition: elog.c:784
#define elog(elevel,...)
Definition: elog.h:226
RangeVar * makeRangeVar(char *schemaname, char *relname, int location)
Definition: makefuncs.c:420

◆ CheckAndCreateToastTable()

static void CheckAndCreateToastTable ( Oid  relOid,
Datum  reloptions,
LOCKMODE  lockmode,
bool  check 
)
static

Definition at line 78 of file toasting.c.

References create_toast_table(), InvalidOid, NoLock, table_close(), and table_open().

Referenced by AlterTableCreateToastTable(), NewHeapCreateToastTable(), and NewRelationCreateToastTable().

79 {
80  Relation rel;
81 
82  rel = table_open(relOid, lockmode);
83 
84  /* create_toast_table does all the work */
85  (void) create_toast_table(rel, InvalidOid, InvalidOid, reloptions, lockmode, check);
86 
87  table_close(rel, NoLock);
88 }
void table_close(Relation relation, LOCKMODE lockmode)
Definition: table.c:133
static bool create_toast_table(Relation rel, Oid toastOid, Oid toastIndexOid, Datum reloptions, LOCKMODE lockmode, bool check)
Definition: toasting.c:127
#define NoLock
Definition: lockdefs.h:34
#define InvalidOid
Definition: postgres_ext.h:36
Relation table_open(Oid relationId, LOCKMODE lockmode)
Definition: table.c:39

◆ create_toast_table()

static bool create_toast_table ( Relation  rel,
Oid  toastOid,
Oid  toastIndexOid,
Datum  reloptions,
LOCKMODE  lockmode,
bool  check 
)
static

Definition at line 127 of file toasting.c.

References AccessExclusiveLock, Assert, binary_upgrade_next_toast_pg_class_oid, binary_upgrade_next_toast_pg_type_oid, CatalogTupleUpdate(), ObjectAddress::classId, CommandCounterIncrement(), CreateTemplateTupleDesc(), CurrentMemoryContext, DEPENDENCY_INTERNAL, elog, ERROR, GETSTRUCT, GetTempToastNamespace(), heap_create_with_catalog(), heap_freetuple(), heap_inplace_update(), HeapTupleIsValid, IndexInfo::ii_Am, IndexInfo::ii_AmCache, IndexInfo::ii_BrokenHotChain, IndexInfo::ii_Concurrent, IndexInfo::ii_Context, IndexInfo::ii_ExclusionOps, IndexInfo::ii_ExclusionProcs, IndexInfo::ii_ExclusionStrats, IndexInfo::ii_Expressions, IndexInfo::ii_ExpressionsState, IndexInfo::ii_IndexAttrNumbers, IndexInfo::ii_NumIndexAttrs, IndexInfo::ii_NumIndexKeyAttrs, IndexInfo::ii_ParallelWorkers, IndexInfo::ii_Predicate, IndexInfo::ii_PredicateState, IndexInfo::ii_ReadyForInserts, IndexInfo::ii_Unique, index_create(), INDEX_CREATE_IS_PRIMARY, InvalidOid, IsBinaryUpgrade, IsBootstrapProcessingMode, isTempOrTempToastNamespace(), list_make2, makeNode, NAMEDATALEN, needs_toast_table(), NIL, NoLock, ObjectAddress::objectId, ObjectIdGetDatum, ObjectAddress::objectSubId, OidIsValid, ONCOMMIT_NOOP, RelationData::rd_rel, recordDependencyOn(), RelationGetRelid, RelationIsMapped, RELOID, reltoastrelid, RowExclusiveLock, SearchSysCacheCopy1, ShareLock, snprintf, HeapTupleData::t_self, table_close(), table_open(), TupleDescAttr, and TupleDescInitEntry().

Referenced by BootstrapToastTable(), and CheckAndCreateToastTable().

129 {
130  Oid relOid = RelationGetRelid(rel);
131  HeapTuple reltup;
132  TupleDesc tupdesc;
133  bool shared_relation;
134  bool mapped_relation;
135  Relation toast_rel;
136  Relation class_rel;
137  Oid toast_relid;
138  Oid toast_typid = InvalidOid;
139  Oid namespaceid;
140  char toast_relname[NAMEDATALEN];
141  char toast_idxname[NAMEDATALEN];
142  IndexInfo *indexInfo;
143  Oid collationObjectId[2];
144  Oid classObjectId[2];
145  int16 coloptions[2];
146  ObjectAddress baseobject,
147  toastobject;
148 
149  /*
150  * Is it already toasted?
151  */
152  if (rel->rd_rel->reltoastrelid != InvalidOid)
153  return false;
154 
155  /*
156  * Check to see whether the table actually needs a TOAST table.
157  */
158  if (!IsBinaryUpgrade)
159  {
160  /* Normal mode, normal check */
161  if (!needs_toast_table(rel))
162  return false;
163  }
164  else
165  {
166  /*
167  * In binary-upgrade mode, create a TOAST table if and only if
168  * pg_upgrade told us to (ie, a TOAST table OID has been provided).
169  *
170  * This indicates that the old cluster had a TOAST table for the
171  * current table. We must create a TOAST table to receive the old
172  * TOAST file, even if the table seems not to need one.
173  *
174  * Contrariwise, if the old cluster did not have a TOAST table, we
175  * should be able to get along without one even if the new version's
176  * needs_toast_table rules suggest we should have one. There is a lot
177  * of daylight between where we will create a TOAST table and where
178  * one is really necessary to avoid failures, so small cross-version
179  * differences in the when-to-create heuristic shouldn't be a problem.
180  * If we tried to create a TOAST table anyway, we would have the
181  * problem that it might take up an OID that will conflict with some
182  * old-cluster table we haven't seen yet.
183  */
186  return false;
187  }
188 
189  /*
190  * If requested check lockmode is sufficient. This is a cross check in
191  * case of errors or conflicting decisions in earlier code.
192  */
193  if (check && lockmode != AccessExclusiveLock)
194  elog(ERROR, "AccessExclusiveLock required to add toast table.");
195 
196  /*
197  * Create the toast table and its index
198  */
199  snprintf(toast_relname, sizeof(toast_relname),
200  "pg_toast_%u", relOid);
201  snprintf(toast_idxname, sizeof(toast_idxname),
202  "pg_toast_%u_index", relOid);
203 
204  /* this is pretty painful... need a tuple descriptor */
205  tupdesc = CreateTemplateTupleDesc(3);
206  TupleDescInitEntry(tupdesc, (AttrNumber) 1,
207  "chunk_id",
208  OIDOID,
209  -1, 0);
210  TupleDescInitEntry(tupdesc, (AttrNumber) 2,
211  "chunk_seq",
212  INT4OID,
213  -1, 0);
214  TupleDescInitEntry(tupdesc, (AttrNumber) 3,
215  "chunk_data",
216  BYTEAOID,
217  -1, 0);
218 
219  /*
220  * Ensure that the toast table doesn't itself get toasted, or we'll be
221  * toast :-(. This is essential for chunk_data because type bytea is
222  * toastable; hit the other two just to be sure.
223  */
224  TupleDescAttr(tupdesc, 0)->attstorage = 'p';
225  TupleDescAttr(tupdesc, 1)->attstorage = 'p';
226  TupleDescAttr(tupdesc, 2)->attstorage = 'p';
227 
228  /*
229  * Toast tables for regular relations go in pg_toast; those for temp
230  * relations go into the per-backend temp-toast-table namespace.
231  */
232  if (isTempOrTempToastNamespace(rel->rd_rel->relnamespace))
233  namespaceid = GetTempToastNamespace();
234  else
235  namespaceid = PG_TOAST_NAMESPACE;
236 
237  /*
238  * Use binary-upgrade override for pg_type.oid, if supplied. We might be
239  * in the post-schema-restore phase where we are doing ALTER TABLE to
240  * create TOAST tables that didn't exist in the old cluster.
241  */
243  {
246  }
247 
248  /* Toast table is shared if and only if its parent is. */
249  shared_relation = rel->rd_rel->relisshared;
250 
251  /* It's mapped if and only if its parent is, too */
252  mapped_relation = RelationIsMapped(rel);
253 
254  toast_relid = heap_create_with_catalog(toast_relname,
255  namespaceid,
256  rel->rd_rel->reltablespace,
257  toastOid,
258  toast_typid,
259  InvalidOid,
260  rel->rd_rel->relowner,
261  rel->rd_rel->relam,
262  tupdesc,
263  NIL,
264  RELKIND_TOASTVALUE,
265  rel->rd_rel->relpersistence,
266  shared_relation,
267  mapped_relation,
269  reloptions,
270  false,
271  true,
272  true,
273  InvalidOid,
274  NULL);
275  Assert(toast_relid != InvalidOid);
276 
277  /* make the toast relation visible, else table_open will fail */
279 
280  /* ShareLock is not really needed here, but take it anyway */
281  toast_rel = table_open(toast_relid, ShareLock);
282 
283  /*
284  * Create unique index on chunk_id, chunk_seq.
285  *
286  * NOTE: the normal TOAST access routines could actually function with a
287  * single-column index on chunk_id only. However, the slice access
288  * routines use both columns for faster access to an individual chunk. In
289  * addition, we want it to be unique as a check against the possibility of
290  * duplicate TOAST chunk OIDs. The index might also be a little more
291  * efficient this way, since btree isn't all that happy with large numbers
292  * of equal keys.
293  */
294 
295  indexInfo = makeNode(IndexInfo);
296  indexInfo->ii_NumIndexAttrs = 2;
297  indexInfo->ii_NumIndexKeyAttrs = 2;
298  indexInfo->ii_IndexAttrNumbers[0] = 1;
299  indexInfo->ii_IndexAttrNumbers[1] = 2;
300  indexInfo->ii_Expressions = NIL;
301  indexInfo->ii_ExpressionsState = NIL;
302  indexInfo->ii_Predicate = NIL;
303  indexInfo->ii_PredicateState = NULL;
304  indexInfo->ii_ExclusionOps = NULL;
305  indexInfo->ii_ExclusionProcs = NULL;
306  indexInfo->ii_ExclusionStrats = NULL;
307  indexInfo->ii_Unique = true;
308  indexInfo->ii_ReadyForInserts = true;
309  indexInfo->ii_Concurrent = false;
310  indexInfo->ii_BrokenHotChain = false;
311  indexInfo->ii_ParallelWorkers = 0;
312  indexInfo->ii_Am = BTREE_AM_OID;
313  indexInfo->ii_AmCache = NULL;
314  indexInfo->ii_Context = CurrentMemoryContext;
315 
316  collationObjectId[0] = InvalidOid;
317  collationObjectId[1] = InvalidOid;
318 
319  classObjectId[0] = OID_BTREE_OPS_OID;
320  classObjectId[1] = INT4_BTREE_OPS_OID;
321 
322  coloptions[0] = 0;
323  coloptions[1] = 0;
324 
325  index_create(toast_rel, toast_idxname, toastIndexOid, InvalidOid,
327  indexInfo,
328  list_make2("chunk_id", "chunk_seq"),
329  BTREE_AM_OID,
330  rel->rd_rel->reltablespace,
331  collationObjectId, classObjectId, coloptions, (Datum) 0,
332  INDEX_CREATE_IS_PRIMARY, 0, true, true, NULL);
333 
334  table_close(toast_rel, NoLock);
335 
336  /*
337  * Store the toast table's OID in the parent relation's pg_class row
338  */
339  class_rel = table_open(RelationRelationId, RowExclusiveLock);
340 
341  reltup = SearchSysCacheCopy1(RELOID, ObjectIdGetDatum(relOid));
342  if (!HeapTupleIsValid(reltup))
343  elog(ERROR, "cache lookup failed for relation %u", relOid);
344 
345  ((Form_pg_class) GETSTRUCT(reltup))->reltoastrelid = toast_relid;
346 
348  {
349  /* normal case, use a transactional update */
350  CatalogTupleUpdate(class_rel, &reltup->t_self, reltup);
351  }
352  else
353  {
354  /* While bootstrapping, we cannot UPDATE, so overwrite in-place */
355  heap_inplace_update(class_rel, reltup);
356  }
357 
358  heap_freetuple(reltup);
359 
360  table_close(class_rel, RowExclusiveLock);
361 
362  /*
363  * Register dependency from the toast table to the master, so that the
364  * toast table will be deleted if the master is. Skip this in bootstrap
365  * mode.
366  */
368  {
369  baseobject.classId = RelationRelationId;
370  baseobject.objectId = relOid;
371  baseobject.objectSubId = 0;
372  toastobject.classId = RelationRelationId;
373  toastobject.objectId = toast_relid;
374  toastobject.objectSubId = 0;
375 
376  recordDependencyOn(&toastobject, &baseobject, DEPENDENCY_INTERNAL);
377  }
378 
379  /*
380  * Make changes visible
381  */
383 
384  return true;
385 }
#define list_make2(x1, x2)
Definition: pg_list.h:229
signed short int16
Definition: c.h:345
#define NIL
Definition: pg_list.h:65
MemoryContext ii_Context
Definition: execnodes.h:177
void table_close(Relation relation, LOCKMODE lockmode)
Definition: table.c:133
#define GETSTRUCT(TUP)
Definition: htup_details.h:655
List * ii_Predicate
Definition: execnodes.h:162
TupleDesc CreateTemplateTupleDesc(int natts)
Definition: tupdesc.c:44
Oid binary_upgrade_next_toast_pg_class_oid
Definition: heap.c:94
bool isTempOrTempToastNamespace(Oid namespaceId)
Definition: namespace.c:3173
#define TupleDescAttr(tupdesc, i)
Definition: tupdesc.h:92
ExprState * ii_PredicateState
Definition: execnodes.h:163
Oid * ii_ExclusionProcs
Definition: execnodes.h:165
void recordDependencyOn(const ObjectAddress *depender, const ObjectAddress *referenced, DependencyType behavior)
Definition: pg_depend.c:43
Form_pg_class rd_rel
Definition: rel.h:83
void heap_freetuple(HeapTuple htup)
Definition: heaptuple.c:1338
unsigned int Oid
Definition: postgres_ext.h:31
Oid index_create(Relation heapRelation, const char *indexRelationName, Oid indexRelationId, Oid parentIndexRelid, Oid parentConstraintId, Oid relFileNode, IndexInfo *indexInfo, List *indexColNames, Oid accessMethodObjectId, Oid tableSpaceId, Oid *collationObjectId, Oid *classObjectId, int16 *coloptions, Datum reloptions, bits16 flags, bits16 constr_flags, bool allow_system_table_mods, bool is_internal, Oid *constraintId)
Definition: index.c:692
#define OidIsValid(objectId)
Definition: c.h:638
bool IsBinaryUpgrade
Definition: globals.c:110
#define NAMEDATALEN
List * ii_ExpressionsState
Definition: execnodes.h:161
#define ObjectIdGetDatum(X)
Definition: postgres.h:507
#define ERROR
Definition: elog.h:43
int ii_NumIndexKeyAttrs
Definition: execnodes.h:158
ItemPointerData t_self
Definition: htup.h:65
Oid GetTempToastNamespace(void)
Definition: namespace.c:3291
#define NoLock
Definition: lockdefs.h:34
static bool needs_toast_table(Relation rel)
Definition: toasting.c:391
#define RowExclusiveLock
Definition: lockdefs.h:38
bool ii_BrokenHotChain
Definition: execnodes.h:173
MemoryContext CurrentMemoryContext
Definition: mcxt.c:38
Oid reltoastrelid
Definition: pg_class.h:69
void TupleDescInitEntry(TupleDesc desc, AttrNumber attributeNumber, const char *attributeName, Oid oidtypeid, int32 typmod, int attdim)
Definition: tupdesc.c:603
bool ii_ReadyForInserts
Definition: execnodes.h:171
void * ii_AmCache
Definition: execnodes.h:176
#define RelationIsMapped(relation)
Definition: rel.h:468
uintptr_t Datum
Definition: postgres.h:367
void CommandCounterIncrement(void)
Definition: xact.c:1003
int ii_NumIndexAttrs
Definition: execnodes.h:157
#define INDEX_CREATE_IS_PRIMARY
Definition: index.h:47
#define InvalidOid
Definition: postgres_ext.h:36
bool ii_Unique
Definition: execnodes.h:170
#define makeNode(_type_)
Definition: nodes.h:573
#define HeapTupleIsValid(tuple)
Definition: htup.h:78
List * ii_Expressions
Definition: execnodes.h:160
#define Assert(condition)
Definition: c.h:732
Oid heap_create_with_catalog(const char *relname, Oid relnamespace, Oid reltablespace, Oid relid, Oid reltypeid, Oid reloftypeid, Oid ownerid, Oid accessmtd, TupleDesc tupdesc, List *cooked_constraints, char relkind, char relpersistence, bool shared_relation, bool mapped_relation, OnCommitAction oncommit, Datum reloptions, bool use_user_acl, bool allow_system_table_mods, bool is_internal, Oid relrewrite, ObjectAddress *typaddress)
Definition: heap.c:1065
int ii_ParallelWorkers
Definition: execnodes.h:174
void CatalogTupleUpdate(Relation heapRel, ItemPointer otid, HeapTuple tup)
Definition: indexing.c:224
bool ii_Concurrent
Definition: execnodes.h:172
#define IsBootstrapProcessingMode()
Definition: miscadmin.h:374
FormData_pg_class * Form_pg_class
Definition: pg_class.h:150
#define SearchSysCacheCopy1(cacheId, key1)
Definition: syscache.h:174
#define AccessExclusiveLock
Definition: lockdefs.h:45
Oid * ii_ExclusionOps
Definition: execnodes.h:164
void heap_inplace_update(Relation relation, HeapTuple tuple)
Definition: heapam.c:5707
#define elog(elevel,...)
Definition: elog.h:226
#define ShareLock
Definition: lockdefs.h:41
Oid binary_upgrade_next_toast_pg_type_oid
Definition: toasting.c:38
AttrNumber ii_IndexAttrNumbers[INDEX_MAX_KEYS]
Definition: execnodes.h:159
uint16 * ii_ExclusionStrats
Definition: execnodes.h:166
Relation table_open(Oid relationId, LOCKMODE lockmode)
Definition: table.c:39
#define snprintf
Definition: port.h:192
int16 AttrNumber
Definition: attnum.h:21
#define RelationGetRelid(relation)
Definition: rel.h:419
Oid ii_Am
Definition: execnodes.h:175

◆ needs_toast_table()

static bool needs_toast_table ( Relation  rel)
static

Definition at line 391 of file toasting.c.

References IsBootstrapProcessingMode, IsCatalogRelation(), RelationData::rd_rel, and table_relation_needs_toast_table().

Referenced by create_toast_table().

392 {
393  /*
394  * No need to create a TOAST table for partitioned tables.
395  */
396  if (rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
397  return false;
398 
399  /*
400  * We cannot allow toasting a shared relation after initdb (because
401  * there's no way to mark it toasted in other databases' pg_class).
402  */
403  if (rel->rd_rel->relisshared && !IsBootstrapProcessingMode())
404  return false;
405 
406  /*
407  * Ignore attempts to create toast tables on catalog tables after initdb.
408  * Which catalogs get toast tables is explicitly chosen in
409  * catalog/toasting.h. (We could get here via some ALTER TABLE command if
410  * the catalog doesn't have a toast table.)
411  */
413  return false;
414 
415  /* Otherwise, let the AM decide. */
417 }
bool IsCatalogRelation(Relation relation)
Definition: catalog.c:100
Form_pg_class rd_rel
Definition: rel.h:83
#define IsBootstrapProcessingMode()
Definition: miscadmin.h:374
static bool table_relation_needs_toast_table(Relation rel)
Definition: tableam.h:1601

◆ NewHeapCreateToastTable()

void NewHeapCreateToastTable ( Oid  relOid,
Datum  reloptions,
LOCKMODE  lockmode 
)

Definition at line 66 of file toasting.c.

References CheckAndCreateToastTable().

Referenced by make_new_heap().

67 {
68  CheckAndCreateToastTable(relOid, reloptions, lockmode, false);
69 }
static void CheckAndCreateToastTable(Oid relOid, Datum reloptions, LOCKMODE lockmode, bool check)
Definition: toasting.c:78

◆ NewRelationCreateToastTable()

void NewRelationCreateToastTable ( Oid  relOid,
Datum  reloptions 
)

Definition at line 72 of file toasting.c.

References AccessExclusiveLock, and CheckAndCreateToastTable().

Referenced by create_ctas_internal(), and ProcessUtilitySlow().

73 {
74  CheckAndCreateToastTable(relOid, reloptions, AccessExclusiveLock, false);
75 }
static void CheckAndCreateToastTable(Oid relOid, Datum reloptions, LOCKMODE lockmode, bool check)
Definition: toasting.c:78
#define AccessExclusiveLock
Definition: lockdefs.h:45

Variable Documentation

◆ binary_upgrade_next_toast_pg_type_oid

Oid binary_upgrade_next_toast_pg_type_oid = InvalidOid

Definition at line 38 of file toasting.c.

Referenced by binary_upgrade_set_next_toast_pg_type_oid(), and create_toast_table().