PostgreSQL/ci_scripts/dump-typedefs.sh
Andreas Karlsson 14a3d36ae1 Only check pg_tde with the combined typedefs
The reason to do this is that the old approach created an unnecessary
diff against upstream where they had forgot SinglePartitionSpec in
typedefs.list.

Additionally add two new structs from our SMGR patch to the list.
2025-04-17 11:04:54 +02:00

15 lines
416 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR="$(cd -- "$(dirname "$0")" >/dev/null 2>&1; pwd -P)"
cd "$SCRIPT_DIR/.."
if ! test -f contrib/pg_tde/pg_tde.so; then
echo "contrib/pg_tde/pg_tde.so doesn't exists, run make-build.sh first in debug mode"
exit 1
fi
src/tools/find_typedef contrib/pg_tde > pg_tde.typedefs
# Combine with original typedefs
cat pg_tde.typedefs src/tools/pgindent/typedefs.list | sort -u > combined.typedefs