PostgreSQL Source Code  git master
pg_dump.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_dump.h
4  * Common header file for the pg_dump utility
5  *
6  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/bin/pg_dump/pg_dump.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 
14 #ifndef PG_DUMP_H
15 #define PG_DUMP_H
16 
17 #include "pg_backup.h"
18 
19 
20 #define oidcmp(x,y) ( ((x) < (y) ? -1 : ((x) > (y)) ? 1 : 0) )
21 
22 /*
23  * The data structures used to store system catalog information. Every
24  * dumpable object is a subclass of DumpableObject.
25  *
26  * NOTE: the structures described here live for the entire pg_dump run;
27  * and in most cases we make a struct for every object we can find in the
28  * catalogs, not only those we are actually going to dump. Hence, it's
29  * best to store a minimal amount of per-object info in these structs,
30  * and retrieve additional per-object info when and if we dump a specific
31  * object. In particular, try to avoid retrieving expensive-to-compute
32  * information until it's known to be needed. We do, however, have to
33  * store enough info to determine whether an object should be dumped and
34  * what order to dump in.
35  */
36 
37 typedef enum
38 {
39  /* When modifying this enum, update priority tables in pg_dump_sort.c! */
61  DO_FK_CONSTRAINT, /* see note for ConstraintInfo */
86  DO_SUBSCRIPTION_REL, /* see note for SubRelInfo */
88 
89 /*
90  * DumpComponents is a bitmask of the potentially dumpable components of
91  * a database object: its core definition, plus optional attributes such
92  * as ACL, comments, etc. The NONE and ALL symbols are convenient
93  * shorthands.
94  */
96 #define DUMP_COMPONENT_NONE (0)
97 #define DUMP_COMPONENT_DEFINITION (1 << 0)
98 #define DUMP_COMPONENT_DATA (1 << 1)
99 #define DUMP_COMPONENT_COMMENT (1 << 2)
100 #define DUMP_COMPONENT_SECLABEL (1 << 3)
101 #define DUMP_COMPONENT_ACL (1 << 4)
102 #define DUMP_COMPONENT_POLICY (1 << 5)
103 #define DUMP_COMPONENT_USERMAP (1 << 6)
104 #define DUMP_COMPONENT_ALL (0xFFFF)
105 
106 /*
107  * component types which require us to obtain a lock on the table
108  *
109  * Note that some components only require looking at the information
110  * in the pg_catalog tables and, for those components, we do not need
111  * to lock the table. Be careful here though- some components use
112  * server-side functions which pull the latest information from
113  * SysCache and in those cases we *do* need to lock the table.
114  *
115  * We do not need locks for the COMMENT and SECLABEL components as
116  * those simply query their associated tables without using any
117  * server-side functions. We do not need locks for the ACL component
118  * as we pull that information from pg_class without using any
119  * server-side functions that use SysCache. The USERMAP component
120  * is only relevant for FOREIGN SERVERs and not tables, so no sense
121  * locking a table for that either (that can happen if we are going
122  * to dump "ALL" components for a table).
123  *
124  * We DO need locks for DEFINITION, due to various server-side
125  * functions that are used and POLICY due to pg_get_expr(). We set
126  * this up to grab the lock except in the cases we know to be safe.
127  */
128 #define DUMP_COMPONENTS_REQUIRING_LOCK (\
129  DUMP_COMPONENT_DEFINITION |\
130  DUMP_COMPONENT_DATA |\
131  DUMP_COMPONENT_POLICY)
132 
133 typedef struct _dumpableObject
134 {
136  CatalogId catId; /* zero if not a cataloged object */
137  DumpId dumpId; /* assigned by AssignDumpId() */
138  char *name; /* object name (should never be NULL) */
139  struct _namespaceInfo *namespace; /* containing namespace, or NULL */
140  DumpComponents dump; /* bitmask of components requested to dump */
141  DumpComponents dump_contains; /* as above, but for contained objects */
142  DumpComponents components; /* bitmask of components available to dump */
143  bool ext_member; /* true if object is member of extension */
144  bool depends_on_ext; /* true if object depends on an extension */
145  DumpId *dependencies; /* dumpIds of objects this one depends on */
146  int nDeps; /* number of valid dependencies */
147  int allocDeps; /* allocated size of dependencies[] */
149 
150 /*
151  * Object types that have ACLs must store them in a DumpableAcl sub-struct,
152  * which must immediately follow the DumpableObject base struct.
153  */
154 typedef struct _dumpableAcl
155 {
156  char *acl; /* the object's actual ACL string */
157  char *acldefault; /* default ACL for the object's type & owner */
158  /* these fields come from the object's pg_init_privs entry, if any: */
159  char privtype; /* entry type, 'i' or 'e'; 0 if no entry */
160  char *initprivs; /* the object's initial ACL string, or NULL */
162 
163 /* Generic struct that can be used to access any object type having an ACL */
165 {
169 
170 typedef struct _namespaceInfo
171 {
174  bool create; /* CREATE SCHEMA, or just set owner? */
175  Oid nspowner; /* OID of owner */
176  const char *rolname; /* name of owner */
178 
179 typedef struct _extensionInfo
180 {
182  char *namespace; /* schema containing extension's objects */
184  char *extversion;
185  char *extconfig; /* info about configuration tables */
188 
189 typedef struct _typeInfo
190 {
193 
194  /*
195  * Note: dobj.name is the raw pg_type.typname entry. ftypname is the
196  * result of format_type(), which will be quoted if needed, and might be
197  * schema-qualified too.
198  */
199  char *ftypname;
200  const char *rolname;
203  char typrelkind; /* 'r', 'v', 'c', etc */
204  char typtype; /* 'b', 'c', etc */
205  bool isArray; /* true if auto-generated array type */
206  bool isMultirange; /* true if auto-generated multirange type */
207  bool isDefined; /* true if typisdefined */
208  /* If needed, we'll create a "shell type" entry for it; link that here: */
209  struct _shellTypeInfo *shellType; /* shell-type entry, or NULL */
210  /* If it's a domain, we store links to its constraints here: */
214 
215 typedef struct _shellTypeInfo
216 {
218 
219  TypeInfo *baseType; /* back link to associated base type */
221 
222 typedef struct _funcInfo
223 {
226  const char *rolname;
228  int nargs;
231  bool postponed_def; /* function must be postponed into post-data */
233 
234 /* AggInfo is a superset of FuncInfo */
235 typedef struct _aggInfo
236 {
238  /* we don't require any other fields at the moment */
240 
241 typedef struct _oprInfo
242 {
244  const char *rolname;
245  char oprkind;
248 
249 typedef struct _accessMethodInfo
250 {
252  char amtype;
253  char *amhandler;
255 
256 typedef struct _opclassInfo
257 {
259  const char *rolname;
261 
262 typedef struct _opfamilyInfo
263 {
265  const char *rolname;
267 
268 typedef struct _collInfo
269 {
271  const char *rolname;
273 
274 typedef struct _convInfo
275 {
277  const char *rolname;
279 
280 typedef struct _tableInfo
281 {
282  /*
283  * These fields are collected for every table in the database.
284  */
287  const char *rolname;
288  char relkind;
289  char relpersistence; /* relation persistence */
290  bool relispopulated; /* relation is populated */
291  char relreplident; /* replica identifier */
292  char *reltablespace; /* relation tablespace */
293  char *reloptions; /* options specified by WITH (...) */
294  char *checkoption; /* WITH CHECK OPTION, if any */
295  char *toast_reloptions; /* WITH options for the TOAST table */
296  bool hasindex; /* does it have any indexes? */
297  bool hasrules; /* does it have any rules? */
298  bool hastriggers; /* does it have any triggers? */
299  bool hascolumnACLs; /* do any columns have non-default ACLs? */
300  bool rowsec; /* is row security enabled? */
301  bool forcerowsec; /* is row security forced? */
302  bool hasoids; /* does it have OIDs? */
303  uint32 frozenxid; /* table's relfrozenxid */
304  uint32 minmxid; /* table's relminmxid */
305  Oid toast_oid; /* toast table's OID, or 0 if none */
306  uint32 toast_frozenxid; /* toast table's relfrozenxid, if any */
307  uint32 toast_minmxid; /* toast table's relminmxid */
308  int ncheck; /* # of CHECK expressions */
309  Oid reltype; /* OID of table's composite type, if any */
310  Oid reloftype; /* underlying type for typed table */
311  Oid foreign_server; /* foreign server oid, if applicable */
312  /* these two are set only if table is a sequence owned by a column: */
313  Oid owning_tab; /* OID of table owning sequence */
314  int owning_col; /* attr # of column owning sequence */
316  int relpages; /* table's size in pages (from pg_class) */
317  int toastpages; /* toast table's size in pages, if any */
318 
319  bool interesting; /* true if need to collect more data */
320  bool dummy_view; /* view's real definition must be postponed */
321  bool postponed_def; /* matview must be postponed into post-data */
322  bool ispartition; /* is table a partition? */
323  bool unsafe_partitions; /* is it an unsafe partitioned table? */
324 
325  int numParents; /* number of (immediate) parent tables */
326  struct _tableInfo **parents; /* TableInfos of immediate parents */
327 
328  /*
329  * These fields are computed only if we decide the table is interesting
330  * (it's either a table to dump, or a direct parent of a dumpable table).
331  */
332  int numatts; /* number of attributes */
333  char **attnames; /* the attribute names */
334  char **atttypnames; /* attribute type names */
335  int *attstattarget; /* attribute statistics targets */
336  char *attstorage; /* attribute storage scheme */
337  char *typstorage; /* type storage scheme */
338  bool *attisdropped; /* true if attr is dropped; don't dump it */
339  char *attidentity;
341  int *attlen; /* attribute length, used by binary_upgrade */
342  char *attalign; /* attribute align, used by binary_upgrade */
343  bool *attislocal; /* true if attr has local definition */
344  char **attoptions; /* per-attribute options */
345  Oid *attcollation; /* per-attribute collation selection */
346  char *attcompression; /* per-attribute compression method */
347  char **attfdwoptions; /* per-attribute fdw options */
348  char **attmissingval; /* per attribute missing value */
349  char **notnull_constrs; /* NOT NULL constraint names. If null,
350  * there isn't one on this column. If
351  * empty string, unnamed constraint
352  * (pre-v17) */
353  bool *notnull_noinh; /* NOT NULL is NO INHERIT */
354  bool *notnull_throwaway; /* drop the NOT NULL constraint later */
355  bool *notnull_inh; /* true if NOT NULL has no local definition */
356  struct _attrDefInfo **attrdefs; /* DEFAULT expressions */
357  struct _constraintInfo *checkexprs; /* CHECK constraints */
358  bool needs_override; /* has GENERATED ALWAYS AS IDENTITY */
359  char *amname; /* relation access method */
360 
361  /*
362  * Stuff computed only for dumpable tables.
363  */
364  int numIndexes; /* number of indexes */
365  struct _indxInfo *indexes; /* indexes */
366  struct _tableDataInfo *dataObj; /* TableDataInfo, if dumping its data */
367  int numTriggers; /* number of triggers for table */
368  struct _triggerInfo *triggers; /* array of TriggerInfo structs */
370 
371 typedef struct _tableAttachInfo
372 {
374  TableInfo *parentTbl; /* link to partitioned table */
375  TableInfo *partitionTbl; /* link to partition */
377 
378 typedef struct _attrDefInfo
379 {
380  DumpableObject dobj; /* note: dobj.name is name of table */
381  TableInfo *adtable; /* link to table of attribute */
382  int adnum;
383  char *adef_expr; /* decompiled DEFAULT expression */
384  bool separate; /* true if must dump as separate item */
386 
387 typedef struct _tableDataInfo
388 {
390  TableInfo *tdtable; /* link to table to dump */
391  char *filtercond; /* WHERE condition to limit rows dumped */
393 
394 typedef struct _indxInfo
395 {
397  TableInfo *indextable; /* link to table the index is for */
398  char *indexdef;
399  char *tablespace; /* tablespace in which index is stored */
400  char *indreloptions; /* options specified by WITH (...) */
401  char *indstatcols; /* column numbers with statistics */
402  char *indstatvals; /* statistic values for columns */
403  int indnkeyattrs; /* number of index key attributes */
404  int indnattrs; /* total number of index attributes */
405  Oid *indkeys; /* In spite of the name 'indkeys' this field
406  * contains both key and nonkey attributes */
410  Oid parentidx; /* if a partition, parent index OID */
411  SimplePtrList partattaches; /* if partitioned, partition attach objects */
412 
413  /* if there is an associated constraint object, its dumpId: */
416 
417 typedef struct _indexAttachInfo
418 {
420  IndxInfo *parentIdx; /* link to index on partitioned table */
421  IndxInfo *partitionIdx; /* link to index on partition */
423 
424 typedef struct _statsExtInfo
425 {
427  const char *rolname; /* owner */
428  TableInfo *stattable; /* link to table the stats are for */
429  int stattarget; /* statistics target */
431 
432 typedef struct _ruleInfo
433 {
435  TableInfo *ruletable; /* link to table the rule is for */
436  char ev_type;
439  bool separate; /* true if must dump as separate item */
440  /* separate is always true for non-ON SELECT rules */
442 
443 typedef struct _triggerInfo
444 {
446  TableInfo *tgtable; /* link to table the trigger is for */
447  char tgenabled;
449  char *tgdef;
451 
452 typedef struct _evttriggerInfo
453 {
455  char *evtname;
456  char *evtevent;
457  const char *evtowner;
458  char *evttags;
459  char *evtfname;
462 
463 /*
464  * struct ConstraintInfo is used for all constraint types. However we
465  * use a different objType for foreign key constraints, to make it easier
466  * to sort them the way we want.
467  *
468  * Note: condeferrable and condeferred are currently only valid for
469  * unique/primary-key constraints. Otherwise that info is in condef.
470  */
471 typedef struct _constraintInfo
472 {
474  TableInfo *contable; /* NULL if domain constraint */
475  TypeInfo *condomain; /* NULL if table constraint */
476  char contype;
477  char *condef; /* definition, if CHECK or FOREIGN KEY */
478  Oid confrelid; /* referenced table, if FOREIGN KEY */
479  DumpId conindex; /* identifies associated index if any */
480  bool condeferrable; /* true if constraint is DEFERRABLE */
481  bool condeferred; /* true if constraint is INITIALLY DEFERRED */
482  bool conperiod; /* true if the constraint is WITHOUT OVERLAPS */
483  bool conislocal; /* true if constraint has local definition */
484  bool separate; /* true if must dump as separate item */
486 
487 typedef struct _procLangInfo
488 {
495  const char *lanowner;
497 
498 typedef struct _castInfo
499 {
507 
508 typedef struct _transformInfo
509 {
516 
517 /* InhInfo isn't a DumpableObject, just temporary state */
518 typedef struct _inhInfo
519 {
520  Oid inhrelid; /* OID of a child table */
521  Oid inhparent; /* OID of its parent */
523 
524 typedef struct _prsInfo
525 {
533 
534 typedef struct _dictInfo
535 {
537  const char *rolname;
541 
542 typedef struct _tmplInfo
543 {
548 
549 typedef struct _cfgInfo
550 {
552  const char *rolname;
555 
556 typedef struct _fdwInfo
557 {
560  const char *rolname;
561  char *fdwhandler;
563  char *fdwoptions;
565 
566 typedef struct _foreignServerInfo
567 {
570  const char *rolname;
572  char *srvtype;
573  char *srvversion;
574  char *srvoptions;
576 
577 typedef struct _defaultACLInfo
578 {
581  const char *defaclrole;
584 
585 /*
586  * LoInfo represents a group of large objects (blobs) that share the same
587  * owner and ACL setting. dobj.components has the DUMP_COMPONENT_COMMENT bit
588  * set if any blob in the group has a comment; similarly for sec labels.
589  * If there are many blobs with the same owner/ACL, we can divide them into
590  * multiple LoInfo groups, which will each spawn a BLOB METADATA and a BLOBS
591  * (data) TOC entry. This allows more parallelism during restore.
592  */
593 typedef struct _loInfo
594 {
597  const char *rolname;
598  int numlos;
601 
602 /*
603  * The PolicyInfo struct is used to represent policies on a table and
604  * to indicate if a table has RLS enabled (ENABLE ROW SECURITY). If
605  * polname is NULL, then the record indicates ENABLE ROW SECURITY, while if
606  * it's non-NULL then this is a regular policy definition.
607  */
608 typedef struct _policyInfo
609 {
612  char *polname; /* null indicates RLS is enabled on rel */
613  char polcmd;
615  char *polroles;
616  char *polqual;
619 
620 /*
621  * The PublicationInfo struct is used to represent publications.
622  */
623 typedef struct _PublicationInfo
624 {
626  const char *rolname;
628  bool pubinsert;
629  bool pubupdate;
630  bool pubdelete;
634 
635 /*
636  * The PublicationRelInfo struct is used to represent publication table
637  * mapping.
638  */
639 typedef struct _PublicationRelInfo
640 {
644  char *pubrelqual;
645  char *pubrattrs;
647 
648 /*
649  * The PublicationSchemaInfo struct is used to represent publication schema
650  * mapping.
651  */
653 {
658 
659 /*
660  * The SubscriptionInfo struct is used to represent subscription.
661  */
662 typedef struct _SubscriptionInfo
663 {
665  const char *rolname;
666  char *subenabled;
667  char *subbinary;
668  char *substream;
673  char *subconninfo;
674  char *subslotname;
677  char *suborigin;
679  char *subfailover;
681 
682 /*
683  * The SubRelInfo struct is used to represent a subscription relation.
684  *
685  * XXX Currently, the subscription tables are added to the subscription after
686  * enabling the subscription in binary-upgrade mode. As the apply workers will
687  * not be started in binary_upgrade mode the ordering of enable subscription
688  * does not matter. The order of adding the subscription tables to the
689  * subscription and enabling the subscription should be taken care of if this
690  * feature will be supported in a non-binary-upgrade mode in the future.
691  */
692 typedef struct _SubRelInfo
693 {
698  char *srsublsn;
700 
701 /*
702  * common utility functions
703  */
704 
705 extern TableInfo *getSchemaData(Archive *fout, int *numTablesPtr);
706 
707 extern void AssignDumpId(DumpableObject *dobj);
708 extern void recordAdditionalCatalogID(CatalogId catId, DumpableObject *dobj);
709 extern DumpId createDumpId(void);
710 extern DumpId getMaxDumpId(void);
713 extern void getDumpableObjects(DumpableObject ***objs, int *numObjs);
714 
715 extern void addObjectDependency(DumpableObject *dobj, DumpId refId);
716 extern void removeObjectDependency(DumpableObject *dobj, DumpId refId);
717 
718 extern TableInfo *findTableByOid(Oid oid);
719 extern TypeInfo *findTypeByOid(Oid oid);
720 extern FuncInfo *findFuncByOid(Oid oid);
721 extern OprInfo *findOprByOid(Oid oid);
722 extern CollInfo *findCollationByOid(Oid oid);
727 
728 extern void recordExtensionMembership(CatalogId catId, ExtensionInfo *ext);
729 extern ExtensionInfo *findOwningExtension(CatalogId catalogId);
730 
731 extern void parseOidArray(const char *str, Oid *array, int arraysize);
732 
733 extern void sortDumpableObjects(DumpableObject **objs, int numObjs,
734  DumpId preBoundaryId, DumpId postBoundaryId);
735 extern void sortDumpableObjectsByTypeName(DumpableObject **objs, int numObjs);
736 
737 /*
738  * version specific routines
739  */
740 extern NamespaceInfo *getNamespaces(Archive *fout, int *numNamespaces);
741 extern ExtensionInfo *getExtensions(Archive *fout, int *numExtensions);
742 extern TypeInfo *getTypes(Archive *fout, int *numTypes);
743 extern FuncInfo *getFuncs(Archive *fout, int *numFuncs);
744 extern AggInfo *getAggregates(Archive *fout, int *numAggs);
745 extern OprInfo *getOperators(Archive *fout, int *numOprs);
746 extern AccessMethodInfo *getAccessMethods(Archive *fout, int *numAccessMethods);
747 extern OpclassInfo *getOpclasses(Archive *fout, int *numOpclasses);
748 extern OpfamilyInfo *getOpfamilies(Archive *fout, int *numOpfamilies);
749 extern CollInfo *getCollations(Archive *fout, int *numCollations);
750 extern ConvInfo *getConversions(Archive *fout, int *numConversions);
751 extern TableInfo *getTables(Archive *fout, int *numTables);
752 extern void getOwnedSeqs(Archive *fout, TableInfo tblinfo[], int numTables);
753 extern InhInfo *getInherits(Archive *fout, int *numInherits);
754 extern void getPartitioningInfo(Archive *fout);
755 extern void getIndexes(Archive *fout, TableInfo tblinfo[], int numTables);
756 extern void getExtendedStatistics(Archive *fout);
757 extern void getConstraints(Archive *fout, TableInfo tblinfo[], int numTables);
758 extern RuleInfo *getRules(Archive *fout, int *numRules);
759 extern void getTriggers(Archive *fout, TableInfo tblinfo[], int numTables);
760 extern ProcLangInfo *getProcLangs(Archive *fout, int *numProcLangs);
761 extern CastInfo *getCasts(Archive *fout, int *numCasts);
762 extern TransformInfo *getTransforms(Archive *fout, int *numTransforms);
763 extern void getTableAttrs(Archive *fout, TableInfo *tblinfo, int numTables);
764 extern bool shouldPrintColumn(const DumpOptions *dopt, const TableInfo *tbinfo, int colno);
765 extern TSParserInfo *getTSParsers(Archive *fout, int *numTSParsers);
766 extern TSDictInfo *getTSDictionaries(Archive *fout, int *numTSDicts);
767 extern TSTemplateInfo *getTSTemplates(Archive *fout, int *numTSTemplates);
768 extern TSConfigInfo *getTSConfigurations(Archive *fout, int *numTSConfigs);
770  int *numForeignDataWrappers);
772  int *numForeignServers);
773 extern DefaultACLInfo *getDefaultACLs(Archive *fout, int *numDefaultACLs);
774 extern void getExtensionMembership(Archive *fout, ExtensionInfo extinfo[],
775  int numExtensions);
776 extern void processExtensionTables(Archive *fout, ExtensionInfo extinfo[],
777  int numExtensions);
778 extern EventTriggerInfo *getEventTriggers(Archive *fout, int *numEventTriggers);
779 extern void getPolicies(Archive *fout, TableInfo tblinfo[], int numTables);
781  int *numPublications);
782 extern void getPublicationNamespaces(Archive *fout);
783 extern void getPublicationTables(Archive *fout, TableInfo tblinfo[],
784  int numTables);
785 extern void getSubscriptions(Archive *fout);
786 extern void getSubscriptionTables(Archive *fout);
787 
788 #endif /* PG_DUMP_H */
unsigned int uint32
Definition: c.h:506
#define FLEXIBLE_ARRAY_MEMBER
Definition: c.h:398
const char * str
int DumpId
Definition: pg_backup.h:270
NamespaceInfo * getNamespaces(Archive *fout, int *numNamespaces)
Definition: pg_dump.c:5559
void getConstraints(Archive *fout, TableInfo tblinfo[], int numTables)
Definition: pg_dump.c:7725
struct _collInfo CollInfo
void recordAdditionalCatalogID(CatalogId catId, DumpableObject *dobj)
Definition: common.c:710
struct _transformInfo TransformInfo
void recordExtensionMembership(CatalogId catId, ExtensionInfo *ext)
Definition: common.c:1036
void getPublicationNamespaces(Archive *fout)
Definition: pg_dump.c:4377
struct _opfamilyInfo OpfamilyInfo
void getPartitioningInfo(Archive *fout)
Definition: pg_dump.c:7266
struct _indxInfo IndxInfo
DefaultACLInfo * getDefaultACLs(Archive *fout, int *numDefaultACLs)
Definition: pg_dump.c:9907
struct _fdwInfo FdwInfo
struct _triggerInfo TriggerInfo
struct _tmplInfo TSTemplateInfo
struct _tableInfo TableInfo
FuncInfo * findFuncByOid(Oid oid)
Definition: common.c:909
struct _aggInfo AggInfo
void getPolicies(Archive *fout, TableInfo tblinfo[], int numTables)
Definition: pg_dump.c:3892
struct _castInfo CastInfo
void getExtensionMembership(Archive *fout, ExtensionInfo extinfo[], int numExtensions)
Definition: pg_dump.c:18227
struct _tableDataInfo TableDataInfo
ForeignServerInfo * getForeignServers(Archive *fout, int *numForeignServers)
Definition: pg_dump.c:9813
NamespaceInfo * findNamespaceByOid(Oid oid)
Definition: common.c:963
struct _cfgInfo TSConfigInfo
AccessMethodInfo * getAccessMethods(Archive *fout, int *numAccessMethods)
Definition: pg_dump.c:6150
FdwInfo * getForeignDataWrappers(Archive *fout, int *numForeignDataWrappers)
Definition: pg_dump.c:9723
FuncInfo * getFuncs(Archive *fout, int *numFuncs)
Definition: pg_dump.c:6502
TSConfigInfo * getTSConfigurations(Archive *fout, int *numTSConfigs)
Definition: pg_dump.c:9658
struct _dumpableObject DumpableObject
struct _accessMethodInfo AccessMethodInfo
struct _attrDefInfo AttrDefInfo
ConvInfo * getConversions(Archive *fout, int *numConversions)
Definition: pg_dump.c:6082
void getOwnedSeqs(Archive *fout, TableInfo tblinfo[], int numTables)
Definition: pg_dump.c:7147
SubscriptionInfo * findSubscriptionByOid(Oid oid)
Definition: common.c:1017
ExtensionInfo * findOwningExtension(CatalogId catalogId)
Definition: common.c:1060
TableInfo * getSchemaData(Archive *fout, int *numTablesPtr)
Definition: common.c:99
struct _ruleInfo RuleInfo
void getPublicationTables(Archive *fout, TableInfo tblinfo[], int numTables)
Definition: pg_dump.c:4464
AggInfo * getAggregates(Archive *fout, int *numAggs)
Definition: pg_dump.c:6355
DumpableObject * findObjectByCatalogId(CatalogId catalogId)
Definition: common.c:769
void getIndexes(Archive *fout, TableInfo tblinfo[], int numTables)
Definition: pg_dump.c:7326
void addObjectDependency(DumpableObject *dobj, DumpId refId)
Definition: common.c:809
struct _foreignServerInfo ForeignServerInfo
DumpableObject * findObjectByDumpId(DumpId dumpId)
Definition: common.c:756
void parseOidArray(const char *str, Oid *array, int arraysize)
Definition: common.c:1084
struct _inhInfo InhInfo
struct _indexAttachInfo IndexAttachInfo
struct _SubRelInfo SubRelInfo
struct _procLangInfo ProcLangInfo
TSDictInfo * getTSDictionaries(Archive *fout, int *numTSDicts)
Definition: pg_dump.c:9521
InhInfo * getInherits(Archive *fout, int *numInherits)
Definition: pg_dump.c:7210
OpfamilyInfo * getOpfamilies(Archive *fout, int *numOpfamilies)
Definition: pg_dump.c:6287
void getTableAttrs(Archive *fout, TableInfo *tblinfo, int numTables)
Definition: pg_dump.c:8686
struct _prsInfo TSParserInfo
struct _policyInfo PolicyInfo
TableInfo * findTableByOid(Oid oid)
Definition: common.c:854
struct _PublicationInfo PublicationInfo
void getSubscriptionTables(Archive *fout)
Definition: pg_dump.c:4913
struct _namespaceInfo NamespaceInfo
struct _shellTypeInfo ShellTypeInfo
struct _dumpableObjectWithAcl DumpableObjectWithAcl
struct _defaultACLInfo DefaultACLInfo
PublicationInfo * getPublications(Archive *fout, int *numPublications)
Definition: pg_dump.c:4177
DumpId createDumpId(void)
Definition: common.c:736
TSTemplateInfo * getTSTemplates(Archive *fout, int *numTSTemplates)
Definition: pg_dump.c:9593
ProcLangInfo * getProcLangs(Archive *fout, int *numProcLangs)
Definition: pg_dump.c:8389
struct _loInfo LoInfo
TypeInfo * getTypes(Archive *fout, int *numTypes)
Definition: pg_dump.c:5770
ExtensionInfo * findExtensionByOid(Oid oid)
Definition: common.c:981
void AssignDumpId(DumpableObject *dobj)
Definition: common.c:648
struct _evttriggerInfo EventTriggerInfo
void getExtendedStatistics(Archive *fout)
Definition: pg_dump.c:7646
struct _dumpableAcl DumpableAcl
void processExtensionTables(Archive *fout, ExtensionInfo extinfo[], int numExtensions)
Definition: pg_dump.c:18320
DumpId getMaxDumpId(void)
Definition: common.c:745
OpclassInfo * getOpclasses(Archive *fout, int *numOpclasses)
Definition: pg_dump.c:6221
uint32 DumpComponents
Definition: pg_dump.h:95
CollInfo * getCollations(Archive *fout, int *numCollations)
Definition: pg_dump.c:6014
struct _typeInfo TypeInfo
void getSubscriptions(Archive *fout)
Definition: pg_dump.c:4718
void sortDumpableObjects(DumpableObject **objs, int numObjs, DumpId preBoundaryId, DumpId postBoundaryId)
Definition: pg_dump_sort.c:322
struct _SubscriptionInfo SubscriptionInfo
struct _extensionInfo ExtensionInfo
struct _dictInfo TSDictInfo
struct _funcInfo FuncInfo
struct _opclassInfo OpclassInfo
ExtensionInfo * getExtensions(Archive *fout, int *numExtensions)
Definition: pg_dump.c:5695
void getDumpableObjects(DumpableObject ***objs, int *numObjs)
Definition: common.c:788
struct _statsExtInfo StatsExtInfo
CollInfo * findCollationByOid(Oid oid)
Definition: common.c:945
TSParserInfo * getTSParsers(Archive *fout, int *numTSParsers)
Definition: pg_dump.c:9441
TransformInfo * getTransforms(Archive *fout, int *numTransforms)
Definition: pg_dump.c:8595
void getTriggers(Archive *fout, TableInfo tblinfo[], int numTables)
Definition: pg_dump.c:8106
DumpableObjectType
Definition: pg_dump.h:38
@ DO_EVENT_TRIGGER
Definition: pg_dump.h:79
@ DO_REFRESH_MATVIEW
Definition: pg_dump.h:80
@ DO_POLICY
Definition: pg_dump.h:81
@ DO_CAST
Definition: pg_dump.h:63
@ DO_FOREIGN_SERVER
Definition: pg_dump.h:72
@ DO_PRE_DATA_BOUNDARY
Definition: pg_dump.h:77
@ DO_PROCLANG
Definition: pg_dump.h:62
@ DO_TYPE
Definition: pg_dump.h:42
@ DO_INDEX
Definition: pg_dump.h:55
@ DO_COLLATION
Definition: pg_dump.h:50
@ DO_LARGE_OBJECT
Definition: pg_dump.h:75
@ DO_TSCONFIG
Definition: pg_dump.h:70
@ DO_OPERATOR
Definition: pg_dump.h:46
@ DO_FK_CONSTRAINT
Definition: pg_dump.h:61
@ DO_CONSTRAINT
Definition: pg_dump.h:60
@ DO_SUBSCRIPTION
Definition: pg_dump.h:85
@ DO_DEFAULT_ACL
Definition: pg_dump.h:73
@ DO_FDW
Definition: pg_dump.h:71
@ DO_SUBSCRIPTION_REL
Definition: pg_dump.h:86
@ DO_SEQUENCE_SET
Definition: pg_dump.h:65
@ DO_ATTRDEF
Definition: pg_dump.h:54
@ DO_PUBLICATION_REL
Definition: pg_dump.h:83
@ DO_TABLE_ATTACH
Definition: pg_dump.h:53
@ DO_OPCLASS
Definition: pg_dump.h:48
@ DO_INDEX_ATTACH
Definition: pg_dump.h:56
@ DO_TSTEMPLATE
Definition: pg_dump.h:69
@ DO_STATSEXT
Definition: pg_dump.h:57
@ DO_FUNC
Definition: pg_dump.h:44
@ DO_POST_DATA_BOUNDARY
Definition: pg_dump.h:78
@ DO_LARGE_OBJECT_DATA
Definition: pg_dump.h:76
@ DO_OPFAMILY
Definition: pg_dump.h:49
@ DO_TRANSFORM
Definition: pg_dump.h:74
@ DO_ACCESS_METHOD
Definition: pg_dump.h:47
@ DO_PUBLICATION_TABLE_IN_SCHEMA
Definition: pg_dump.h:84
@ DO_CONVERSION
Definition: pg_dump.h:51
@ DO_TRIGGER
Definition: pg_dump.h:59
@ DO_RULE
Definition: pg_dump.h:58
@ DO_DUMMY_TYPE
Definition: pg_dump.h:66
@ DO_TSDICT
Definition: pg_dump.h:68
@ DO_TSPARSER
Definition: pg_dump.h:67
@ DO_EXTENSION
Definition: pg_dump.h:41
@ DO_TABLE_DATA
Definition: pg_dump.h:64
@ DO_PUBLICATION
Definition: pg_dump.h:82
@ DO_TABLE
Definition: pg_dump.h:52
@ DO_NAMESPACE
Definition: pg_dump.h:40
@ DO_AGG
Definition: pg_dump.h:45
@ DO_SHELL_TYPE
Definition: pg_dump.h:43
TypeInfo * findTypeByOid(Oid oid)
Definition: common.c:890
OprInfo * getOperators(Archive *fout, int *numOprs)
Definition: pg_dump.c:5940
RuleInfo * getRules(Archive *fout, int *numRules)
Definition: pg_dump.c:8005
OprInfo * findOprByOid(Oid oid)
Definition: common.c:927
struct _PublicationRelInfo PublicationRelInfo
void sortDumpableObjectsByTypeName(DumpableObject **objs, int numObjs)
Definition: pg_dump_sort.c:189
struct _convInfo ConvInfo
EventTriggerInfo * getEventTriggers(Archive *fout, int *numEventTriggers)
Definition: pg_dump.c:8302
struct _constraintInfo ConstraintInfo
TableInfo * getTables(Archive *fout, int *numTables)
Definition: pg_dump.c:6701
bool shouldPrintColumn(const DumpOptions *dopt, const TableInfo *tbinfo, int colno)
Definition: pg_dump.c:9423
struct _tableAttachInfo TableAttachInfo
void removeObjectDependency(DumpableObject *dobj, DumpId refId)
Definition: common.c:834
CastInfo * getCasts(Archive *fout, int *numCasts)
Definition: pg_dump.c:8479
struct _oprInfo OprInfo
PublicationInfo * findPublicationByOid(Oid oid)
Definition: common.c:999
struct _PublicationSchemaInfo PublicationSchemaInfo
unsigned int Oid
Definition: postgres_ext.h:31
const char * rolname
Definition: pg_dump.h:626
bool puballtables
Definition: pg_dump.h:627
bool pubtruncate
Definition: pg_dump.h:631
DumpableObject dobj
Definition: pg_dump.h:625
TableInfo * pubtable
Definition: pg_dump.h:643
PublicationInfo * publication
Definition: pg_dump.h:642
DumpableObject dobj
Definition: pg_dump.h:641
NamespaceInfo * pubschema
Definition: pg_dump.h:656
DumpableObject dobj
Definition: pg_dump.h:654
PublicationInfo * publication
Definition: pg_dump.h:655
DumpableObject dobj
Definition: pg_dump.h:694
char * srsublsn
Definition: pg_dump.h:698
SubscriptionInfo * subinfo
Definition: pg_dump.h:695
TableInfo * tblinfo
Definition: pg_dump.h:696
char srsubstate
Definition: pg_dump.h:697
char * suboriginremotelsn
Definition: pg_dump.h:678
char * suborigin
Definition: pg_dump.h:677
char * subbinary
Definition: pg_dump.h:667
const char * rolname
Definition: pg_dump.h:665
char * subrunasowner
Definition: pg_dump.h:672
char * subsynccommit
Definition: pg_dump.h:675
char * subpublications
Definition: pg_dump.h:676
char * subtwophasestate
Definition: pg_dump.h:669
char * subfailover
Definition: pg_dump.h:679
char * subenabled
Definition: pg_dump.h:666
char * substream
Definition: pg_dump.h:668
char * subpasswordrequired
Definition: pg_dump.h:671
char * subslotname
Definition: pg_dump.h:674
char * subdisableonerr
Definition: pg_dump.h:670
char * subconninfo
Definition: pg_dump.h:673
DumpableObject dobj
Definition: pg_dump.h:664
char * amhandler
Definition: pg_dump.h:253
DumpableObject dobj
Definition: pg_dump.h:251
FuncInfo aggfn
Definition: pg_dump.h:237
DumpableObject dobj
Definition: pg_dump.h:380
char * adef_expr
Definition: pg_dump.h:383
TableInfo * adtable
Definition: pg_dump.h:381
bool separate
Definition: pg_dump.h:384
char castmethod
Definition: pg_dump.h:505
Oid casttarget
Definition: pg_dump.h:502
char castcontext
Definition: pg_dump.h:504
DumpableObject dobj
Definition: pg_dump.h:500
Oid castsource
Definition: pg_dump.h:501
Oid castfunc
Definition: pg_dump.h:503
Oid cfgparser
Definition: pg_dump.h:553
DumpableObject dobj
Definition: pg_dump.h:551
const char * rolname
Definition: pg_dump.h:552
const char * rolname
Definition: pg_dump.h:271
DumpableObject dobj
Definition: pg_dump.h:270
TypeInfo * condomain
Definition: pg_dump.h:475
TableInfo * contable
Definition: pg_dump.h:474
bool condeferred
Definition: pg_dump.h:481
bool conperiod
Definition: pg_dump.h:482
bool conislocal
Definition: pg_dump.h:483
DumpableObject dobj
Definition: pg_dump.h:473
DumpId conindex
Definition: pg_dump.h:479
bool condeferrable
Definition: pg_dump.h:480
char * condef
Definition: pg_dump.h:477
DumpableObject dobj
Definition: pg_dump.h:276
const char * rolname
Definition: pg_dump.h:277
DumpableObject dobj
Definition: pg_dump.h:579
DumpableAcl dacl
Definition: pg_dump.h:580
const char * defaclrole
Definition: pg_dump.h:581
char defaclobjtype
Definition: pg_dump.h:582
char * dictinitoption
Definition: pg_dump.h:539
DumpableObject dobj
Definition: pg_dump.h:536
const char * rolname
Definition: pg_dump.h:537
Oid dicttemplate
Definition: pg_dump.h:538
char privtype
Definition: pg_dump.h:159
char * acldefault
Definition: pg_dump.h:157
char * acl
Definition: pg_dump.h:156
char * initprivs
Definition: pg_dump.h:160
DumpableAcl dacl
Definition: pg_dump.h:167
DumpableObject dobj
Definition: pg_dump.h:166
DumpComponents dump
Definition: pg_dump.h:139
char * name
Definition: pg_dump.h:138
DumpId * dependencies
Definition: pg_dump.h:145
DumpId dumpId
Definition: pg_dump.h:137
bool ext_member
Definition: pg_dump.h:143
DumpComponents components
Definition: pg_dump.h:142
DumpableObjectType objType
Definition: pg_dump.h:135
CatalogId catId
Definition: pg_dump.h:136
DumpComponents dump_contains
Definition: pg_dump.h:141
bool depends_on_ext
Definition: pg_dump.h:144
char * evtevent
Definition: pg_dump.h:456
char * evtfname
Definition: pg_dump.h:459
char evtenabled
Definition: pg_dump.h:460
char * evtname
Definition: pg_dump.h:455
const char * evtowner
Definition: pg_dump.h:457
char * evttags
Definition: pg_dump.h:458
DumpableObject dobj
Definition: pg_dump.h:454
bool relocatable
Definition: pg_dump.h:182
char * extversion
Definition: pg_dump.h:184
DumpableObject dobj
Definition: pg_dump.h:181
char * extcondition
Definition: pg_dump.h:186
char * extconfig
Definition: pg_dump.h:185
char * fdwhandler
Definition: pg_dump.h:561
const char * rolname
Definition: pg_dump.h:560
char * fdwvalidator
Definition: pg_dump.h:562
char * fdwoptions
Definition: pg_dump.h:563
DumpableAcl dacl
Definition: pg_dump.h:559
DumpableObject dobj
Definition: pg_dump.h:558
DumpableAcl dacl
Definition: pg_dump.h:569
char * srvoptions
Definition: pg_dump.h:574
DumpableObject dobj
Definition: pg_dump.h:568
const char * rolname
Definition: pg_dump.h:570
char * srvversion
Definition: pg_dump.h:573
bool postponed_def
Definition: pg_dump.h:231
Oid lang
Definition: pg_dump.h:227
const char * rolname
Definition: pg_dump.h:226
Oid * argtypes
Definition: pg_dump.h:229
Oid prorettype
Definition: pg_dump.h:230
DumpableObject dobj
Definition: pg_dump.h:224
int nargs
Definition: pg_dump.h:228
DumpableAcl dacl
Definition: pg_dump.h:225
IndxInfo * partitionIdx
Definition: pg_dump.h:421
DumpableObject dobj
Definition: pg_dump.h:419
IndxInfo * parentIdx
Definition: pg_dump.h:420
bool indisreplident
Definition: pg_dump.h:408
int indnkeyattrs
Definition: pg_dump.h:403
char * indstatvals
Definition: pg_dump.h:402
char * indstatcols
Definition: pg_dump.h:401
int indnattrs
Definition: pg_dump.h:404
TableInfo * indextable
Definition: pg_dump.h:397
Oid parentidx
Definition: pg_dump.h:410
Oid * indkeys
Definition: pg_dump.h:405
char * indreloptions
Definition: pg_dump.h:400
DumpId indexconstraint
Definition: pg_dump.h:414
bool indisclustered
Definition: pg_dump.h:407
SimplePtrList partattaches
Definition: pg_dump.h:411
char * tablespace
Definition: pg_dump.h:399
bool indnullsnotdistinct
Definition: pg_dump.h:409
char * indexdef
Definition: pg_dump.h:398
DumpableObject dobj
Definition: pg_dump.h:396
Oid inhparent
Definition: pg_dump.h:521
Oid inhrelid
Definition: pg_dump.h:520
const char * rolname
Definition: pg_dump.h:597
DumpableObject dobj
Definition: pg_dump.h:595
DumpableAcl dacl
Definition: pg_dump.h:596
Oid looids[FLEXIBLE_ARRAY_MEMBER]
Definition: pg_dump.h:599
int numlos
Definition: pg_dump.h:598
DumpableObject dobj
Definition: pg_dump.h:172
DumpableAcl dacl
Definition: pg_dump.h:173
const char * rolname
Definition: pg_dump.h:176
DumpableObject dobj
Definition: pg_dump.h:258
const char * rolname
Definition: pg_dump.h:259
const char * rolname
Definition: pg_dump.h:265
DumpableObject dobj
Definition: pg_dump.h:264
DumpableObject dobj
Definition: pg_dump.h:243
char oprkind
Definition: pg_dump.h:245
Oid oprcode
Definition: pg_dump.h:246
const char * rolname
Definition: pg_dump.h:244
TableInfo * poltable
Definition: pg_dump.h:611
char * polqual
Definition: pg_dump.h:616
char polcmd
Definition: pg_dump.h:613
char * polroles
Definition: pg_dump.h:615
char * polwithcheck
Definition: pg_dump.h:617
DumpableObject dobj
Definition: pg_dump.h:610
bool polpermissive
Definition: pg_dump.h:614
char * polname
Definition: pg_dump.h:612
Oid lanvalidator
Definition: pg_dump.h:494
DumpableAcl dacl
Definition: pg_dump.h:490
DumpableObject dobj
Definition: pg_dump.h:489
Oid laninline
Definition: pg_dump.h:493
const char * lanowner
Definition: pg_dump.h:495
Oid lanplcallfoid
Definition: pg_dump.h:492
bool lanpltrusted
Definition: pg_dump.h:491
DumpableObject dobj
Definition: pg_dump.h:526
Oid prstoken
Definition: pg_dump.h:528
Oid prslextype
Definition: pg_dump.h:531
Oid prsheadline
Definition: pg_dump.h:530
Oid prsstart
Definition: pg_dump.h:527
Oid prsend
Definition: pg_dump.h:529
DumpableObject dobj
Definition: pg_dump.h:434
bool separate
Definition: pg_dump.h:439
char ev_enabled
Definition: pg_dump.h:438
bool is_instead
Definition: pg_dump.h:437
TableInfo * ruletable
Definition: pg_dump.h:435
char ev_type
Definition: pg_dump.h:436
TypeInfo * baseType
Definition: pg_dump.h:219
DumpableObject dobj
Definition: pg_dump.h:217
TableInfo * stattable
Definition: pg_dump.h:428
int stattarget
Definition: pg_dump.h:429
const char * rolname
Definition: pg_dump.h:427
DumpableObject dobj
Definition: pg_dump.h:426
TableInfo * partitionTbl
Definition: pg_dump.h:375
DumpableObject dobj
Definition: pg_dump.h:373
TableInfo * parentTbl
Definition: pg_dump.h:374
TableInfo * tdtable
Definition: pg_dump.h:390
DumpableObject dobj
Definition: pg_dump.h:389
char * filtercond
Definition: pg_dump.h:391
char * attidentity
Definition: pg_dump.h:339
char * reltablespace
Definition: pg_dump.h:292
char ** notnull_constrs
Definition: pg_dump.h:349
int ncheck
Definition: pg_dump.h:308
bool ispartition
Definition: pg_dump.h:322
struct _indxInfo * indexes
Definition: pg_dump.h:365
bool * attislocal
Definition: pg_dump.h:343
DumpableObject dobj
Definition: pg_dump.h:285
bool is_identity_sequence
Definition: pg_dump.h:315
Oid reloftype
Definition: pg_dump.h:310
int numParents
Definition: pg_dump.h:325
bool interesting
Definition: pg_dump.h:319
char * toast_reloptions
Definition: pg_dump.h:295
struct _tableInfo ** parents
Definition: pg_dump.h:326
DumpableAcl dacl
Definition: pg_dump.h:286
bool relispopulated
Definition: pg_dump.h:290
char * attgenerated
Definition: pg_dump.h:340
int * attlen
Definition: pg_dump.h:341
Oid reltype
Definition: pg_dump.h:309
char ** attfdwoptions
Definition: pg_dump.h:347
bool hasoids
Definition: pg_dump.h:302
Oid toast_oid
Definition: pg_dump.h:305
Oid foreign_server
Definition: pg_dump.h:311
bool hasrules
Definition: pg_dump.h:297
struct _triggerInfo * triggers
Definition: pg_dump.h:368
bool * attisdropped
Definition: pg_dump.h:338
bool needs_override
Definition: pg_dump.h:358
struct _constraintInfo * checkexprs
Definition: pg_dump.h:357
int * attstattarget
Definition: pg_dump.h:335
uint32 frozenxid
Definition: pg_dump.h:303
char * typstorage
Definition: pg_dump.h:337
int owning_col
Definition: pg_dump.h:314
char * checkoption
Definition: pg_dump.h:294
int numatts
Definition: pg_dump.h:332
bool hastriggers
Definition: pg_dump.h:298
const char * rolname
Definition: pg_dump.h:287
struct _attrDefInfo ** attrdefs
Definition: pg_dump.h:356
char ** attoptions
Definition: pg_dump.h:344
bool * notnull_throwaway
Definition: pg_dump.h:354
char relreplident
Definition: pg_dump.h:291
int numTriggers
Definition: pg_dump.h:367
uint32 minmxid
Definition: pg_dump.h:304
Oid * attcollation
Definition: pg_dump.h:345
bool * notnull_noinh
Definition: pg_dump.h:353
char * attstorage
Definition: pg_dump.h:336
int toastpages
Definition: pg_dump.h:317
Oid owning_tab
Definition: pg_dump.h:313
struct _tableDataInfo * dataObj
Definition: pg_dump.h:366
char * amname
Definition: pg_dump.h:359
bool dummy_view
Definition: pg_dump.h:320
bool forcerowsec
Definition: pg_dump.h:301
bool hascolumnACLs
Definition: pg_dump.h:299
char ** atttypnames
Definition: pg_dump.h:334
char ** attmissingval
Definition: pg_dump.h:348
char relpersistence
Definition: pg_dump.h:289
char ** attnames
Definition: pg_dump.h:333
char relkind
Definition: pg_dump.h:288
bool hasindex
Definition: pg_dump.h:296
bool unsafe_partitions
Definition: pg_dump.h:323
char * reloptions
Definition: pg_dump.h:293
int numIndexes
Definition: pg_dump.h:364
int relpages
Definition: pg_dump.h:316
uint32 toast_frozenxid
Definition: pg_dump.h:306
uint32 toast_minmxid
Definition: pg_dump.h:307
char * attalign
Definition: pg_dump.h:342
char * attcompression
Definition: pg_dump.h:346
bool postponed_def
Definition: pg_dump.h:321
bool * notnull_inh
Definition: pg_dump.h:355
bool rowsec
Definition: pg_dump.h:300
Oid tmpllexize
Definition: pg_dump.h:546
Oid tmplinit
Definition: pg_dump.h:545
DumpableObject dobj
Definition: pg_dump.h:544
DumpableObject dobj
Definition: pg_dump.h:510
Oid trffromsql
Definition: pg_dump.h:513
TableInfo * tgtable
Definition: pg_dump.h:446
DumpableObject dobj
Definition: pg_dump.h:445
char tgenabled
Definition: pg_dump.h:447
char * tgdef
Definition: pg_dump.h:449
bool tgispartition
Definition: pg_dump.h:448
bool isMultirange
Definition: pg_dump.h:206
struct _constraintInfo * domChecks
Definition: pg_dump.h:212
DumpableAcl dacl
Definition: pg_dump.h:192
DumpableObject dobj
Definition: pg_dump.h:191
bool isDefined
Definition: pg_dump.h:207
char * ftypname
Definition: pg_dump.h:199
char typrelkind
Definition: pg_dump.h:203
Oid typelem
Definition: pg_dump.h:201
struct _shellTypeInfo * shellType
Definition: pg_dump.h:209
int nDomChecks
Definition: pg_dump.h:211
char typtype
Definition: pg_dump.h:204
const char * rolname
Definition: pg_dump.h:200
Oid typrelid
Definition: pg_dump.h:202
bool isArray
Definition: pg_dump.h:205