Add indent target to makefiel

pull/475/head
Artem Gavrilov 2024-07-17 17:28:34 +02:00
parent 7e11cf6154
commit f4d4e5a221
3 changed files with 34 additions and 0 deletions

3
.gitignore vendored
View File

@ -59,3 +59,6 @@ dkms.conf
## .vscode
.vscode/
.vscode/*
# tools files
typedefs-full.list

View File

@ -30,3 +30,12 @@ top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
update-typedefs:
wget -q -O - "https://buildfarm.postgresql.org/cgi-bin/typedefs.pl?branch=REL_16_STABLE" | cat - typedefs.list | sort | uniq > typedefs-full.list
indent:
pgindent --typedefs=typedefs-full.list .
.PHONY: update-typedefs indent

22
typedefs.list Normal file
View File

@ -0,0 +1,22 @@
AGG_KEY
Blocks
CallTime
Calls
Counters
ErrorInfo
HistogramTimingType
JitInfo
JumbleState
LocationLen
PGSMTrackLevel
PlanInfo
QueryInfo
SysInfo
WalUsage
Wal_Usage
pgsmEntry
pgsmHashKey
pgsmLocalState
pgsmSharedState
pgsmStoreKind
pgsmVersion