PostgreSQL Source Code  git master
bootstrap.c File Reference
#include "postgres.h"
#include <unistd.h>
#include <signal.h>
#include "access/genam.h"
#include "access/heapam.h"
#include "access/htup_details.h"
#include "access/tableam.h"
#include "access/toast_compression.h"
#include "access/xact.h"
#include "bootstrap/bootstrap.h"
#include "catalog/index.h"
#include "catalog/pg_collation.h"
#include "catalog/pg_type.h"
#include "common/link-canary.h"
#include "miscadmin.h"
#include "nodes/makefuncs.h"
#include "pg_getopt.h"
#include "storage/bufpage.h"
#include "storage/ipc.h"
#include "storage/proc.h"
#include "utils/builtins.h"
#include "utils/fmgroids.h"
#include "utils/guc.h"
#include "utils/memutils.h"
#include "utils/rel.h"
#include "utils/relmapper.h"
Include dependency graph for bootstrap.c:

Go to the source code of this file.

Data Structures

struct  typinfo
 
struct  typmap
 
struct  _IndexList
 

Typedefs

typedef struct _IndexList IndexList
 

Functions

static void CheckerModeMain (void)
 
static void bootstrap_signals (void)
 
static Form_pg_attribute AllocateAttribute (void)
 
static void populate_typ_list (void)
 
static Oid gettype (char *type)
 
static void cleanup (void)
 
void BootstrapModeMain (int argc, char *argv[], bool check_only)
 
void boot_openrel (char *relname)
 
void closerel (char *relname)
 
void DefineAttr (char *name, char *type, int attnum, int nullness)
 
void InsertOneTuple (void)
 
void InsertOneValue (char *value, int i)
 
void InsertOneNull (int i)
 
void boot_get_type_io_data (Oid typid, int16 *typlen, bool *typbyval, char *typalign, char *typdelim, Oid *typioparam, Oid *typinput, Oid *typoutput)
 
void index_register (Oid heap, Oid ind, const IndexInfo *indexInfo)
 
void build_indices (void)
 

Variables

Relation boot_reldesc
 
Form_pg_attribute attrtypes [MAXATTR]
 
int numattr
 
static const struct typinfo TypInfo []
 
static const int n_types = sizeof(TypInfo) / sizeof(struct typinfo)
 
static ListTyp = NIL
 
static struct typmapAp = NULL
 
static Datum values [MAXATTR]
 
static bool Nulls [MAXATTR]
 
static MemoryContext nogc = NULL
 
static IndexListILHead = NULL
 

Typedef Documentation

◆ IndexList

typedef struct _IndexList IndexList

Function Documentation

◆ AllocateAttribute()

static Form_pg_attribute AllocateAttribute ( void  )
static

Definition at line 884 of file bootstrap.c.

885 {
886  return (Form_pg_attribute)
888 }
MemoryContext TopMemoryContext
Definition: mcxt.c:149
void * MemoryContextAllocZero(MemoryContext context, Size size)
Definition: mcxt.c:1215
#define ATTRIBUTE_FIXED_PART_SIZE
Definition: pg_attribute.h:201
FormData_pg_attribute * Form_pg_attribute
Definition: pg_attribute.h:209

References ATTRIBUTE_FIXED_PART_SIZE, MemoryContextAllocZero(), and TopMemoryContext.

Referenced by boot_openrel(), and DefineAttr().

◆ boot_get_type_io_data()

void boot_get_type_io_data ( Oid  typid,
int16 typlen,
bool typbyval,
char *  typalign,
char *  typdelim,
Oid typioparam,
Oid typinput,
Oid typoutput 
)

Definition at line 807 of file bootstrap.c.

815 {
816  if (Typ != NIL)
817  {
818  /* We have the boot-time contents of pg_type, so use it */
819  struct typmap *ap = NULL;
820  ListCell *lc;
821 
822  foreach(lc, Typ)
823  {
824  ap = lfirst(lc);
825  if (ap->am_oid == typid)
826  break;
827  }
828 
829  if (!ap || ap->am_oid != typid)
830  elog(ERROR, "type OID %u not found in Typ list", typid);
831 
832  *typlen = ap->am_typ.typlen;
833  *typbyval = ap->am_typ.typbyval;
834  *typalign = ap->am_typ.typalign;
835  *typdelim = ap->am_typ.typdelim;
836 
837  /* XXX this logic must match getTypeIOParam() */
838  if (OidIsValid(ap->am_typ.typelem))
839  *typioparam = ap->am_typ.typelem;
840  else
841  *typioparam = typid;
842 
843  *typinput = ap->am_typ.typinput;
844  *typoutput = ap->am_typ.typoutput;
845  }
846  else
847  {
848  /* We don't have pg_type yet, so use the hard-wired TypInfo array */
849  int typeindex;
850 
851  for (typeindex = 0; typeindex < n_types; typeindex++)
852  {
853  if (TypInfo[typeindex].oid == typid)
854  break;
855  }
856  if (typeindex >= n_types)
857  elog(ERROR, "type OID %u not found in TypInfo", typid);
858 
859  *typlen = TypInfo[typeindex].len;
860  *typbyval = TypInfo[typeindex].byval;
861  *typalign = TypInfo[typeindex].align;
862  /* We assume typdelim is ',' for all boot-time types */
863  *typdelim = ',';
864 
865  /* XXX this logic must match getTypeIOParam() */
866  if (OidIsValid(TypInfo[typeindex].elem))
867  *typioparam = TypInfo[typeindex].elem;
868  else
869  *typioparam = typid;
870 
871  *typinput = TypInfo[typeindex].inproc;
872  *typoutput = TypInfo[typeindex].outproc;
873  }
874 }
static const int n_types
Definition: bootstrap.c:139
static const struct typinfo TypInfo[]
Definition: bootstrap.c:86
static List * Typ
Definition: bootstrap.c:147
#define OidIsValid(objectId)
Definition: c.h:766
#define ERROR
Definition: elog.h:39
#define elog(elevel,...)
Definition: elog.h:225
#define lfirst(lc)
Definition: pg_list.h:172
#define NIL
Definition: pg_list.h:68
char typalign
Definition: pg_type.h:176
char align
Definition: bootstrap.c:79
Oid outproc
Definition: bootstrap.c:83
int16 len
Definition: bootstrap.c:77
bool byval
Definition: bootstrap.c:78
Oid elem
Definition: bootstrap.c:76
Oid inproc
Definition: bootstrap.c:82
Oid am_oid
Definition: bootstrap.c:143
FormData_pg_type am_typ
Definition: bootstrap.c:144

