diff --git a/src/tools/pgindent/README b/src/tools/pgindent/README index 806a60d080..627d731e8a 100644 --- a/src/tools/pgindent/README +++ b/src/tools/pgindent/README @@ -35,12 +35,13 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and 8) Do a full test build: - run configure + > run configure # stop is only necessary if it's going to install in a location with an # already running server pg_ctl stop gmake -C src install gmake -C contrib install + pg_ctl start gmake installcheck-world 9) Indent the Perl MSVC code: diff --git a/src/tools/pgindent/typedefs.list b/src/tools/pgindent/typedefs.list index 7480ec4d5b..a831a1e7a7 100644 --- a/src/tools/pgindent/typedefs.list +++ b/src/tools/pgindent/typedefs.list @@ -21,6 +21,7 @@ AclMaskHow AclMode AclObjectKind AclResult +AcquireSampleRowsFunc ActiveSnapshotElt AffixNode AffixNodeData @@ -77,7 +78,9 @@ AlterUserMappingStmt AlteredTableInfo AlternativeSubPlan AlternativeSubPlanState +AnalyzeAttrComputeStatsFunc AnalyzeAttrFetchFunc +AnalyzeForeignTable_function AnlIndexData Append AppendPath @@ -88,7 +91,9 @@ ArchiveEntryPtr ArchiveFormat ArchiveHandle ArchiveMode +ArchiverOutput ArchiverStage +ArrayAnalyzeExtraData ArrayBuildState ArrayCoerceExpr ArrayCoerceExprState @@ -126,6 +131,7 @@ BIO BIO_METHOD BITVEC BITVECP +BMS_Comparison BMS_Membership BN_CTX BOOL @@ -156,10 +162,9 @@ BYTE Backend BackendId BackendParameters +BackendState BaseBackupCmd BeginForeignScan_function -BgWriterRequest -BgWriterShmemStruct BitmapAnd BitmapAndPath BitmapAndState @@ -237,6 +242,8 @@ ChangeVarNodes_context CheckPoint CheckPointStmt CheckpointStatsData +CheckpointerRequest +CheckpointerShmemStruct Chromosome City ClientAuthentication_hook_type @@ -328,6 +335,7 @@ CreateSchemaStmtContext CreateSeqStmt CreateStmt CreateStmtContext +CreateTableAsStmt CreateTableSpaceStmt CreateTrigStmt CreateUserMappingStmt @@ -345,6 +353,7 @@ CycleCtr DBState DCHCacheEntry DEADLOCK_INFO +DECountItem DES_cblock DES_key_schedule DH @@ -390,12 +399,7 @@ DomainConstraintState DomainConstraintType DomainIOData DropBehavior -DropCastStmt -DropFdwStmt -DropForeignServerStmt DropOwnedStmt -DropPLangStmt -DropPropertyStmt DropRoleStmt DropStmt DropTableSpaceStmt @@ -466,7 +470,6 @@ FakeRelCacheEntry FakeRelCacheEntryData FastPathStrongRelationLockData FdwInfo -FdwPlan FdwRoutine FetchDirection FetchStmt @@ -477,6 +480,7 @@ FieldStore FieldStoreState File FileFdwExecutionState +FileFdwPlanState FileName FileNameMap FindSplitData @@ -605,7 +609,6 @@ GBT_NUMKEY GBT_NUMKEY_R GBT_VARKEY GBT_VARKEY_R -GISTBufferingInsertStack GISTBuildBuffers GISTBuildState GISTENTRY @@ -628,6 +631,9 @@ GV Gene GenericExprState GeqoPrivateData +GetForeignPaths_function +GetForeignPlan_function +GetForeignRelSize_function GiSTOptions GinBtree GinBtreeData @@ -641,6 +647,7 @@ GinOptions GinPageOpaque GinPageOpaqueData GinPostingTreeScan +GinQualCounts GinScanEntry GinScanKey GinScanOpaque @@ -752,6 +759,7 @@ IndexBuildCallback IndexBuildResult IndexBulkDeleteCallback IndexBulkDeleteResult +IndexClauseSet IndexElem IndexInfo IndexList @@ -773,10 +781,8 @@ IndxInfo InfoItem InhInfo InhOption -InhRelation InheritableSocket InlineCodeBlock -InnerIndexscanInfo InsertStmt Instrumentation Int8TransTypeData @@ -803,11 +809,17 @@ JOBOBJECT_BASIC_LIMIT_INFORMATION JOBOBJECT_BASIC_UI_RESTRICTIONS JOBOBJECT_SECURITY_LIMIT_INFORMATION Join +JoinCostWorkspace JoinExpr JoinHashEntry JoinPath JoinState JoinType +JsonLexContext +JsonParseStack +JsonParseState +JsonStackOp +JsonValueType JunkFilter KeyArray KeySuffix @@ -937,6 +949,7 @@ NewConstraint NewPage Node NodeTag +NonEmptyRange Notification NotifyStmt Nsrt @@ -952,6 +965,7 @@ OSInfo OSSLDigest OSVERSIONINFO OVERLAPPED +ObjectAccessDrop ObjectAccessType ObjectAddress ObjectAddressExtra @@ -1027,11 +1041,13 @@ PGSetenvStatusType PGShmemHeader PGTransactionStatusType PGVerbosity +PGXACT PG_Locale_Strategy PG_Lock_Status PG_init_t PGcancel PGconn +PGdataValue PGlobjfuncs PGnotify PGresAttDesc @@ -1093,9 +1109,11 @@ PLpgSQL_var PLpgSQL_variable PLwdatum PLword +PLyCursorObject PLyDatumToOb PLyDatumToObFunc PLyExceptionEntry +PLyExecutionContext PLyObToDatum PLyObToDatumFunc PLyObToTuple @@ -1124,6 +1142,7 @@ PQconninfoOption PQnoticeProcessor PQnoticeReceiver PQprintOpt +PQrowProcessor PREDICATELOCK PREDICATELOCKTAG PREDICATELOCKTARGET @@ -1155,13 +1174,17 @@ PageSplitRecord PagetableEntry Pairs ParallelSlot +ParallelState +ParallelStateEntry Param ParamExecData ParamExternData ParamFetchHook ParamKind ParamListInfo +ParamPathInfo ParamRef +ParentMapEntry ParseCallbackState ParseParamRefHook ParseState @@ -1172,6 +1195,7 @@ ParserSetupHook ParserState Path PathClauseUsage +PathCostComparison PathKey PathKeysComparison Pattern_Prefix_Status @@ -1181,6 +1205,7 @@ PendingOperationTag PendingRelDelete PendingUnlinkEntry PerlInterpreter +Perl_ppaddr_t PgBackendStatus PgIfAddrCallback PgStat_BackendFunctionEntry @@ -1193,6 +1218,7 @@ PgStat_Msg PgStat_MsgAnalyze PgStat_MsgAutovacStart PgStat_MsgBgWriter +PgStat_MsgDeadlock PgStat_MsgDropdb PgStat_MsgDummy PgStat_MsgFuncpurge @@ -1205,6 +1231,7 @@ PgStat_MsgResetsharedcounter PgStat_MsgResetsinglecounter PgStat_MsgTabpurge PgStat_MsgTabstat +PgStat_MsgTempFile PgStat_MsgVacuum PgStat_Shared_Reset_Target PgStat_Single_Reset_Type @@ -1220,13 +1247,11 @@ PgXmlErrorContext PgXmlStrictness Pg_finfo_record Pg_magic_struct -PickSplitSortItem PipeProtoChunk PipeProtoHeader PlaceHolderInfo PlaceHolderVar Plan -PlanForeignScan_function PlanInvalItem PlanRowMark PlanState @@ -1256,6 +1281,7 @@ PredicateLockTargetType PrepareStmt PreparedParamsData PreparedStatement +PrimaryKeepaliveMessage PrintExtraTocPtr PrintTocDataPtr PrintfArgType @@ -1285,6 +1311,7 @@ PushFilter PushFilterOps PushFunction PyCodeObject +PyMappingMethods PyMethodDef PyObject PySequenceMethods @@ -1324,13 +1351,14 @@ RWConflict RWConflictPoolHeader RangeBound RangeFunction +RangeIOData RangeQueryClause RangeSubselect RangeTblEntry RangeTblRef RangeType -RangeTypeInfo RangeVar +RangeVarGetRelidCallback RawColumnDefault ReScanForeignScan_function ReadBufPtr @@ -1370,9 +1398,6 @@ RelativeTime RelcacheCallbackFunction Relids RelocationBufferInfo -RemoveFuncStmt -RemoveOpClassStmt -RemoveOpFamilyStmt RenameStmt ReopenPtr ResTarget @@ -1428,7 +1453,6 @@ SID_NAME_USE SISeg SMgrRelation SMgrRelationData -SOCKADDR SOCKET SPELL SPIPlanPtr @@ -1436,6 +1460,7 @@ SPITupleTable SPLITCOST SPNode SPNodeData +SPPageDesc SQLFunctionCache SQLFunctionCachePtr SQLFunctionParseInfoPtr @@ -1454,6 +1479,7 @@ ScanDirection ScanKey ScanKeyData ScanKeyword +ScanStackEntry ScanState ScanTypeControl SchemaQuery @@ -1463,6 +1489,7 @@ SecLabelItem SecLabelStmt SelectStmt Selectivity +SemiAntiJoinFactors SeqScan SeqScanState SeqTable @@ -1491,6 +1518,7 @@ SharedInvalSmgrMsg SharedInvalidationMessage ShellTypeInfo ShmemIndexEnt +ShutdownInformation ShutdownMode SignTSVector SimpleEcontextStackEntry @@ -1498,6 +1526,7 @@ SimpleOidList SimpleOidListCell SimpleStringList SimpleStringListCell +SingleBoundSortItem Size SlotNumber SlruCtl @@ -1518,10 +1547,35 @@ SortBy SortByDir SortByNulls SortGroupClause +SortShimExtra SortState +SortSupport +SortSupportData SortTuple +SortTupleComparator +SortedPoint +SpGistBuildState +SpGistCache +SpGistDeadTuple +SpGistDeadTupleData +SpGistInnerTuple +SpGistInnerTupleData +SpGistLUPCache +SpGistLastUsedPage +SpGistLeafTuple +SpGistLeafTupleData +SpGistMetaPageData +SpGistNodeTuple +SpGistNodeTupleData +SpGistPageOpaque +SpGistPageOpaqueData +SpGistScanOpaque +SpGistScanOpaqueData +SpGistState +SpGistTypeDesc SpecialJoinInfo SplitInterval +SplitLR SplitVar SplitedPageLayout StackElem @@ -1599,6 +1653,7 @@ TYPCATEGORY TabStatusArray TableDataInfo TableInfo +TableLikeClause TableSpaceCacheEntry TableSpaceOpts TargetEntry @@ -1613,7 +1668,6 @@ TextFreq TextPositionState TheLexeme TheSubstitute -ThingFile TidHashKey TidPath TidScan @@ -1738,6 +1792,7 @@ WalRcvState WalSnd WalSndCtlData WalSndState +WalSndrMessage WindowAgg WindowAggState WindowClause @@ -1804,7 +1859,7 @@ __IsProcessInJob __QueryInformationJobObject __RegisterWaitForSingleObject __SetInformationJobObject -aclitem +adjust_appendrel_attrs_context allocfunc array_unnest_fctx assign_collations_context @@ -1863,6 +1918,7 @@ ds_state eLogType ean13 eary +emit_log_hook_type eval_const_expressions_context execution_state explain_get_index_name_hook_type @@ -1880,6 +1936,7 @@ float4KEY float8 float8KEY fmNodePtr +fmStringInfo fmgr_hook_type freeaddrinfo_ptr_t freefunc @@ -2002,6 +2059,7 @@ object_access_hook_type off_t oidKEY oidvector +on_exit_nicely_callback ossldata pageCnvCtx parse_error_callback_arg @@ -2010,6 +2068,7 @@ pendingPosition pgParameterStatus pg_conv_map pg_crc32 +pg_ctype_cache pg_enc pg_enc2gettext pg_enc2name @@ -2018,9 +2077,9 @@ pg_gssinfo pg_local_to_utf pg_local_to_utf_combined pg_locale_t -pg_node_tree pg_on_exit_callback pg_re_flags +pg_stack_base_t pg_time_t pg_tz pg_tz_cache @@ -2028,6 +2087,7 @@ pg_tzenum pg_utf_to_local pg_utf_to_local_combined pg_uuid_t +pg_wc_probefunc pg_wchar pg_wchar_tbl pgpid_t @@ -2035,6 +2095,8 @@ pgsocket pgsql_thing_t pgssEntry pgssHashKey +pgssJumbleState +pgssLocationLen pgssSharedState pgstat_page pgstattuple_type @@ -2055,6 +2117,7 @@ pltcl_proc_desc pltcl_proc_key pltcl_proc_ptr pltcl_query_desc +post_parse_analyze_hook_type pqbool pqsigfunc printQueryOpt @@ -2068,6 +2131,7 @@ printTextRule priv_map process_sublinks_context promptStatus_t +pthread_attr_t pthread_key_t pthread_mutex_t pthread_once_t @@ -2112,7 +2176,6 @@ rijndael_ctx rm_detail_t role_auth_extra save_buffer -segment_finish_callback sequence_magic shmem_startup_hook_type sig_atomic_t @@ -2122,14 +2185,41 @@ sigset_t size_t slock_t smgrid +spgBulkDeleteState +spgChooseIn +spgChooseOut +spgChooseResultType +spgConfigIn +spgConfigOut +spgInnerConsistentIn +spgInnerConsistentOut +spgLeafConsistentIn +spgLeafConsistentOut +spgNodePtr +spgPickSplitIn +spgPickSplitOut +spgVacPendingItem +spgxlogAddLeaf +spgxlogAddNode +spgxlogMoveLeafs +spgxlogPickSplit +spgxlogSplitTuple +spgxlogState +spgxlogVacuumLeaf +spgxlogVacuumRedirect +spgxlogVacuumRoot sql_error_callback_arg +sqlparseInfo +sqlparseState ss_lru_item_t ss_scan_location_t ss_scan_locations_t ssize_t stemmer_module stmtCacheEntry -stream_continue_callback +storeInfo +storeRes_func +stream_stop_callback substitute_actual_parameters_context substitute_actual_srf_parameters_context substitute_multiple_relids_context