Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ github:
required_pull_request_reviews:
required_approving_review_count: 1

PG18:
required_pull_request_reviews:
required_approving_review_count: 1

PG17:
required_pull_request_reviews:
required_approving_review_count: 1
Expand Down
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ PG16:
PG17:
- base-branch: 'PG17'

PG18:
- base-branch: 'PG18'

master:
- base-branch: 'master'
4 changes: 2 additions & 2 deletions .github/workflows/go-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Go Driver Tests

on:
push:
branches: [ "master" ]
branches: [ "PG18" ]

pull_request:
branches: [ "master" ]
branches: [ "PG18" ]

jobs:
build:
Expand Down
37 changes: 19 additions & 18 deletions .github/workflows/installcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,63 @@ name: Build / Regression

on:
push:
branches: [ "master" ]
branches: [ "PG18" ]

pull_request:
branches: [ "master" ]
branches: [ "PG18" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Get latest commit id of PostgreSQL 17
- name: Get latest commit id of PostgreSQL 18
run: |
echo "PG_COMMIT_HASH=$(git ls-remote https://git.postgresql.org/git/postgresql.git refs/heads/REL_17_STABLE | awk '{print $1}')" >> $GITHUB_ENV
echo "PG_COMMIT_HASH=$(git ls-remote https://git.postgresql.org/git/postgresql.git refs/heads/REL_18_STABLE | awk '{print $1}')" >> $GITHUB_ENV

- name: Cache PostgreSQL 17
- name: Cache PostgreSQL 18
uses: actions/cache@v3
id: pg17cache
id: pg18cache
with:
path: ~/pg17
key: ${{ runner.os }}-v1-pg17-${{ env.PG_COMMIT_HASH }}
path: ~/pg18
key: ${{ runner.os }}-v1-pg18-${{ env.PG_COMMIT_HASH }}

- name: Install necessary dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libreadline-dev zlib1g-dev flex bison

- name: Install PostgreSQL 17 and some extensions
if: steps.pg17cache.outputs.cache-hit != 'true'
- name: Install PostgreSQL 18 and some extensions
if: steps.pg18cache.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch REL_17_STABLE https://git.postgresql.org/git/postgresql.git ~/pg17source
cd ~/pg17source
./configure --prefix=$HOME/pg17 CFLAGS="-std=gnu99 -ggdb -O0" --enable-cassert
git clone --depth 1 --branch REL_18_STABLE https://git.postgresql.org/git/postgresql.git ~/pg18source
cd ~/pg18source
./configure --prefix=$HOME/pg18 CFLAGS="-std=gnu99 -ggdb -O0" --enable-cassert
make install -j$(nproc) > /dev/null
cd contrib
cd fuzzystrmatch
make PG_CONFIG=$HOME/pg17/bin/pg_config install -j$(nproc) > /dev/null
make PG_CONFIG=$HOME/pg18/bin/pg_config install -j$(nproc) > /dev/null
cd ../pg_trgm
make PG_CONFIG=$HOME/pg17/bin/pg_config install -j$(nproc) > /dev/null
make PG_CONFIG=$HOME/pg18/bin/pg_config install -j$(nproc) > /dev/null

- uses: actions/checkout@v3

- name: Build AGE
id: build
run: |
make PG_CONFIG=$HOME/pg17/bin/pg_config install -j$(nproc)
make PG_CONFIG=$HOME/pg18/bin/pg_config install -j$(nproc)

- name: Pull and build pgvector
id: pgvector
run: |
git clone https://github.com/pgvector/pgvector.git
cd pgvector
make PG_CONFIG=$HOME/pg17/bin/pg_config install -j$(nproc) > /dev/null
make PG_CONFIG=$HOME/pg18/bin/pg_config install -j$(nproc) > /dev/null

- name: Regression tests
id: regression_tests
run: |
make PG_CONFIG=$HOME/pg17/bin/pg_config installcheck EXTRA_TESTS="pgvector fuzzystrmatch pg_trgm"
make PG_CONFIG=$HOME/pg18/bin/pg_config installcheck EXTRA_TESTS="pgvector fuzzystrmatch pg_trgm"
continue-on-error: true

- name: Dump regression test errors
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/jdbc-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: JDBC Driver Tests

on:
push:
branches: [ "master" ]
branches: [ "PG18" ]

pull_request:
branches: [ "master" ]
branches: [ "PG18" ]

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nodejs-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Nodejs Driver Tests

on:
push:
branches: [ "master" ]
branches: [ "PG18" ]

pull_request:
branches: [ "master" ]
branches: [ "PG18" ]

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Python Driver Tests

on:
push:
branches: [ "master" ]
branches: [ "PG18" ]

pull_request:
branches: [ "master" ]
branches: [ "PG18" ]

jobs:
build:
Expand Down
12 changes: 6 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
#

# Build stage: Install necessary development tools for compilation and installation
FROM postgres:17 AS build
FROM postgres:18 AS build

RUN apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
bison \
build-essential \
flex \
postgresql-server-dev-17
postgresql-server-dev-18

COPY . /age

Expand All @@ -34,7 +34,7 @@ RUN make && make install


# Final stage: Create a final image by copying the files created in the build stage
FROM postgres:17
FROM postgres:18

RUN apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
Expand All @@ -48,9 +48,9 @@ ENV LANG=en_US.UTF-8
ENV LC_COLLATE=en_US.UTF-8
ENV LC_CTYPE=en_US.UTF-8

COPY --from=build /usr/lib/postgresql/17/lib/age.so /usr/lib/postgresql/17/lib/
COPY --from=build /usr/share/postgresql/17/extension/age--1.6.0.sql /usr/share/postgresql/17/extension/
COPY --from=build /usr/share/postgresql/17/extension/age.control /usr/share/postgresql/17/extension/
COPY --from=build /usr/lib/postgresql/18/lib/age.so /usr/lib/postgresql/18/lib/
COPY --from=build /usr/share/postgresql/18/extension/age--1.6.0.sql /usr/share/postgresql/18/extension/
COPY --from=build /usr/share/postgresql/18/extension/age.control /usr/share/postgresql/18/extension/
COPY docker/docker-entrypoint-initdb.d/00-create-extension-age.sql /docker-entrypoint-initdb.d/00-create-extension-age.sql

CMD ["postgres", "-c", "shared_preload_libraries=age"]
4 changes: 2 additions & 2 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
#


FROM postgres:17
FROM postgres:18

RUN apt-get update
RUN apt-get install --assume-yes --no-install-recommends --no-install-suggests \
bison \
build-essential \
flex \
postgresql-server-dev-17 \
postgresql-server-dev-18 \
locales

ENV LANG=en_US.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion drivers/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.3"
services:
db:
image: apache/age:dev_snapshot_master
image: apache/age:dev_snapshot_PG18
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=agens
Expand Down
Loading