References typinfo::align, typmap::am_oid, typmap::am_typ, typinfo::byval, typinfo::elem, elog, ERROR, typinfo::inproc, typinfo::len, lfirst, n_types, NIL, OidIsValid, typinfo::outproc, Typ, typalign, and TypInfo.

Referenced by get_type_io_data(), and InsertOneValue().

◆ boot_openrel()

void boot_openrel ( char *  relname)

Definition at line 409 of file bootstrap.c.

410 {
411  int i;
412 
413  if (strlen(relname) >= NAMEDATALEN)
414  relname[NAMEDATALEN - 1] = '\0';
415 
416  /*
417  * pg_type must be filled before any OPEN command is executed, hence we
418  * can now populate Typ if we haven't yet.
419  */
420  if (Typ == NIL)
422 
423  if (boot_reldesc != NULL)
424  closerel(NULL);
425 
426  elog(DEBUG4, "open relation %s, attrsize %d",
428 
431  for (i = 0; i < numattr; i++)
432  {
433  if (attrtypes[i] == NULL)
435  memmove((char *) attrtypes[i],
436  (char *) TupleDescAttr(boot_reldesc->rd_att, i),
438 
439  {
441 
442  elog(DEBUG4, "create attribute %d name %s len %d num %d type %u",
443  i, NameStr(at->attname), at->attlen, at->attnum,
444  at->atttypid);
445  }
446  }
447 }
void closerel(char *relname)
Definition: bootstrap.c:454
static void populate_typ_list(void)
Definition: bootstrap.c:696
Relation boot_reldesc
Definition: bootstrap.c:57
Form_pg_attribute attrtypes[MAXATTR]
Definition: bootstrap.c:59
int numattr
Definition: bootstrap.c:60
static Form_pg_attribute AllocateAttribute(void)
Definition: bootstrap.c:884
#define NameStr(name)
Definition: c.h:737
#define DEBUG4
Definition: elog.h:27
int i
Definition: isn.c:73
#define NoLock
Definition: lockdefs.h:34
RangeVar * makeRangeVar(char *schemaname, char *relname, int location)
Definition: makefuncs.c:424
NameData relname
Definition: pg_class.h:38
#define NAMEDATALEN
#define RelationGetNumberOfAttributes(relation)
Definition: rel.h:511
TupleDesc rd_att
Definition: rel.h:112
Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode)
Definition: table.c:83
#define TupleDescAttr(tupdesc, i)
Definition: tupdesc.h:92

References AllocateAttribute(), ATTRIBUTE_FIXED_PART_SIZE, attrtypes, boot_reldesc, closerel(), DEBUG4, elog, i, makeRangeVar(), NAMEDATALEN, NameStr, NIL, NoLock, numattr, populate_typ_list(), RelationData::rd_att, RelationGetNumberOfAttributes, relname, table_openrv(), TupleDescAttr, and Typ.

◆ bootstrap_signals()

static void bootstrap_signals ( void  )
static

Definition at line 382 of file bootstrap.c.

383 {
385 
386  /*
387  * We don't actually need any non-default signal handling in bootstrap
388  * mode; "curl up and die" is a sufficient response for all these cases.
389  * Let's set that handling explicitly, as documentation if nothing else.
390  */
392  pqsignal(SIGINT, SIG_DFL);
393  pqsignal(SIGTERM, SIG_DFL);
395 }
#define Assert(condition)
Definition: c.h:849
bool IsUnderPostmaster
Definition: globals.c:119
pqsigfunc pqsignal(int signo, pqsigfunc func)
#define SIGHUP
Definition: win32_port.h:168
#define SIG_DFL
Definition: win32_port.h:163
#define SIGQUIT
Definition: win32_port.h:169

References Assert, IsUnderPostmaster, pqsignal(), SIG_DFL, SIGHUP, and SIGQUIT.

Referenced by BootstrapModeMain().

◆ BootstrapModeMain()

void BootstrapModeMain ( int  argc,
char *  argv[],
bool  check_only 
)

Definition at line 197 of file bootstrap.c.

198 {
199  int i;
200  char *progname = argv[0];
201  int flag;
202  char *userDoption = NULL;
203  uint32 bootstrap_data_checksum_version = 0; /* No checksum */
204 
206 
207  InitStandaloneProcess(argv[0]);
208 
209  /* Set defaults, to be overridden by explicit options below */
211 
212  /* an initial --boot or --check should be present */
213  Assert(argc > 1
214  && (strcmp(argv[1], "--boot") == 0
215  || strcmp(argv[1], "--check") == 0));
216  argv++;
217  argc--;
218 
219  while ((flag = getopt(argc, argv, "B:c:d:D:Fkr:X:-:")) != -1)
220  {
221  switch (flag)
222  {
223  case 'B':
224  SetConfigOption("shared_buffers", optarg, PGC_POSTMASTER, PGC_S_ARGV);
225  break;
226  case 'c':
227  case '-':
228  {
229  char *name,
230  *value;
231 
233  if (!value)
234  {
235  if (flag == '-')
236  ereport(ERROR,
237  (errcode(ERRCODE_SYNTAX_ERROR),
238  errmsg("--%s requires a value",
239  optarg)));
240  else
241  ereport(ERROR,
242  (errcode(ERRCODE_SYNTAX_ERROR),
243  errmsg("-c %s requires a value",
244  optarg)));
245  }
246 
248  pfree(name);
249  pfree(value);
250  break;
251  }
252  case 'D':
254  break;
255  case 'd':
256  {
257  /* Turn on debugging for the bootstrap process. */
258  char *debugstr;
259 
260  debugstr = psprintf("debug%s", optarg);
261  SetConfigOption("log_min_messages", debugstr,
263  SetConfigOption("client_min_messages", debugstr,
265  pfree(debugstr);
266  }
267  break;
268  case 'F':
269  SetConfigOption("fsync", "false", PGC_POSTMASTER, PGC_S_ARGV);
270  break;
271  case 'k':
272  bootstrap_data_checksum_version = PG_DATA_CHECKSUM_VERSION;
273  break;
274  case 'r':
276  break;
277  case 'X':
279  break;
280  default:
281  write_stderr("Try \"%s --help\" for more information.\n",
282  progname);
283  proc_exit(1);
284  break;
285  }
286  }
287 
288  if (argc != optind)
289  {
290  write_stderr("%s: invalid command-line arguments\n", progname);
291  proc_exit(1);
292  }
293 
294  /* Acquire configuration parameters */
296  proc_exit(1);
297 
298  /*
299  * Validate we have been given a reasonable-looking DataDir and change
300  * into it
301  */
302  checkDataDir();
303  ChangeToDataDir();
304 
305  CreateDataDirLockFile(false);
306 
308  IgnoreSystemIndexes = true;
309 
311 
313 
315 
316  /*
317  * XXX: It might make sense to move this into its own function at some
318  * point. Right now it seems like it'd cause more code duplication than
319  * it's worth.
320  */
321  if (check_only)
322  {
324  CheckerModeMain();
325  abort();
326  }
327 
328  /*
329  * Do backend-like initialization for bootstrap mode
330  */
331  InitProcess();
332 
333  BaseInit();
334 
336  BootStrapXLOG(bootstrap_data_checksum_version);
337 
338  /*
339  * To ensure that src/common/link-canary.c is linked into the backend, we
340  * must call it from somewhere. Here is as good as anywhere.
341  */
343  elog(ERROR, "backend is incorrectly linked to frontend functions");
344 
345  InitPostgres(NULL, InvalidOid, NULL, InvalidOid, 0, NULL);
346 
347  /* Initialize stuff for bootstrap-file processing */
348  for (i = 0; i < MAXATTR; i++)
349  {
350  attrtypes[i] = NULL;
351  Nulls[i] = false;
352  }
353 
354  /*
355  * Process bootstrap input.
356  */
358  boot_yyparse();
360 
361  /*
362  * We should now know about all mapped relations, so it's okay to write
363  * out the initial relation mapping files.
364  */
366 
367  /* Clean up and exit */
368  cleanup();
369  proc_exit(0);
370 }
#define write_stderr(str)
Definition: parallel.c:184
static void CheckerModeMain(void)
Definition: bootstrap.c:179
static void cleanup(void)
Definition: bootstrap.c:683
static void bootstrap_signals(void)
Definition: bootstrap.c:382
static bool Nulls[MAXATTR]
Definition: bootstrap.c:151
#define MAXATTR
Definition: bootstrap.h:25
int boot_yyparse(void)
#define PG_DATA_CHECKSUM_VERSION
Definition: bufpage.h:206
unsigned int uint32
Definition: c.h:506
int errcode(int sqlerrcode)
Definition: elog.c:853
int errmsg(const char *fmt,...)
Definition: elog.c:1070
#define ereport(elevel,...)
Definition: elog.h:149
char OutputFileName[MAXPGPATH]
Definition: globals.c:78
void SetConfigOption(const char *name, const char *value, GucContext context, GucSource source)
Definition: guc.c:4290
bool SelectConfigFiles(const char *userDoption, const char *progname)
Definition: guc.c:1783
void ParseLongOption(const char *string, char **name, char **value)
Definition: guc.c:6326
void InitializeGUCOptions(void)
Definition: guc.c:1529
@ PGC_S_DYNAMIC_DEFAULT
Definition: guc.h:110
@ PGC_S_ARGV
Definition: guc.h:113
@ PGC_INTERNAL
Definition: guc.h:69
@ PGC_POSTMASTER
Definition: guc.h:70
static struct @157 value
void proc_exit(int code)
Definition: ipc.c:104
void CreateSharedMemoryAndSemaphores(void)
Definition: ipci.c:202
const char * progname
Definition: main.c:44
char * pstrdup(const char *in)
Definition: mcxt.c:1696
void pfree(void *pointer)
Definition: mcxt.c:1521
@ NormalProcessing
Definition: miscadmin.h:446
@ BootstrapProcessing
Definition: miscadmin.h:444
#define SetProcessingMode(mode)
Definition: miscadmin.h:457
void ChangeToDataDir(void)
Definition: miscinit.c:454
void InitStandaloneProcess(const char *argv0)
Definition: miscinit.c:181
bool IgnoreSystemIndexes
Definition: miscinit.c:80
void checkDataDir(void)
Definition: miscinit.c:341
void CreateDataDirLockFile(bool amPostmaster)
Definition: miscinit.c:1455
#define MAXPGPATH
PGDLLIMPORT int optind
Definition: getopt.c:50
int getopt(int nargc, char *const *nargv, const char *ostr)
Definition: getopt.c:71
PGDLLIMPORT char * optarg
Definition: getopt.c:52
size_t strlcpy(char *dst, const char *src, size_t siz)
Definition: strlcpy.c:45
static const char * userDoption
Definition: postgres.c:165
#define InvalidOid
Definition: postgres_ext.h:36
void InitializeMaxBackends(void)
Definition: postinit.c:542
void BaseInit(void)
Definition: postinit.c:603
void InitializeFastPathLocks(void)
Definition: postinit.c:574
void InitPostgres(const char *in_dbname, Oid dboid, const char *username, Oid useroid, bits32 flags, char *out_dbname)
Definition: postinit.c:697
char * psprintf(const char *fmt,...)
Definition: psprintf.c:46
void RelationMapFinishBootstrap(void)
Definition: relmapper.c:625
void InitProcess(void)
Definition: proc.c:343
char * flag(int b)
Definition: test-ctype.c:33
const char * name
void StartTransactionCommand(void)
Definition: xact.c:3039
void CommitTransactionCommand(void)
Definition: xact.c:3137
void BootStrapXLOG(uint32 data_checksum_version)
Definition: xlog.c:5026

References Assert, attrtypes, BaseInit(), boot_yyparse(), bootstrap_signals(), BootstrapProcessing, BootStrapXLOG(), ChangeToDataDir(), checkDataDir(), CheckerModeMain(), cleanup(), CommitTransactionCommand(), CreateDataDirLockFile(), CreateSharedMemoryAndSemaphores(), elog, ereport, errcode(), errmsg(), ERROR, flag(), getopt(), i, IgnoreSystemIndexes, InitializeFastPathLocks(), InitializeGUCOptions(), InitializeMaxBackends(), InitPostgres(), InitProcess(), InitStandaloneProcess(), InvalidOid, IsUnderPostmaster, MAXATTR, MAXPGPATH, name, NormalProcessing, Nulls, optarg, optind, OutputFileName, ParseLongOption(), pfree(), PG_DATA_CHECKSUM_VERSION, pg_link_canary_is_frontend(), PGC_INTERNAL, PGC_POSTMASTER, PGC_S_ARGV, PGC_S_DYNAMIC_DEFAULT, proc_exit(), progname, psprintf(), pstrdup(), RelationMapFinishBootstrap(), SelectConfigFiles(), SetConfigOption(), SetProcessingMode, StartTransactionCommand(), strlcpy(), userDoption, value, and write_stderr.

Referenced by main().

◆ build_indices()

void build_indices ( void  )

Definition at line 952 of file bootstrap.c.

953 {
954  for (; ILHead != NULL; ILHead = ILHead->il_next)
955  {
956  Relation heap;
957  Relation ind;
958 
959  /* need not bother with locks during bootstrap */
960  heap = table_open(ILHead->il_heap, NoLock);
962 
963  index_build(heap, ind, ILHead->il_info, false, false);
964 
966  table_close(heap, NoLock);
967  }
968 }
static IndexList * ILHead
Definition: bootstrap.c:169
void index_build(Relation heapRelation, Relation indexRelation, IndexInfo *indexInfo, bool isreindex, bool parallel)
Definition: index.c:2953
void index_close(Relation relation, LOCKMODE lockmode)
Definition: indexam.c:177
Relation index_open(Oid relationId, LOCKMODE lockmode)
Definition: indexam.c:133
Oid il_heap
Definition: bootstrap.c:163
struct _IndexList * il_next
Definition: bootstrap.c:166
Oid il_ind
Definition: bootstrap.c:164
IndexInfo * il_info
Definition: bootstrap.c:165
void table_close(Relation relation, LOCKMODE lockmode)
Definition: table.c:126
Relation table_open(Oid relationId, LOCKMODE lockmode)
Definition: table.c:40

References _IndexList::il_heap, _IndexList::il_ind, _IndexList::il_info, _IndexList::il_next, ILHead, index_build(), index_close(), index_open(), NoLock, table_close(), and table_open().

◆ CheckerModeMain()

static void CheckerModeMain ( void  )
static

Definition at line 179 of file bootstrap.c.

180 {
181  proc_exit(0);
182 }

References proc_exit().

Referenced by BootstrapModeMain().

◆ cleanup()

◆ closerel()

void closerel ( char *  relname)

Definition at line 454 of file bootstrap.c.

455 {
456  if (relname)
457  {
458  if (boot_reldesc)
459  {
460  if (strcmp(RelationGetRelationName(boot_reldesc), relname) != 0)
461  elog(ERROR, "close of %s when %s was expected",
463  }
464  else
465  elog(ERROR, "close of %s before any relation was opened",
466  relname);
467  }
468 
469  if (boot_reldesc == NULL)
470  elog(ERROR, "no open relation to close");
471  else
472  {
473  elog(DEBUG4, "close relation %s",
476  boot_reldesc = NULL;
477  }
478 }
#define RelationGetRelationName(relation)
Definition: rel.h:539

References boot_reldesc, DEBUG4, elog, ERROR, NoLock, RelationGetRelationName, relname, and table_close().

Referenced by boot_openrel(), cleanup(), and DefineAttr().

◆ DefineAttr()

void DefineAttr ( char *  name,
char *  type,
int  attnum,
int  nullness 
)

Definition at line 491 of file bootstrap.c.

492 {
493  Oid typeoid;
494 
495  if (boot_reldesc != NULL)
496  {
497  elog(WARNING, "no open relations allowed with CREATE command");
498  closerel(NULL);
499  }
500 
501  if (attrtypes[attnum] == NULL)
504 
506  elog(DEBUG4, "column %s %s", NameStr(attrtypes[attnum]->attname), type);
507  attrtypes[attnum]->attnum = attnum + 1;
508 
509  typeoid = gettype(type);
510 
511  if (Typ != NIL)
512  {
513  attrtypes[attnum]->atttypid = Ap->am_oid;
514  attrtypes[attnum]->attlen = Ap->am_typ.typlen;
515  attrtypes[attnum]->attbyval = Ap->am_typ.typbyval;
516  attrtypes[attnum]->attalign = Ap->am_typ.typalign;
517  attrtypes[attnum]->attstorage = Ap->am_typ.typstorage;
518  attrtypes[attnum]->attcompression = InvalidCompressionMethod;
519  attrtypes[attnum]->attcollation = Ap->am_typ.typcollation;
520  /* if an array type, assume 1-dimensional attribute */
521  if (Ap->am_typ.typelem != InvalidOid && Ap->am_typ.typlen < 0)
522  attrtypes[attnum]->attndims = 1;
523  else
524  attrtypes[attnum]->attndims = 0;
525  }
526  else
527  {
528  attrtypes[attnum]->atttypid = TypInfo[typeoid].oid;
529  attrtypes[attnum]->attlen = TypInfo[typeoid].len;
530  attrtypes[attnum]->attbyval = TypInfo[typeoid].byval;
531  attrtypes[attnum]->attalign = TypInfo[typeoid].align;
532  attrtypes[attnum]->attstorage = TypInfo[typeoid].storage;
533  attrtypes[attnum]->attcompression = InvalidCompressionMethod;
534  attrtypes[attnum]->attcollation = TypInfo[typeoid].collation;
535  /* if an array type, assume 1-dimensional attribute */
536  if (TypInfo[typeoid].elem != InvalidOid &&
537  attrtypes[attnum]->attlen < 0)
538  attrtypes[attnum]->attndims = 1;
539  else
540  attrtypes[attnum]->attndims = 0;
541  }
542 
543  /*
544  * If a system catalog column is collation-aware, force it to use C
545  * collation, so that its behavior is independent of the database's
546  * collation. This is essential to allow template0 to be cloned with a
547  * different database collation.
548  */
549  if (OidIsValid(attrtypes[attnum]->attcollation))
550  attrtypes[attnum]->attcollation = C_COLLATION_OID;
551 
552  attrtypes[attnum]->attcacheoff = -1;
553  attrtypes[attnum]->atttypmod = -1;
554  attrtypes[attnum]->attislocal = true;
555 
556  if (nullness == BOOTCOL_NULL_FORCE_NOT_NULL)
557  {
558  attrtypes[attnum]->attnotnull = true;
559  }
560  else if (nullness == BOOTCOL_NULL_FORCE_NULL)
561  {
562  attrtypes[attnum]->attnotnull = false;
563  }
564  else
565  {
566  Assert(nullness == BOOTCOL_NULL_AUTO);
567 
568  /*
569  * Mark as "not null" if type is fixed-width and prior columns are
570  * likewise fixed-width and not-null. This corresponds to case where
571  * column can be accessed directly via C struct declaration.
572  */
573  if (attrtypes[attnum]->attlen > 0)
574  {
575  int i;
576 
577  /* check earlier attributes */
578  for (i = 0; i < attnum; i++)
579  {
580  if (attrtypes[i]->attlen <= 0 ||
582  break;
583  }
584  if (i == attnum)
585  attrtypes[attnum]->attnotnull = true;
586  }
587  }
588 }
static Oid gettype(char *type)
Definition: bootstrap.c:736
static struct typmap * Ap
Definition: bootstrap.c:148
#define BOOTCOL_NULL_FORCE_NULL
Definition: bootstrap.h:28
#define BOOTCOL_NULL_FORCE_NOT_NULL
Definition: bootstrap.h:29
#define BOOTCOL_NULL_AUTO
Definition: bootstrap.h:27
#define MemSet(start, val, len)
Definition: c.h:1011
#define WARNING
Definition: elog.h:36
void namestrcpy(Name name, const char *str)
Definition: name.c:233
NameData attname
Definition: pg_attribute.h:41
int16 attnum
Definition: pg_attribute.h:74
int16 attlen
Definition: pg_attribute.h:59
bool attnotnull
Definition: pg_attribute.h:130
unsigned int Oid
Definition: postgres_ext.h:31
Oid oid
Definition: bootstrap.c:75
Oid collation
Definition: bootstrap.c:81
char storage
Definition: bootstrap.c:80
#define InvalidCompressionMethod
const char * type

References typinfo::align, AllocateAttribute(), typmap::am_oid, typmap::am_typ, Ap, Assert, attlen, attname, attnotnull, attnum, ATTRIBUTE_FIXED_PART_SIZE, attrtypes, boot_reldesc, BOOTCOL_NULL_AUTO, BOOTCOL_NULL_FORCE_NOT_NULL, BOOTCOL_NULL_FORCE_NULL, typinfo::byval, closerel(), typinfo::collation, DEBUG4, elog, gettype(), i, InvalidCompressionMethod, InvalidOid, typinfo::len, MemSet, name, NameStr, namestrcpy(), NIL, typinfo::oid, OidIsValid, typinfo::storage, Typ, type, TypInfo, and WARNING.

◆ gettype()

static Oid gettype ( char *  type)
static

Definition at line 736 of file bootstrap.c.

737 {
738  if (Typ != NIL)
739  {
740  ListCell *lc;
741 
742  foreach(lc, Typ)
743  {
744  struct typmap *app = lfirst(lc);
745 
746  if (strncmp(NameStr(app->am_typ.typname), type, NAMEDATALEN) == 0)
747  {
748  Ap = app;
749  return app->am_oid;
750  }
751  }
752 
753  /*
754  * The type wasn't known; reload the pg_type contents and check again
755  * to handle composite types, added since last populating the list.
756  */
757 
759  Typ = NIL;
761 
762  /*
763  * Calling gettype would result in infinite recursion for types
764  * missing in pg_type, so just repeat the lookup.
765  */
766  foreach(lc, Typ)
767  {
768  struct typmap *app = lfirst(lc);
769 
770  if (strncmp(NameStr(app->am_typ.typname), type, NAMEDATALEN) == 0)
771  {
772  Ap = app;
773  return app->am_oid;
774  }
775  }
776  }
777  else
778  {
779  int i;
780 
781  for (i = 0; i < n_types; i++)
782  {
783  if (strncmp(type, TypInfo[i].name, NAMEDATALEN) == 0)
784  return i;
785  }
786  /* Not in TypInfo, so we'd better be able to read pg_type now */
787  elog(DEBUG4, "external type: %s", type);
789  return gettype(type);
790  }
791  elog(ERROR, "unrecognized type \"%s\"", type);
792  /* not reached, here to make compiler happy */
793  return 0;
794 }
void list_free_deep(List *list)
Definition: list.c:1560

References typmap::am_oid, typmap::am_typ, Ap, DEBUG4, elog, ERROR, i, lfirst, list_free_deep(), n_types, name, NAMEDATALEN, NameStr, NIL, populate_typ_list(), Typ, type, and TypInfo.

Referenced by DefineAttr().

◆ index_register()

void index_register ( Oid  heap,
Oid  ind,
const IndexInfo indexInfo 
)

Definition at line 902 of file bootstrap.c.

905 {
906  IndexList *newind;
907  MemoryContext oldcxt;
908 
909  /*
910  * XXX mao 10/31/92 -- don't gc index reldescs, associated info at
911  * bootstrap time. we'll declare the indexes now, but want to create them
912  * later.
913  */
914 
915  if (nogc == NULL)
917  "BootstrapNoGC",
919 
920  oldcxt = MemoryContextSwitchTo(nogc);
921 
922  newind = (IndexList *) palloc(sizeof(IndexList));
923  newind->il_heap = heap;
924  newind->il_ind = ind;
925  newind->il_info = (IndexInfo *) palloc(sizeof(IndexInfo));
926 
927  memcpy(newind->il_info, indexInfo, sizeof(IndexInfo));
928  /* expressions will likely be null, but may as well copy it */
929  newind->il_info->ii_Expressions =
930  copyObject(indexInfo->ii_Expressions);
931  newind->il_info->ii_ExpressionsState = NIL;
932  /* predicate will likely be null, but may as well copy it */
933  newind->il_info->ii_Predicate =
934  copyObject(indexInfo->ii_Predicate);
935  newind->il_info->ii_PredicateState = NULL;
936  /* no exclusion constraints at bootstrap time, so no need to copy */
937  Assert(indexInfo->ii_ExclusionOps == NULL);
938  Assert(indexInfo->ii_ExclusionProcs == NULL);
939  Assert(indexInfo->ii_ExclusionStrats == NULL);
940 
941  newind->il_next = ILHead;
942  ILHead = newind;
943 
944  MemoryContextSwitchTo(oldcxt);
945 }
static MemoryContext nogc
Definition: bootstrap.c:153
void * palloc(Size size)
Definition: mcxt.c:1317
#define AllocSetContextCreate
Definition: memutils.h:129
#define ALLOCSET_DEFAULT_SIZES
Definition: memutils.h:160
#define copyObject(obj)
Definition: nodes.h:224
MemoryContextSwitchTo(old_ctx)
uint16 * ii_ExclusionStrats
Definition: execnodes.h:195
ExprState * ii_PredicateState
Definition: execnodes.h:192
Oid * ii_ExclusionOps
Definition: execnodes.h:193
List * ii_ExpressionsState
Definition: execnodes.h:190
List * ii_Expressions
Definition: execnodes.h:189
Oid * ii_ExclusionProcs
Definition: execnodes.h:194
List * ii_Predicate
Definition: execnodes.h:191

References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, Assert, copyObject, IndexInfo::ii_ExclusionOps, IndexInfo::ii_ExclusionProcs, IndexInfo::ii_ExclusionStrats, IndexInfo::ii_Expressions, IndexInfo::ii_ExpressionsState, IndexInfo::ii_Predicate, IndexInfo::ii_PredicateState, _IndexList::il_heap, _IndexList::il_ind, _IndexList::il_info, _IndexList::il_next, ILHead, MemoryContextSwitchTo(), NIL, nogc, and palloc().

Referenced by index_create().

◆ InsertOneNull()

void InsertOneNull ( int  i)

Definition at line 665 of file bootstrap.c.

666 {
667  elog(DEBUG4, "inserting column %d NULL", i);
668  Assert(i >= 0 && i < MAXATTR);
669  if (TupleDescAttr(boot_reldesc->rd_att, i)->attnotnull)
670  elog(ERROR,
671  "NULL value specified for not-null column \"%s\" of relation \"%s\"",
674  values[i] = PointerGetDatum(NULL);
675  Nulls[i] = true;
676 }
static Datum values[MAXATTR]
Definition: bootstrap.c:150
static Datum PointerGetDatum(const void *X)
Definition: postgres.h:322

References Assert, boot_reldesc, DEBUG4, elog, ERROR, i, MAXATTR, NameStr, Nulls, PointerGetDatum(), RelationData::rd_att, RelationGetRelationName, TupleDescAttr, and values.

◆ InsertOneTuple()

void InsertOneTuple ( void  )

Definition at line 599 of file bootstrap.c.

600 {
601  HeapTuple tuple;
602  TupleDesc tupDesc;
603  int i;
604 
605  elog(DEBUG4, "inserting row with %d columns", numattr);
606 
607  tupDesc = CreateTupleDesc(numattr, attrtypes);
608  tuple = heap_form_tuple(tupDesc, values, Nulls);
609  pfree(tupDesc); /* just free's tupDesc, not the attrtypes */
610 
612  heap_freetuple(tuple);
613  elog(DEBUG4, "row inserted");
614 
615  /*
616  * Reset null markers for next tuple
617  */
618  for (i = 0; i < numattr; i++)
619  Nulls[i] = false;
620 }
void simple_heap_insert(Relation relation, HeapTuple tup)
Definition: heapam.c:2616
HeapTuple heap_form_tuple(TupleDesc tupleDescriptor, const Datum *values, const bool *isnull)
Definition: heaptuple.c:1116
void heap_freetuple(HeapTuple htup)
Definition: heaptuple.c:1434
TupleDesc CreateTupleDesc(int natts, Form_pg_attribute *attrs)
Definition: tupdesc.c:112

References attrtypes, boot_reldesc, CreateTupleDesc(), DEBUG4, elog, heap_form_tuple(), heap_freetuple(), i, Nulls, numattr, pfree(), simple_heap_insert(), and values.

◆ InsertOneValue()

void InsertOneValue ( char *  value,
int  i 
)

Definition at line 627 of file bootstrap.c.

628 {
629  Oid typoid;
630  int16 typlen;
631  bool typbyval;
632  char typalign;
633  char typdelim;
634  Oid typioparam;
635  Oid typinput;
636  Oid typoutput;
637 
638  Assert(i >= 0 && i < MAXATTR);
639 
640  elog(DEBUG4, "inserting column %d value \"%s\"", i, value);
641 
642  typoid = TupleDescAttr(boot_reldesc->rd_att, i)->atttypid;
643 
644  boot_get_type_io_data(typoid,
645  &typlen, &typbyval, &typalign,
646  &typdelim, &typioparam,
647  &typinput, &typoutput);
648 
649  values[i] = OidInputFunctionCall(typinput, value, typioparam, -1);
650 
651  /*
652  * We use ereport not elog here so that parameters aren't evaluated unless
653  * the message is going to be printed, which generally it isn't
654  */
655  ereport(DEBUG4,
656  (errmsg_internal("inserted -> %s",
657  OidOutputFunctionCall(typoutput, values[i]))));
658 }
void boot_get_type_io_data(Oid typid, int16 *typlen, bool *typbyval, char *typalign, char *typdelim, Oid *typioparam, Oid *typinput, Oid *typoutput)
Definition: bootstrap.c:807
signed short int16
Definition: c.h:495
int errmsg_internal(const char *fmt,...)
Definition: elog.c:1157
Datum OidInputFunctionCall(Oid functionId, char *str, Oid typioparam, int32 typmod)
Definition: fmgr.c:1754
char * OidOutputFunctionCall(Oid functionId, Datum val)
Definition: fmgr.c:1763

References Assert, boot_get_type_io_data(), boot_reldesc, DEBUG4, elog, ereport, errmsg_internal(), i, MAXATTR, OidInputFunctionCall(), OidOutputFunctionCall(), RelationData::rd_att, TupleDescAttr, typalign, value, and values.

◆ populate_typ_list()

static void populate_typ_list ( void  )
static

Definition at line 696 of file bootstrap.c.

697 {
698  Relation rel;
699  TableScanDesc scan;
700  HeapTuple tup;
701  MemoryContext old;
702 
703  Assert(Typ == NIL);
704 
705  rel = table_open(TypeRelationId, NoLock);
706  scan = table_beginscan_catalog(rel, 0, NULL);
708  while ((tup = heap_getnext(scan, ForwardScanDirection)) != NULL)
709  {
710  Form_pg_type typForm = (Form_pg_type) GETSTRUCT(tup);
711  struct typmap *newtyp;
712 
713  newtyp = (struct typmap *) palloc(sizeof(struct typmap));
714  Typ = lappend(Typ, newtyp);
715 
716  newtyp->am_oid = typForm->oid;
717  memcpy(&newtyp->am_typ, typForm, sizeof(newtyp->am_typ));
718  }
720  table_endscan(scan);
721  table_close(rel, NoLock);
722 }
HeapTuple heap_getnext(TableScanDesc sscan, ScanDirection direction)
Definition: heapam.c:1243
#define GETSTRUCT(TUP)
Definition: htup_details.h:653
List * lappend(List *list, void *datum)
Definition: list.c:339
FormData_pg_type * Form_pg_type
Definition: pg_type.h:261
@ ForwardScanDirection
Definition: sdir.h:28
TableScanDesc table_beginscan_catalog(Relation relation, int nkeys, struct ScanKeyData *key)
Definition: tableam.c:112
static void table_endscan(TableScanDesc scan)
Definition: tableam.h:1019

References typmap::am_oid, typmap::am_typ, Assert, ForwardScanDirection, GETSTRUCT, heap_getnext(), lappend(), MemoryContextSwitchTo(), NIL, NoLock, palloc(), table_beginscan_catalog(), table_close(), table_endscan(), table_open(), TopMemoryContext, and Typ.

Referenced by boot_openrel(), and gettype().

Variable Documentation

◆ Ap

struct typmap* Ap = NULL
static

Definition at line 148 of file bootstrap.c.

Referenced by DefineAttr(), and gettype().

◆ attrtypes

Definition at line 59 of file bootstrap.c.

Referenced by boot_openrel(), BootstrapModeMain(), DefineAttr(), and InsertOneTuple().

◆ boot_reldesc

Relation boot_reldesc

◆ ILHead

IndexList* ILHead = NULL
static

Definition at line 169 of file bootstrap.c.

Referenced by build_indices(), and index_register().

◆ n_types

const int n_types = sizeof(TypInfo) / sizeof(struct typinfo)
static

Definition at line 139 of file bootstrap.c.

Referenced by boot_get_type_io_data(), and gettype().

◆ nogc

MemoryContext nogc = NULL
static

Definition at line 153 of file bootstrap.c.

Referenced by index_register().

◆ Nulls

◆ numattr

int numattr

Definition at line 60 of file bootstrap.c.

Referenced by boot_openrel(), InsertOneTuple(), and tsvector_update_trigger().

◆ Typ

List* Typ = NIL
static

◆ TypInfo

const struct typinfo TypInfo[]
static

Definition at line 60 of file bootstrap.c.

Referenced by boot_get_type_io_data(), DefineAttr(), and gettype().

◆ values

Datum values[MAXATTR]
static

Definition at line 150 of file bootstrap.c.

Referenced by _bt_build_callback(), _bt_check_unique(), _bt_spool(), _h_spool(), aclexplode(), add_values_to_range(), AddEnumLabel(), AddSubscriptionRelState(), AggregateCreate(), AlterCollation(), AlterDatabaseRefreshColl(), AlterObjectNamespace_internal(), AlterObjectOwner_internal(), AlterObjectRename_internal(), AlterOperator(), AlterPolicy(), AlterPublicationOptions(), AlterSetting(), AlterSubscription(), AlterTypeRecurse(), apply_returning_filter(), ApplyExtensionUpdates(), array_in(), array_iterate(), array_map(), array_out(), array_replace_internal(), attribute_statistics_update(), blinsert(), bloomBuildCallback(), BloomFormTuple(), brin_deconstruct_tuple(), brin_deform_tuple(), brin_form_tuple(), brin_metapage_info(), brin_page_items(), brinbuildCallback(), brinbuildCallbackParallel(), brininsert(), bt_metap(), bt_multi_page_stats(), bt_page_print_tuples(), bt_page_stats_internal(), bt_tuple_present_callback(), btinsert(), build_index_value_desc(), build_pgstattuple_type(), build_sorted_items(), build_tuplestore_recursively(), BuildIndexValueDescription(), BuildTupleFromCStrings(), CastCreate(), CatalogIndexInsert(), check_conn_params(), check_exclusion_constraint(), check_exclusion_or_unique_constraint(), clear_subscription_skip_lsn(), CollationCreate(), collectTSQueryValues(), comparetup_index_btree_tiebreak(), compute_index_stats(), compute_partition_hash_value(), compute_scalar_stats(), connect_pg_server(), ConnectDatabase(), connectDatabase(), conninfo_array_parse(), constructConnStr(), ConversionCreate(), copy_replication_slot(), CopyArrayEls(), create_cursor(), CreateAccessMethod(), CreateComments(), CreateConstraintEntry(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateOpFamily(), CreatePolicy(), CreateProceduralLanguage(), CreatePublication(), CreateReplicationSlot(), CreateSharedComments(), CreateStatistics(), CreateSubscription(), CreateTableSpace(), CreateTransform(), CreateTriggerFiringOn(), CreateUserMapping(), crosstab(), dblink_get_notify(), dblink_get_pkey(), DefineOpClass(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), DisableSubscription(), DiscreteKnapsack(), do_connect(), do_text_output_multiline(), do_tup_output(), doConnect(), each_object_field_end(), each_worker_jsonb(), elements_array_element_end(), elements_worker_jsonb(), exec_move_row(), exec_move_row_from_fields(), ExecBuildAggTrans(), ExecBuildSlotPartitionKeyDescription(), ExecCheckIndexConstraints(), ExecComputeStoredGenerated(), ExecEvalMinMax(), ExecEvalXmlExpr(), ExecFilterJunk(), ExecFindPartition(), ExecGrant_Attribute(), ExecGrant_common(), ExecGrant_Largeobject(), ExecGrant_Parameter(), ExecGrant_Relation(), ExecInitExprRec(), ExecInsertIndexTuples(), execute_dml_stmt(), ExtractConnectionOptions(), ExtractReplicaIdentity(), file_acquire_sample_rows(), fill_hba_line(), fill_ident_line(), fillRelOptions(), FillXLogStatsRow(), FormIndexDatum(), FormPartitionKeyDatum(), get_actual_variable_endpoint(), get_altertable_subcmdinfo(), get_available_versions_for_extension(), get_crosstab_tuplestore(), get_matching_hash_bounds(), get_matching_range_bounds(), get_partition_for_tuple(), get_text_array_contents(), GetConfigOptionValues(), GetConnection(), GetWALBlockInfo(), GetWALRecordInfo(), GetWALRecordsInfo(), GetWalStats(), GetXLogSummaryStats(), gin_leafpage_items(), gin_metapage_info(), gin_page_opaque_info(), ginBuildCallback(), gininsert(), gist_page_items(), gist_page_items_bytea(), gist_page_opaque_info(), gistBuildCallback(), gistinsert(), gistSortedBuildCallback(), hash_bitmap_info(), hash_metapage_info(), hash_page_items(), hash_page_stats(), hash_record(), hash_record_extended(), hashbuildCallback(), hashinsert(), heap_compute_data_size(), heap_deform_tuple(), heap_fill_tuple(), heap_form_minimal_tuple(), heap_form_tuple(), heap_modify_tuple(), heap_modify_tuple_by_cols(), heap_page_items(), heap_tuple_infomask_flags(), heapam_index_build_range_scan(), heapam_index_validate_scan(), heapam_relation_copy_for_cluster(), hstore_from_record(), hstore_populate_record(), IdentifySystem(), index_concurrently_swap(), index_deform_tuple(), index_deform_tuple_internal(), index_form_tuple(), index_form_tuple_context(), index_insert(), index_truncate_tuple(), IndexCheckExclusion(), inet_hist_value_sel(), init_empty_stats_tuple(), injection_points_stats_fixed(), insert_event_trigger_tuple(), InsertExtensionTuple(), InsertOneNull(), InsertOneTuple(), InsertOneValue(), InsertPgClassTuple(), InsertRule(), intset_flush_buffered_values(), inv_truncate(), inv_write(), LargeObjectCreate(), libpqsrv_connect_params(), LogicalOutputWrite(), logicalrep_write_tuple(), main(), make_tuple_from_result_row(), make_tuple_indirect(), materializeResult(), minmax_multi_init(), NamespaceCreate(), ndistinct_for_combination(), NextCopyFrom(), oid_array_to_list(), OperatorCreate(), OperatorShellMake(), page_header(), ParameterAclCreate(), parse_key_value_arrays(), parseLocalRelOptions(), partition_range_datum_bsearch(), perform_pruning_base_step(), pg_armor(), pg_available_extensions(), pg_available_wal_summaries(), pg_backup_stop(), pg_buffercache_pages(), pg_buffercache_summary(), pg_config(), pg_control_checkpoint(), pg_control_init(), pg_control_recovery(), pg_control_system(), pg_create_logical_replication_slot(), pg_create_physical_replication_slot(), pg_cursor(), pg_event_trigger_ddl_commands(), pg_event_trigger_dropped_objects(), pg_extension_update_paths(), pg_get_catalog_foreign_keys(), pg_get_keywords(), pg_get_logical_snapshot_info(), pg_get_logical_snapshot_meta(), pg_get_multixact_members(), pg_get_object_address(), pg_get_publication_tables(), pg_get_replication_slots(), pg_get_sequence_data(), pg_get_shmem_allocations(), pg_get_wait_events(), pg_get_wal_record_info(), pg_get_wal_resource_managers(), pg_get_wal_summarizer_state(), pg_identify_object(), pg_identify_object_as_address(), pg_input_error_info(), pg_last_committed_xact(), pg_lock_status(), pg_ls_dir(), pg_ls_dir_files(), pg_partition_tree(), pg_prepared_statement(), pg_prepared_xact(), pg_replication_slot_advance(), pg_sequence_parameters(), pg_show_replication_origin_status(), pg_split_walfile_name(), pg_stat_file(), pg_stat_get_activity(), pg_stat_get_archiver(), pg_stat_get_backend_subxact(), pg_stat_get_io(), pg_stat_get_progress_info(), pg_stat_get_recovery_prefetch(), pg_stat_get_replication_slot(), pg_stat_get_slru(), pg_stat_get_subscription(), pg_stat_get_subscription_stats(), pg_stat_get_wal(), pg_stat_get_wal_receiver(), pg_stat_get_wal_senders(), pg_stat_statements_info(), pg_stat_statements_internal(), pg_stats_ext_mcvlist_items(), pg_tablespace_databases(), pg_timezone_abbrevs(), pg_timezone_names(), pg_visibility(), pg_visibility_map(), pg_visibility_map_rel(), pg_visibility_map_summary(), pg_visibility_rel(), pg_wal_summary_contents(), pg_walfile_name_offset(), pg_xact_commit_timestamp_origin(), pgfdw_security_check(), pgp_armor_encode(), pgp_armor_headers(), pgp_extract_armor_headers(), pgrowlocks(), pgstatginindex_internal(), pgstathashindex(), pgstatindex_impl(), pgstattuple_approx_internal(), plperl_build_tuple_result(), pltcl_build_tuple_result(), PLyGenericObject_ToComposite(), PLyMapping_ToComposite(), PLySequence_ToComposite(), populate_record(), postgres_fdw_get_connections_internal(), PQconnectdbParams(), PQconnectStartParams(), PQpingParams(), ProcedureCreate(), prs_process_call(), publication_add_relation(), publication_add_schema(), PutMemoryContextsStatsTupleStore(), RangeCreate(), ReadArrayBinary(), ReadArrayStr(), ReadReplicationSlot(), record_in(), record_out(), record_recv(), record_send(), recordExtensionInitPrivWorker(), reduce_expanded_ranges(), reform_and_rewrite_tuple(), regression_main(), relation_statistics_update(), RemoveRoleFromInitPriv(), RemoveRoleFromObjectPolicy(), ReplaceRoleInInitPriv(), replorigin_create(), report_corruption_internal(), SendTablespaceList(), SendXlogRecPtrResult(), serialize_expr_stats(), set_stats_slot(), SetDefaultACL(), SetSecurityLabel(), SetSharedSecurityLabel(), shdepAddDependency(), shdepChangeDep(), show_all_file_settings(), show_all_settings(), ShowAllGUCConfig(), slot_deform_heap_tuple(), spginsert(), spgistBuildCallback(), split_text_accum_result(), sql_conn(), ssl_extension_info(), StartReplication(), statext_mcv_serialize(), statext_store(), StoreAttrDefault(), storeOperators(), StorePartitionKey(), storeProcedures(), StoreSingleInheritance(), test_enc_conversion(), test_huge_distances(), test_predtest(), tfuncLoadRows(), toast_build_flattened_tuple(), toast_delete_external(), TransformGUCArray(), ts_process_call(), tsvector_unnest(), tt_process_call(), tuplesort_putindextuplevalues(), tuplestore_putvalues(), TypeCreate(), TypeShellMake(), unique_key_recheck(), update_attstats(), UpdateIndexRelation(), UpdateSubscriptionRelState(), UpdateTwoPhaseState(), upsert_pg_statistic(), vacuumlo(), ValuesNext(), WaitForLockersMultiple(), and xpath_table().