Skip to content

Commit

Permalink
16.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Jun 14, 2024
1 parent ac85ffc commit d3b64d3
Show file tree
Hide file tree
Showing 55 changed files with 18 additions and 52,086 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/emsdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
build:
runs-on: ubuntu-22.04
env:
PGVERSION: 16.2
PGVERSION: 16.3
SDK_VERSION: 3.1.62.0bi
SDK_ARCHIVE: python3.12-wasm-sdk-Ubuntu-22.04.tar.lz4
SDKROOT: /opt/python-wasm-sdk
Expand Down
14 changes: 11 additions & 3 deletions cibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,12 @@ END
# to get same path for wasm-shared link tool in the path
# for extensions building.
# we always symlink in-tree build to "postgresql" folder
. cibuild/pg-$PGVERSION.sh

if echo $PGVERSION|grep -q ^16
then
. cibuild/pg-16.x.sh
else
. cibuild/pg-git.sh
fi
fi

# put wasm-shared the pg extension linker from build dir in the path
Expand Down Expand Up @@ -162,12 +166,16 @@ then
PG_CONFIG=${PGROOT}/bin/pg_config emmake make OPTFLAGS="" install
cp sql/vector.sql sql/vector--0.7.2.sql ${PGROOT}/share/postgresql/extension
rm ${PGROOT}/share/postgresql/extension/vector--?.?.?--?.?.?.sql ${PGROOT}/share/postgresql/extension/vector.sql
read
popd

popd
fi

if echo "$*"|grep " postgis"
then
echo "================================================="
PG_LINK=em++ echo "WIP - requires latests python-wasm-sdk, not just emsdk"
fi

if echo "$*"|grep " quack"
then
Expand Down
12 changes: 6 additions & 6 deletions cibuild/pg-16.2.sh → cibuild/pg-16.x.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARCHIVE=postgresql-${PGVERSION}.tar.bz2

if [ -f postgresql-${PGVERSION}/patched ]
if [ -f postgresql/postgresql-${PGVERSION}.patched ]
then
echo patch stage already done
echo version already selected and patch stage already done
else
[ -f ${ARCHIVE} ] || wget -q -c https://ftp.postgresql.org/pub/source/v${PGVERSION}/${ARCHIVE}

Expand All @@ -15,15 +15,16 @@ else
> ./src/include/port/emscripten.h
> ./src/makefiles/Makefile.emscripten
for patchdir in \
postgresql-emscripten postgresql-${PGVERSION}-wasm \
postgresql-pglite postgresql-${PGVERSION}-pglite
postgresql-emscripten \
postgresql-wasm postgresql-wasm-${PGVERSION} \
postgresql-pglite postgresql-pglite-${PGVERSION}
do
if [ -d ../patches/$patchdir ]
then
cat ../patches/$patchdir/*.diff | patch -p1 || exit 18
fi
done
touch patched
touch postgresql-${PGVERSION}.patched
popd
fi

Expand All @@ -33,7 +34,6 @@ else
rm postgresql 2>/dev/null
ln -s postgresql-${PGVERSION} postgresql


fi

export PGSRC=$(realpath postgresql-${PGVERSION})
Expand Down

This file was deleted.

11 changes: 0 additions & 11 deletions patches/postgresql-16.2-wasm/src-backend-catalog-storage.c.diff

This file was deleted.

This file was deleted.

Loading

0 comments on commit d3b64d3

Please sign in to comment.