Sven Klemm c90397fd6a Remove support for PG9.6 and PG10
This patch removes code support for PG9.6 and PG10. In addition to
removing PG96 and PG10 macros the following changes are done:

remove HAVE_INT64_TIMESTAMP since this is always true on PG10+
remove PG_VERSION_SUPPORTS_MULTINODE
2020-06-02 23:48:35 +02:00
..
2020-06-02 23:48:35 +02:00
2020-06-02 23:48:35 +02:00
2020-06-02 23:48:35 +02:00
2020-06-02 23:48:35 +02:00

Testing using multiple versions

  1. build current container IMAGE_NAME=update_test TAG_NAME=latest bash scripts/docker-build.sh

Cleanup

docker rm -f timescaledb-orig timescaledb-updated timescaledb-clean || rm -rf /tmp/pg_data /tmp/pg_data_clean

Build updated container:

  1. Setup a 0.1.0 docker. docker run -d --name timescaledb-orig -v /tmp/pg_data:/var/lib/postgresql/data -p 6432:5432 timescale/timescaledb:0.1.0
  2. Run a test setup script: psql -h localhost -U postgres -p 6432 -f test/sql/updates/setup.sql
  3. Stop 0.1.0 docker. docker rm -vf timescaledb-orig
  4. run built container docker run -d --name timescaledb-updated -v /tmp/pg_data:/var/lib/postgresql/data -p 6432:5432 update_test:latest
  5. update extension psql -h localhost -U postgres -d single -p 6432 -c "ALTER EXTENSION timescaledb UPDATE"

Build a clean-slate container:

  1. Run container docker run -d --name timescaledb-clean -v /tmp/pg_data_clean:/var/lib/postgresql/data -p 6433:5432 update_test:latest
  2. Run setup script: psql -h localhost -U postgres -p 6433 -f test/sql/updates/setup.sql

Compare:

psql -h localhost -U postgres -d single -p 6432 -f test/sql/updates/test-0.1.1.sql > /tmp/updated.out psql -h localhost -U postgres -d single -p 6433 -f test/sql/updates/test-0.1.1.sql > /tmp/clean.out diff /tmp/clean.out /tmp/updated.out