Skip to content

Commit

Permalink
Handle compatibility issues (#15)
Browse files Browse the repository at this point in the history
* Fix for changed definition of GetDatum for PG versions over 15

* Remove tuplestore_donestoring for PG versions over 15

* Add github tests for versions 15, 16, and 17

* Changes in sql file and a new expected file is added
   to accommodate changed behaviour of pg_stat_statements_reset function
  • Loading branch information
RafiaSabih authored Dec 20, 2024
1 parent d34b316 commit e496268
Show file tree
Hide file tree
Showing 5 changed files with 524 additions and 75 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
tests:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
env:
PG: ${{ matrix.postgres-version }}
strategy:
Expand All @@ -19,18 +19,26 @@ jobs:
- '12'
- '13'
- '14'

- '15'
- '16'
- '17'

steps:
- uses: actions/checkout@v2
- name: Set up packages
run: |
set -e
# add the official Ubuntu/Debian APT repository for PostgreSQL
sudo sh -c "echo \"deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main $PG\" > /etc/apt/sources.list.d/pgdg.list"
curl -Ls https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install -yq --no-install-suggests --no-install-recommends curl postgresql-common lcov libevent-dev pv brotli libbrotli1 libbrotli-dev
# forbid creation of a main cluster when package is installed
sudo apt-get install --assume-yes --quiet --no-install-suggests --no-install-recommends curl postgresql-common lcov libkrb5-dev
# forbid creation of a "main" cluster when a new postgresql-x.y server package is installed
sudo sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf
sudo apt-get install -yq --no-install-suggests --no-install-recommends postgresql-$PG postgresql-server-dev-$PG
sudo apt-get --assume-yes --quiet --no-install-suggests --no-install-recommends install postgresql-$PG postgresql-server-dev-$PG
- name: Download noisia
run: |
VERSION=0.1.0
Expand Down Expand Up @@ -58,7 +66,7 @@ jobs:

finish:
needs: tests
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Rafia Sabih
Copyright (c) 2024 Rafia Sabih

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit e496268

Please sign in to comment.