mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
This commit is contained in:
@@ -22,14 +22,14 @@
|
||||
extern ObjectAddress ExecRenameStmt(RenameStmt *stmt);
|
||||
|
||||
extern ObjectAddress ExecAlterObjectDependsStmt(AlterObjectDependsStmt *stmt,
|
||||
ObjectAddress *refAddress);
|
||||
ObjectAddress *refAddress);
|
||||
extern ObjectAddress ExecAlterObjectSchemaStmt(AlterObjectSchemaStmt *stmt,
|
||||
ObjectAddress *oldSchemaAddr);
|
||||
extern Oid AlterObjectNamespace_oid(Oid classId, Oid objid, Oid nspOid,
|
||||
ObjectAddresses *objsMoved);
|
||||
ObjectAddress *oldSchemaAddr);
|
||||
extern Oid AlterObjectNamespace_oid(Oid classId, Oid objid, Oid nspOid,
|
||||
ObjectAddresses *objsMoved);
|
||||
|
||||
extern ObjectAddress ExecAlterOwnerStmt(AlterOwnerStmt *stmt);
|
||||
extern void AlterObjectOwner_internal(Relation catalog, Oid objectId,
|
||||
Oid new_ownerId);
|
||||
Oid new_ownerId);
|
||||
|
||||
#endif /* ALTER_H */
|
||||
|
@@ -29,8 +29,8 @@ extern Size AsyncShmemSize(void);
|
||||
extern void AsyncShmemInit(void);
|
||||
|
||||
extern void NotifyMyFrontEnd(const char *channel,
|
||||
const char *payload,
|
||||
int32 srcPid);
|
||||
const char *payload,
|
||||
int32 srcPid);
|
||||
|
||||
/* notify-related SQL statements */
|
||||
extern void Async_Notify(const char *channel, const char *payload);
|
||||
|
@@ -21,18 +21,18 @@
|
||||
extern void cluster(ClusterStmt *stmt, bool isTopLevel);
|
||||
extern void cluster_rel(Oid tableOid, Oid indexOid, int options);
|
||||
extern void check_index_is_clusterable(Relation OldHeap, Oid indexOid,
|
||||
bool recheck, LOCKMODE lockmode);
|
||||
bool recheck, LOCKMODE lockmode);
|
||||
extern void mark_index_clustered(Relation rel, Oid indexOid, bool is_internal);
|
||||
|
||||
extern Oid make_new_heap(Oid OIDOldHeap, Oid NewTableSpace, char relpersistence,
|
||||
LOCKMODE lockmode);
|
||||
extern Oid make_new_heap(Oid OIDOldHeap, Oid NewTableSpace, char relpersistence,
|
||||
LOCKMODE lockmode);
|
||||
extern void finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap,
|
||||
bool is_system_catalog,
|
||||
bool swap_toast_by_content,
|
||||
bool check_constraints,
|
||||
bool is_internal,
|
||||
TransactionId frozenXid,
|
||||
MultiXactId minMulti,
|
||||
char newrelpersistence);
|
||||
bool is_system_catalog,
|
||||
bool swap_toast_by_content,
|
||||
bool check_constraints,
|
||||
bool is_internal,
|
||||
TransactionId frozenXid,
|
||||
MultiXactId minMulti,
|
||||
char newrelpersistence);
|
||||
|
||||
#endif /* CLUSTER_H */
|
||||
|
@@ -24,17 +24,17 @@ typedef struct CopyStateData *CopyState;
|
||||
typedef int (*copy_data_source_cb) (void *outbuf, int minread, int maxread);
|
||||
|
||||
extern void DoCopy(ParseState *state, const CopyStmt *stmt,
|
||||
int stmt_location, int stmt_len,
|
||||
uint64 *processed);
|
||||
int stmt_location, int stmt_len,
|
||||
uint64 *processed);
|
||||
|
||||
extern void ProcessCopyOptions(ParseState *pstate, CopyState cstate, bool is_from, List *options);
|
||||
extern CopyState BeginCopyFrom(ParseState *pstate, Relation rel, const char *filename,
|
||||
bool is_program, copy_data_source_cb data_source_cb, List *attnamelist, List *options);
|
||||
bool is_program, copy_data_source_cb data_source_cb, List *attnamelist, List *options);
|
||||
extern void EndCopyFrom(CopyState cstate);
|
||||
extern bool NextCopyFrom(CopyState cstate, ExprContext *econtext,
|
||||
Datum *values, bool *nulls);
|
||||
Datum *values, bool *nulls);
|
||||
extern bool NextCopyFromRawFields(CopyState cstate,
|
||||
char ***fields, int *nfields);
|
||||
char ***fields, int *nfields);
|
||||
extern void CopyFromErrorCallback(void *arg);
|
||||
|
||||
extern uint64 CopyFrom(CopyState cstate);
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
extern ObjectAddress ExecCreateTableAs(CreateTableAsStmt *stmt, const char *queryString,
|
||||
ParamListInfo params, QueryEnvironment *queryEnv, char *completionTag);
|
||||
ParamListInfo params, QueryEnvironment *queryEnv, char *completionTag);
|
||||
|
||||
extern int GetIntoRelEFlags(IntoClause *intoClause);
|
||||
|
||||
|
@@ -25,31 +25,31 @@ extern void RemoveObjects(DropStmt *stmt);
|
||||
|
||||
/* commands/indexcmds.c */
|
||||
extern ObjectAddress DefineIndex(Oid relationId,
|
||||
IndexStmt *stmt,
|
||||
Oid indexRelationId,
|
||||
Oid parentIndexId,
|
||||
Oid parentConstraintId,
|
||||
bool is_alter_table,
|
||||
bool check_rights,
|
||||
bool check_not_in_use,
|
||||
bool skip_build,
|
||||
bool quiet);
|
||||
IndexStmt *stmt,
|
||||
Oid indexRelationId,
|
||||
Oid parentIndexId,
|
||||
Oid parentConstraintId,
|
||||
bool is_alter_table,
|
||||
bool check_rights,
|
||||
bool check_not_in_use,
|
||||
bool skip_build,
|
||||
bool quiet);
|
||||
extern void ReindexIndex(RangeVar *indexRelation, int options, bool concurrent);
|
||||
extern Oid ReindexTable(RangeVar *relation, int options, bool concurrent);
|
||||
extern void ReindexMultipleTables(const char *objectName, ReindexObjectType objectKind,
|
||||
int options, bool concurrent);
|
||||
int options, bool concurrent);
|
||||
extern char *makeObjectName(const char *name1, const char *name2,
|
||||
const char *label);
|
||||
const char *label);
|
||||
extern char *ChooseRelationName(const char *name1, const char *name2,
|
||||
const char *label, Oid namespaceid,
|
||||
bool isconstraint);
|
||||
const char *label, Oid namespaceid,
|
||||
bool isconstraint);
|
||||
extern bool CheckIndexCompatible(Oid oldId,
|
||||
const char *accessMethodName,
|
||||
List *attributeList,
|
||||
List *exclusionOpNames);
|
||||
const char *accessMethodName,
|
||||
List *attributeList,
|
||||
List *exclusionOpNames);
|
||||
extern Oid GetDefaultOpClass(Oid type_id, Oid am_id);
|
||||
extern Oid ResolveOpClass(List *opclass, Oid attrType,
|
||||
const char *accessMethodName, Oid accessMethodId);
|
||||
extern Oid ResolveOpClass(List *opclass, Oid attrType,
|
||||
const char *accessMethodName, Oid accessMethodId);
|
||||
|
||||
/* commands/functioncmds.c */
|
||||
extern ObjectAddress CreateFunction(ParseState *pstate, CreateFunctionStmt *stmt);
|
||||
@@ -62,23 +62,23 @@ extern void DropCastById(Oid castOid);
|
||||
extern ObjectAddress CreateTransform(CreateTransformStmt *stmt);
|
||||
extern void DropTransformById(Oid transformOid);
|
||||
extern void IsThereFunctionInNamespace(const char *proname, int pronargs,
|
||||
oidvector *proargtypes, Oid nspOid);
|
||||
oidvector *proargtypes, Oid nspOid);
|
||||
extern void ExecuteDoStmt(DoStmt *stmt, bool atomic);
|
||||
extern void ExecuteCallStmt(CallStmt *stmt, ParamListInfo params, bool atomic, DestReceiver *dest);
|
||||
extern TupleDesc CallStmtResultDesc(CallStmt *stmt);
|
||||
extern Oid get_cast_oid(Oid sourcetypeid, Oid targettypeid, bool missing_ok);
|
||||
extern Oid get_transform_oid(Oid type_id, Oid lang_id, bool missing_ok);
|
||||
extern void interpret_function_parameter_list(ParseState *pstate,
|
||||
List *parameters,
|
||||
Oid languageOid,
|
||||
ObjectType objtype,
|
||||
oidvector **parameterTypes,
|
||||
ArrayType **allParameterTypes,
|
||||
ArrayType **parameterModes,
|
||||
ArrayType **parameterNames,
|
||||
List **parameterDefaults,
|
||||
Oid *variadicArgType,
|
||||
Oid *requiredResultType);
|
||||
List *parameters,
|
||||
Oid languageOid,
|
||||
ObjectType objtype,
|
||||
oidvector **parameterTypes,
|
||||
ArrayType **allParameterTypes,
|
||||
ArrayType **parameterModes,
|
||||
ArrayType **parameterNames,
|
||||
List **parameterDefaults,
|
||||
Oid *variadicArgType,
|
||||
Oid *requiredResultType);
|
||||
|
||||
/* commands/operatorcmds.c */
|
||||
extern ObjectAddress DefineOperator(List *names, List *parameters);
|
||||
@@ -89,12 +89,12 @@ extern ObjectAddress AlterOperator(AlterOperatorStmt *stmt);
|
||||
extern ObjectAddress CreateStatistics(CreateStatsStmt *stmt);
|
||||
extern void RemoveStatisticsById(Oid statsOid);
|
||||
extern void UpdateStatisticsForTypeChange(Oid statsOid,
|
||||
Oid relationOid, int attnum,
|
||||
Oid oldColumnType, Oid newColumnType);
|
||||
Oid relationOid, int attnum,
|
||||
Oid oldColumnType, Oid newColumnType);
|
||||
|
||||
/* commands/aggregatecmds.c */
|
||||
extern ObjectAddress DefineAggregate(ParseState *pstate, List *name, List *args, bool oldstyle,
|
||||
List *parameters, bool replace);
|
||||
List *parameters, bool replace);
|
||||
|
||||
/* commands/opclasscmds.c */
|
||||
extern ObjectAddress DefineOpClass(CreateOpClassStmt *stmt);
|
||||
@@ -105,9 +105,9 @@ extern void RemoveOpFamilyById(Oid opfamilyOid);
|
||||
extern void RemoveAmOpEntryById(Oid entryOid);
|
||||
extern void RemoveAmProcEntryById(Oid entryOid);
|
||||
extern void IsThereOpClassInNamespace(const char *opcname, Oid opcmethod,
|
||||
Oid opcnamespace);
|
||||
Oid opcnamespace);
|
||||
extern void IsThereOpFamilyInNamespace(const char *opfname, Oid opfmethod,
|
||||
Oid opfnamespace);
|
||||
Oid opfnamespace);
|
||||
extern Oid get_opclass_oid(Oid amID, List *opclassname, bool missing_ok);
|
||||
extern Oid get_opfamily_oid(Oid amID, List *opfamilyname, bool missing_ok);
|
||||
|
||||
@@ -123,7 +123,7 @@ extern ObjectAddress DefineTSTemplate(List *names, List *parameters);
|
||||
extern void RemoveTSTemplateById(Oid tmplId);
|
||||
|
||||
extern ObjectAddress DefineTSConfiguration(List *names, List *parameters,
|
||||
ObjectAddress *copied);
|
||||
ObjectAddress *copied);
|
||||
extern void RemoveTSConfigurationById(Oid cfgId);
|
||||
extern ObjectAddress AlterTSConfiguration(AlterTSConfigurationStmt *stmt);
|
||||
|
||||
@@ -148,9 +148,9 @@ extern void RemoveUserMappingById(Oid umId);
|
||||
extern void CreateForeignTable(CreateForeignTableStmt *stmt, Oid relid);
|
||||
extern void ImportForeignSchema(ImportForeignSchemaStmt *stmt);
|
||||
extern Datum transformGenericOptions(Oid catalogId,
|
||||
Datum oldOptions,
|
||||
List *options,
|
||||
Oid fdwvalidator);
|
||||
Datum oldOptions,
|
||||
List *options,
|
||||
Oid fdwvalidator);
|
||||
|
||||
/* commands/amcmds.c */
|
||||
extern ObjectAddress CreateAccessMethod(CreateAmStmt *stmt);
|
||||
|
@@ -58,30 +58,30 @@ extern bool EventTriggerBeginCompleteQuery(void);
|
||||
extern void EventTriggerEndCompleteQuery(void);
|
||||
extern bool trackDroppedObjectsNeeded(void);
|
||||
extern void EventTriggerSQLDropAddObject(const ObjectAddress *object,
|
||||
bool original, bool normal);
|
||||
bool original, bool normal);
|
||||
|
||||
extern void EventTriggerInhibitCommandCollection(void);
|
||||
extern void EventTriggerUndoInhibitCommandCollection(void);
|
||||
|
||||
extern void EventTriggerCollectSimpleCommand(ObjectAddress address,
|
||||
ObjectAddress secondaryObject,
|
||||
Node *parsetree);
|
||||
ObjectAddress secondaryObject,
|
||||
Node *parsetree);
|
||||
|
||||
extern void EventTriggerAlterTableStart(Node *parsetree);
|
||||
extern void EventTriggerAlterTableRelid(Oid objectId);
|
||||
extern void EventTriggerCollectAlterTableSubcmd(Node *subcmd,
|
||||
ObjectAddress address);
|
||||
ObjectAddress address);
|
||||
extern void EventTriggerAlterTableEnd(void);
|
||||
|
||||
extern void EventTriggerCollectGrant(InternalGrant *istmt);
|
||||
extern void EventTriggerCollectAlterOpFam(AlterOpFamilyStmt *stmt,
|
||||
Oid opfamoid, List *operators,
|
||||
List *procedures);
|
||||
Oid opfamoid, List *operators,
|
||||
List *procedures);
|
||||
extern void EventTriggerCollectCreateOpClass(CreateOpClassStmt *stmt,
|
||||
Oid opcoid, List *operators,
|
||||
List *procedures);
|
||||
Oid opcoid, List *operators,
|
||||
List *procedures);
|
||||
extern void EventTriggerCollectAlterTSConfig(AlterTSConfigurationStmt *stmt,
|
||||
Oid cfgId, Oid *dictIds, int ndicts);
|
||||
Oid cfgId, Oid *dictIds, int ndicts);
|
||||
extern void EventTriggerCollectAlterDefPrivs(AlterDefaultPrivilegesStmt *stmt);
|
||||
|
||||
#endif /* EVENT_TRIGGER_H */
|
||||
|
@@ -64,27 +64,27 @@ extern PGDLLIMPORT explain_get_index_name_hook_type explain_get_index_name_hook;
|
||||
|
||||
|
||||
extern void ExplainQuery(ParseState *pstate, ExplainStmt *stmt, const char *queryString,
|
||||
ParamListInfo params, QueryEnvironment *queryEnv, DestReceiver *dest);
|
||||
ParamListInfo params, QueryEnvironment *queryEnv, DestReceiver *dest);
|
||||
|
||||
extern ExplainState *NewExplainState(void);
|
||||
|
||||
extern TupleDesc ExplainResultDesc(ExplainStmt *stmt);
|
||||
|
||||
extern void ExplainOneUtility(Node *utilityStmt, IntoClause *into,
|
||||
ExplainState *es, const char *queryString,
|
||||
ParamListInfo params, QueryEnvironment *queryEnv);
|
||||
ExplainState *es, const char *queryString,
|
||||
ParamListInfo params, QueryEnvironment *queryEnv);
|
||||
|
||||
extern void ExplainOnePlan(PlannedStmt *plannedstmt, IntoClause *into,
|
||||
ExplainState *es, const char *queryString,
|
||||
ParamListInfo params, QueryEnvironment *queryEnv,
|
||||
const instr_time *planduration);
|
||||
ExplainState *es, const char *queryString,
|
||||
ParamListInfo params, QueryEnvironment *queryEnv,
|
||||
const instr_time *planduration);
|
||||
|
||||
extern void ExplainPrintPlan(ExplainState *es, QueryDesc *queryDesc);
|
||||
extern void ExplainPrintTriggers(ExplainState *es, QueryDesc *queryDesc);
|
||||
|
||||
extern void ExplainPrintJITSummary(ExplainState *es, QueryDesc *queryDesc);
|
||||
extern void ExplainPrintJIT(ExplainState *es, int jit_flags,
|
||||
struct JitInstrumentation *jit_instr, int worker_i);
|
||||
struct JitInstrumentation *jit_instr, int worker_i);
|
||||
|
||||
extern void ExplainQueryText(ExplainState *es, QueryDesc *queryDesc);
|
||||
|
||||
@@ -93,21 +93,21 @@ extern void ExplainEndOutput(ExplainState *es);
|
||||
extern void ExplainSeparatePlans(ExplainState *es);
|
||||
|
||||
extern void ExplainPropertyList(const char *qlabel, List *data,
|
||||
ExplainState *es);
|
||||
ExplainState *es);
|
||||
extern void ExplainPropertyListNested(const char *qlabel, List *data,
|
||||
ExplainState *es);
|
||||
ExplainState *es);
|
||||
extern void ExplainPropertyText(const char *qlabel, const char *value,
|
||||
ExplainState *es);
|
||||
ExplainState *es);
|
||||
extern void ExplainPropertyInteger(const char *qlabel, const char *unit,
|
||||
int64 value, ExplainState *es);
|
||||
int64 value, ExplainState *es);
|
||||
extern void ExplainPropertyFloat(const char *qlabel, const char *unit,
|
||||
double value, int ndigits, ExplainState *es);
|
||||
double value, int ndigits, ExplainState *es);
|
||||
extern void ExplainPropertyBool(const char *qlabel, bool value,
|
||||
ExplainState *es);
|
||||
ExplainState *es);
|
||||
|
||||
extern void ExplainOpenGroup(const char *objtype, const char *labelname,
|
||||
bool labeled, ExplainState *es);
|
||||
bool labeled, ExplainState *es);
|
||||
extern void ExplainCloseGroup(const char *objtype, const char *labelname,
|
||||
bool labeled, ExplainState *es);
|
||||
bool labeled, ExplainState *es);
|
||||
|
||||
#endif /* EXPLAIN_H */
|
||||
|
@@ -36,20 +36,20 @@ extern ObjectAddress CreateExtension(ParseState *pstate, CreateExtensionStmt *st
|
||||
extern void RemoveExtensionById(Oid extId);
|
||||
|
||||
extern ObjectAddress InsertExtensionTuple(const char *extName, Oid extOwner,
|
||||
Oid schemaOid, bool relocatable, const char *extVersion,
|
||||
Datum extConfig, Datum extCondition,
|
||||
List *requiredExtensions);
|
||||
Oid schemaOid, bool relocatable, const char *extVersion,
|
||||
Datum extConfig, Datum extCondition,
|
||||
List *requiredExtensions);
|
||||
|
||||
extern ObjectAddress ExecAlterExtensionStmt(ParseState *pstate, AlterExtensionStmt *stmt);
|
||||
|
||||
extern ObjectAddress ExecAlterExtensionContentsStmt(AlterExtensionContentsStmt *stmt,
|
||||
ObjectAddress *objAddress);
|
||||
ObjectAddress *objAddress);
|
||||
|
||||
extern Oid get_extension_oid(const char *extname, bool missing_ok);
|
||||
extern char *get_extension_name(Oid ext_oid);
|
||||
|
||||
extern ObjectAddress AlterExtensionNamespace(const char *extensionName, const char *newschema,
|
||||
Oid *oldschema);
|
||||
Oid *oldschema);
|
||||
|
||||
extern void AlterExtensionOwner_oid(Oid extensionOid, Oid newOwnerId);
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
extern void SetMatViewPopulatedState(Relation relation, bool newstate);
|
||||
|
||||
extern ObjectAddress ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
|
||||
ParamListInfo params, char *completionTag);
|
||||
ParamListInfo params, char *completionTag);
|
||||
|
||||
extern DestReceiver *CreateTransientRelDestReceiver(Oid oid);
|
||||
|
||||
|
@@ -28,8 +28,8 @@ extern bool RemoveRoleFromObjectPolicy(Oid roleid, Oid classid, Oid objid);
|
||||
extern ObjectAddress CreatePolicy(CreatePolicyStmt *stmt);
|
||||
extern ObjectAddress AlterPolicy(AlterPolicyStmt *stmt);
|
||||
|
||||
extern Oid get_relation_policy_oid(Oid relid, const char *policy_name,
|
||||
bool missing_ok);
|
||||
extern Oid get_relation_policy_oid(Oid relid, const char *policy_name,
|
||||
bool missing_ok);
|
||||
|
||||
extern ObjectAddress rename_policy(RenameStmt *stmt);
|
||||
|
||||
|
@@ -19,10 +19,10 @@
|
||||
|
||||
|
||||
extern void PerformCursorOpen(DeclareCursorStmt *cstmt, ParamListInfo params,
|
||||
const char *queryString, bool isTopLevel);
|
||||
const char *queryString, bool isTopLevel);
|
||||
|
||||
extern void PerformPortalFetch(FetchStmt *stmt, DestReceiver *dest,
|
||||
char *completionTag);
|
||||
char *completionTag);
|
||||
|
||||
extern void PerformPortalClose(const char *name);
|
||||
|
||||
|
@@ -36,21 +36,21 @@ typedef struct
|
||||
|
||||
/* Utility statements PREPARE, EXECUTE, DEALLOCATE, EXPLAIN EXECUTE */
|
||||
extern void PrepareQuery(PrepareStmt *stmt, const char *queryString,
|
||||
int stmt_location, int stmt_len);
|
||||
int stmt_location, int stmt_len);
|
||||
extern void ExecuteQuery(ExecuteStmt *stmt, IntoClause *intoClause,
|
||||
const char *queryString, ParamListInfo params,
|
||||
DestReceiver *dest, char *completionTag);
|
||||
const char *queryString, ParamListInfo params,
|
||||
DestReceiver *dest, char *completionTag);
|
||||
extern void DeallocateQuery(DeallocateStmt *stmt);
|
||||
extern void ExplainExecuteQuery(ExecuteStmt *execstmt, IntoClause *into,
|
||||
ExplainState *es, const char *queryString,
|
||||
ParamListInfo params, QueryEnvironment *queryEnv);
|
||||
ExplainState *es, const char *queryString,
|
||||
ParamListInfo params, QueryEnvironment *queryEnv);
|
||||
|
||||
/* Low-level access to stored prepared statements */
|
||||
extern void StorePreparedStatement(const char *stmt_name,
|
||||
CachedPlanSource *plansource,
|
||||
bool from_sql);
|
||||
CachedPlanSource *plansource,
|
||||
bool from_sql);
|
||||
extern PreparedStatement *FetchPreparedStatement(const char *stmt_name,
|
||||
bool throwError);
|
||||
bool throwError);
|
||||
extern void DropPreparedStatement(const char *stmt_name, bool showError);
|
||||
extern TupleDesc FetchPreparedStatementResultDesc(PreparedStatement *stmt);
|
||||
extern List *FetchPreparedStatementTargetList(PreparedStatement *stmt);
|
||||
|
@@ -18,9 +18,9 @@
|
||||
#include "catalog/objectaddress.h"
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
extern Oid CreateSchemaCommand(CreateSchemaStmt *parsetree,
|
||||
const char *queryString,
|
||||
int stmt_location, int stmt_len);
|
||||
extern Oid CreateSchemaCommand(CreateSchemaStmt *parsetree,
|
||||
const char *queryString,
|
||||
int stmt_location, int stmt_len);
|
||||
|
||||
extern void RemoveSchemaById(Oid schemaOid);
|
||||
|
||||
|
@@ -15,9 +15,9 @@
|
||||
* Internal APIs
|
||||
*/
|
||||
extern char *GetSecurityLabel(const ObjectAddress *object,
|
||||
const char *provider);
|
||||
const char *provider);
|
||||
extern void SetSecurityLabel(const ObjectAddress *object,
|
||||
const char *provider, const char *label);
|
||||
const char *provider, const char *label);
|
||||
extern void DeleteSecurityLabel(const ObjectAddress *object);
|
||||
extern void DeleteSharedSecurityLabel(Oid objectId, Oid classId);
|
||||
|
||||
@@ -29,6 +29,6 @@ extern ObjectAddress ExecSecLabelStmt(SecLabelStmt *stmt);
|
||||
typedef void (*check_object_relabel_type) (const ObjectAddress *object,
|
||||
const char *seclabel);
|
||||
extern void register_label_provider(const char *provider,
|
||||
check_object_relabel_type hook);
|
||||
check_object_relabel_type hook);
|
||||
|
||||
#endif /* SECLABEL_H */
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
extern ObjectAddress CreateSubscription(CreateSubscriptionStmt *stmt,
|
||||
bool isTopLevel);
|
||||
bool isTopLevel);
|
||||
extern ObjectAddress AlterSubscription(AlterSubscriptionStmt *stmt);
|
||||
extern void DropSubscription(DropSubscriptionStmt *stmt, bool isTopLevel);
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
extern ObjectAddress DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
|
||||
ObjectAddress *typaddress, const char *queryString);
|
||||
ObjectAddress *typaddress, const char *queryString);
|
||||
|
||||
extern void RemoveRelations(DropStmt *drop);
|
||||
|
||||
@@ -40,21 +40,21 @@ extern void AlterTableInternal(Oid relid, List *cmds, bool recurse);
|
||||
extern Oid AlterTableMoveAll(AlterTableMoveAllStmt *stmt);
|
||||
|
||||
extern ObjectAddress AlterTableNamespace(AlterObjectSchemaStmt *stmt,
|
||||
Oid *oldschema);
|
||||
Oid *oldschema);
|
||||
|
||||
extern void AlterTableNamespaceInternal(Relation rel, Oid oldNspOid,
|
||||
Oid nspOid, ObjectAddresses *objsMoved);
|
||||
Oid nspOid, ObjectAddresses *objsMoved);
|
||||
|
||||
extern void AlterRelationNamespaceInternal(Relation classRel, Oid relOid,
|
||||
Oid oldNspOid, Oid newNspOid,
|
||||
bool hasDependEntry,
|
||||
ObjectAddresses *objsMoved);
|
||||
Oid oldNspOid, Oid newNspOid,
|
||||
bool hasDependEntry,
|
||||
ObjectAddresses *objsMoved);
|
||||
|
||||
extern void CheckTableNotInUse(Relation rel, const char *stmt);
|
||||
|
||||
extern void ExecuteTruncate(TruncateStmt *stmt);
|
||||
extern void ExecuteTruncateGuts(List *explicit_rels, List *relids, List *relids_logged,
|
||||
DropBehavior behavior, bool restart_seqs);
|
||||
DropBehavior behavior, bool restart_seqs);
|
||||
|
||||
extern void SetRelationHasSubclass(Oid relationId, bool relhassubclass);
|
||||
|
||||
@@ -67,12 +67,12 @@ extern ObjectAddress RenameConstraint(RenameStmt *stmt);
|
||||
extern ObjectAddress RenameRelation(RenameStmt *stmt);
|
||||
|
||||
extern void RenameRelationInternal(Oid myrelid,
|
||||
const char *newrelname, bool is_internal,
|
||||
bool is_index);
|
||||
const char *newrelname, bool is_internal,
|
||||
bool is_index);
|
||||
|
||||
extern void find_composite_type_dependencies(Oid typeOid,
|
||||
Relation origRelation,
|
||||
const char *origTypeName);
|
||||
Relation origRelation,
|
||||
const char *origTypeName);
|
||||
|
||||
extern void check_of_type(HeapTuple typetuple);
|
||||
|
||||
@@ -82,15 +82,15 @@ extern void remove_on_commit_action(Oid relid);
|
||||
extern void PreCommit_on_commit_actions(void);
|
||||
extern void AtEOXact_on_commit_actions(bool isCommit);
|
||||
extern void AtEOSubXact_on_commit_actions(bool isCommit,
|
||||
SubTransactionId mySubid,
|
||||
SubTransactionId parentSubid);
|
||||
SubTransactionId mySubid,
|
||||
SubTransactionId parentSubid);
|
||||
|
||||
extern void RangeVarCallbackOwnsTable(const RangeVar *relation,
|
||||
Oid relId, Oid oldRelId, void *arg);
|
||||
Oid relId, Oid oldRelId, void *arg);
|
||||
|
||||
extern void RangeVarCallbackOwnsRelation(const RangeVar *relation,
|
||||
Oid relId, Oid oldRelId, void *noCatalogs);
|
||||
Oid relId, Oid oldRelId, void *noCatalogs);
|
||||
extern bool PartConstraintImpliedByRelConstraint(Relation scanrel,
|
||||
List *partConstraint);
|
||||
List *partConstraint);
|
||||
|
||||
#endif /* TABLECMDS_H */
|
||||
|
@@ -158,9 +158,9 @@ extern PGDLLIMPORT int SessionReplicationRole;
|
||||
#define TRIGGER_DISABLED 'D'
|
||||
|
||||
extern ObjectAddress CreateTrigger(CreateTrigStmt *stmt, const char *queryString,
|
||||
Oid relOid, Oid refRelOid, Oid constraintOid, Oid indexOid,
|
||||
Oid funcoid, Oid parentTriggerOid, Node *whenClause,
|
||||
bool isInternal, bool in_partition);
|
||||
Oid relOid, Oid refRelOid, Oid constraintOid, Oid indexOid,
|
||||
Oid funcoid, Oid parentTriggerOid, Node *whenClause,
|
||||
bool isInternal, bool in_partition);
|
||||
|
||||
extern void RemoveTriggerById(Oid trigOid);
|
||||
extern Oid get_trigger_oid(Oid relid, const char *name, bool missing_ok);
|
||||
@@ -168,7 +168,7 @@ extern Oid get_trigger_oid(Oid relid, const char *name, bool missing_ok);
|
||||
extern ObjectAddress renametrig(RenameStmt *stmt);
|
||||
|
||||
extern void EnableDisableTrigger(Relation rel, const char *tgname,
|
||||
char fires_when, bool skip_system, LOCKMODE lockmode);
|
||||
char fires_when, bool skip_system, LOCKMODE lockmode);
|
||||
|
||||
extern void RelationBuildTriggers(Relation relation);
|
||||
|
||||
@@ -177,71 +177,71 @@ extern TriggerDesc *CopyTriggerDesc(TriggerDesc *trigdesc);
|
||||
extern const char *FindTriggerIncompatibleWithInheritance(TriggerDesc *trigdesc);
|
||||
|
||||
extern TransitionCaptureState *MakeTransitionCaptureState(TriggerDesc *trigdesc,
|
||||
Oid relid, CmdType cmdType);
|
||||
Oid relid, CmdType cmdType);
|
||||
|
||||
extern void FreeTriggerDesc(TriggerDesc *trigdesc);
|
||||
|
||||
extern void ExecBSInsertTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo);
|
||||
ResultRelInfo *relinfo);
|
||||
extern void ExecASInsertTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
TransitionCaptureState *transition_capture);
|
||||
ResultRelInfo *relinfo,
|
||||
TransitionCaptureState *transition_capture);
|
||||
extern bool ExecBRInsertTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
TupleTableSlot *slot);
|
||||
ResultRelInfo *relinfo,
|
||||
TupleTableSlot *slot);
|
||||
extern void ExecARInsertTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
TupleTableSlot *slot,
|
||||
List *recheckIndexes,
|
||||
TransitionCaptureState *transition_capture);
|
||||
ResultRelInfo *relinfo,
|
||||
TupleTableSlot *slot,
|
||||
List *recheckIndexes,
|
||||
TransitionCaptureState *transition_capture);
|
||||
extern bool ExecIRInsertTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
TupleTableSlot *slot);
|
||||
ResultRelInfo *relinfo,
|
||||
TupleTableSlot *slot);
|
||||
extern void ExecBSDeleteTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo);
|
||||
ResultRelInfo *relinfo);
|
||||
extern void ExecASDeleteTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
TransitionCaptureState *transition_capture);
|
||||
ResultRelInfo *relinfo,
|
||||
TransitionCaptureState *transition_capture);
|
||||
extern bool ExecBRDeleteTriggers(EState *estate,
|
||||
EPQState *epqstate,
|
||||
ResultRelInfo *relinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TupleTableSlot **epqslot);
|
||||
EPQState *epqstate,
|
||||
ResultRelInfo *relinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TupleTableSlot **epqslot);
|
||||
extern void ExecARDeleteTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TransitionCaptureState *transition_capture);
|
||||
ResultRelInfo *relinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TransitionCaptureState *transition_capture);
|
||||
extern bool ExecIRDeleteTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
HeapTuple trigtuple);
|
||||
ResultRelInfo *relinfo,
|
||||
HeapTuple trigtuple);
|
||||
extern void ExecBSUpdateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo);
|
||||
ResultRelInfo *relinfo);
|
||||
extern void ExecASUpdateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
TransitionCaptureState *transition_capture);
|
||||
ResultRelInfo *relinfo,
|
||||
TransitionCaptureState *transition_capture);
|
||||
extern bool ExecBRUpdateTriggers(EState *estate,
|
||||
EPQState *epqstate,
|
||||
ResultRelInfo *relinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TupleTableSlot *slot);
|
||||
EPQState *epqstate,
|
||||
ResultRelInfo *relinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TupleTableSlot *slot);
|
||||
extern void ExecARUpdateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TupleTableSlot *slot,
|
||||
List *recheckIndexes,
|
||||
TransitionCaptureState *transition_capture);
|
||||
ResultRelInfo *relinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TupleTableSlot *slot,
|
||||
List *recheckIndexes,
|
||||
TransitionCaptureState *transition_capture);
|
||||
extern bool ExecIRUpdateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
HeapTuple trigtuple,
|
||||
TupleTableSlot *slot);
|
||||
ResultRelInfo *relinfo,
|
||||
HeapTuple trigtuple,
|
||||
TupleTableSlot *slot);
|
||||
extern void ExecBSTruncateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo);
|
||||
ResultRelInfo *relinfo);
|
||||
extern void ExecASTruncateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo);
|
||||
ResultRelInfo *relinfo);
|
||||
|
||||
extern void AfterTriggerBeginXact(void);
|
||||
extern void AfterTriggerBeginQuery(void);
|
||||
@@ -258,13 +258,13 @@ extern bool AfterTriggerPendingOnRel(Oid relid);
|
||||
* in utils/adt/ri_triggers.c
|
||||
*/
|
||||
extern bool RI_FKey_pk_upd_check_required(Trigger *trigger, Relation pk_rel,
|
||||
TupleTableSlot *old_slot, TupleTableSlot *new_slot);
|
||||
TupleTableSlot *old_slot, TupleTableSlot *new_slot);
|
||||
extern bool RI_FKey_fk_upd_check_required(Trigger *trigger, Relation fk_rel,
|
||||
TupleTableSlot *old_slot, TupleTableSlot *new_slot);
|
||||
TupleTableSlot *old_slot, TupleTableSlot *new_slot);
|
||||
extern bool RI_Initial_Check(Trigger *trigger,
|
||||
Relation fk_rel, Relation pk_rel);
|
||||
Relation fk_rel, Relation pk_rel);
|
||||
extern void RI_PartitionRemove_Check(Trigger *trigger, Relation fk_rel,
|
||||
Relation pk_rel);
|
||||
Relation pk_rel);
|
||||
|
||||
/* result values for RI_FKey_trigger_type: */
|
||||
#define RI_TRIGGER_PK 1 /* is a trigger on the PK relation */
|
||||
|
@@ -33,10 +33,10 @@ extern Oid AssignTypeArrayOid(void);
|
||||
extern ObjectAddress AlterDomainDefault(List *names, Node *defaultRaw);
|
||||
extern ObjectAddress AlterDomainNotNull(List *names, bool notNull);
|
||||
extern ObjectAddress AlterDomainAddConstraint(List *names, Node *constr,
|
||||
ObjectAddress *constrAddr);
|
||||
ObjectAddress *constrAddr);
|
||||
extern ObjectAddress AlterDomainValidateConstraint(List *names, const char *constrName);
|
||||
extern ObjectAddress AlterDomainDropConstraint(List *names, const char *constrName,
|
||||
DropBehavior behavior, bool missing_ok);
|
||||
DropBehavior behavior, bool missing_ok);
|
||||
|
||||
extern void checkDomainOwner(HeapTuple tup);
|
||||
|
||||
@@ -47,11 +47,11 @@ extern void AlterTypeOwner_oid(Oid typeOid, Oid newOwnerId, bool hasDependEntry)
|
||||
extern void AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId);
|
||||
|
||||
extern ObjectAddress AlterTypeNamespace(List *names, const char *newschema,
|
||||
ObjectType objecttype, Oid *oldschema);
|
||||
ObjectType objecttype, Oid *oldschema);
|
||||
extern Oid AlterTypeNamespace_oid(Oid typeOid, Oid nspOid, ObjectAddresses *objsMoved);
|
||||
extern Oid AlterTypeNamespaceInternal(Oid typeOid, Oid nspOid,
|
||||
bool isImplicitArray,
|
||||
bool errorOnTableType,
|
||||
ObjectAddresses *objsMoved);
|
||||
extern Oid AlterTypeNamespaceInternal(Oid typeOid, Oid nspOid,
|
||||
bool isImplicitArray,
|
||||
bool errorOnTableType,
|
||||
ObjectAddresses *objsMoved);
|
||||
|
||||
#endif /* TYPECMDS_H */
|
||||
|
@@ -197,42 +197,42 @@ extern int vacuum_multixact_freeze_table_age;
|
||||
/* in commands/vacuum.c */
|
||||
extern void ExecVacuum(ParseState *pstate, VacuumStmt *vacstmt, bool isTopLevel);
|
||||
extern void vacuum(List *relations, VacuumParams *params,
|
||||
BufferAccessStrategy bstrategy, bool isTopLevel);
|
||||
BufferAccessStrategy bstrategy, bool isTopLevel);
|
||||
extern void vac_open_indexes(Relation relation, LOCKMODE lockmode,
|
||||
int *nindexes, Relation **Irel);
|
||||
int *nindexes, Relation **Irel);
|
||||
extern void vac_close_indexes(int nindexes, Relation *Irel, LOCKMODE lockmode);
|
||||
extern double vac_estimate_reltuples(Relation relation,
|
||||
BlockNumber total_pages,
|
||||
BlockNumber scanned_pages,
|
||||
double scanned_tuples);
|
||||
BlockNumber total_pages,
|
||||
BlockNumber scanned_pages,
|
||||
double scanned_tuples);
|
||||
extern void vac_update_relstats(Relation relation,
|
||||
BlockNumber num_pages,
|
||||
double num_tuples,
|
||||
BlockNumber num_all_visible_pages,
|
||||
bool hasindex,
|
||||
TransactionId frozenxid,
|
||||
MultiXactId minmulti,
|
||||
bool in_outer_xact);
|
||||
BlockNumber num_pages,
|
||||
double num_tuples,
|
||||
BlockNumber num_all_visible_pages,
|
||||
bool hasindex,
|
||||
TransactionId frozenxid,
|
||||
MultiXactId minmulti,
|
||||
bool in_outer_xact);
|
||||
extern void vacuum_set_xid_limits(Relation rel,
|
||||
int freeze_min_age, int freeze_table_age,
|
||||
int multixact_freeze_min_age,
|
||||
int multixact_freeze_table_age,
|
||||
TransactionId *oldestXmin,
|
||||
TransactionId *freezeLimit,
|
||||
TransactionId *xidFullScanLimit,
|
||||
MultiXactId *multiXactCutoff,
|
||||
MultiXactId *mxactFullScanLimit);
|
||||
int freeze_min_age, int freeze_table_age,
|
||||
int multixact_freeze_min_age,
|
||||
int multixact_freeze_table_age,
|
||||
TransactionId *oldestXmin,
|
||||
TransactionId *freezeLimit,
|
||||
TransactionId *xidFullScanLimit,
|
||||
MultiXactId *multiXactCutoff,
|
||||
MultiXactId *mxactFullScanLimit);
|
||||
extern void vac_update_datfrozenxid(void);
|
||||
extern void vacuum_delay_point(void);
|
||||
extern bool vacuum_is_relation_owner(Oid relid, Form_pg_class reltuple,
|
||||
int options);
|
||||
int options);
|
||||
extern Relation vacuum_open_relation(Oid relid, RangeVar *relation,
|
||||
int options, bool verbose, LOCKMODE lmode);
|
||||
int options, bool verbose, LOCKMODE lmode);
|
||||
|
||||
/* in commands/analyze.c */
|
||||
extern void analyze_rel(Oid relid, RangeVar *relation,
|
||||
VacuumParams *params, List *va_cols, bool in_outer_xact,
|
||||
BufferAccessStrategy bstrategy);
|
||||
VacuumParams *params, List *va_cols, bool in_outer_xact,
|
||||
BufferAccessStrategy bstrategy);
|
||||
extern bool std_typanalyze(VacAttrStats *stats);
|
||||
|
||||
/* in utils/misc/sampling.c --- duplicate of declarations in utils/sampling.h */
|
||||
|
@@ -20,7 +20,7 @@
|
||||
extern void validateWithCheckOption(const char *value);
|
||||
|
||||
extern ObjectAddress DefineView(ViewStmt *stmt, const char *queryString,
|
||||
int stmt_location, int stmt_len);
|
||||
int stmt_location, int stmt_len);
|
||||
|
||||
extern void StoreViewQuery(Oid viewOid, Query *viewParse, bool replace);
|
||||
|
||||
|
Reference in New Issue
Block a user