mirror of
https://github.com/postgres/postgres.git
synced 2025-06-06 00:02:36 -04:00
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.
15 lines
416 B
Bash
Executable File
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
|