diff --git a/.travis.yml b/.travis.yml index a245253ba..aba7b4075 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ services: - docker before_install: - - docker run -d --name pgbuild -v ${TRAVIS_BUILD_DIR}:/build postgres:9.6.2-alpine + - docker run -d --name pgbuild -v ${TRAVIS_BUILD_DIR}:/build postgres:9.6.3-alpine install: - docker exec -it pgbuild /bin/sh -c "apk add --no-cache --virtual .build-deps coreutils dpkg-dev gcc libc-dev make util-linux-dev diffutils && make -C /build install && chown -R postgres:postgres /build/" diff --git a/Dockerfile b/Dockerfile index 96f0934ee..a0add117b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:9.6.2 +FROM postgres:9.6.3 MAINTAINER Timescale diff --git a/test/expected/timestamp.out b/test/expected/timestamp.out index cf200ba0b..09046ec2f 100644 --- a/test/expected/timestamp.out +++ b/test/expected/timestamp.out @@ -145,11 +145,13 @@ FROM PUBLIC."testNs" GROUP BY time ORDER BY time ASC LIMIT 2; \set ON_ERROR_STOP 0 SET timezone = 'UTC'; ALTER DATABASE single SET timezone ='UTC'; --- Conversion to timestamp using Postgres built-in function taking double +-- Conversion to timestamp using Postgres built-in function taking +-- double. Gives inaccurate result on Postgres <= 9.6.2. Accurate on +-- Postgres >= 9.6.3. SELECT to_timestamp(1486480176.236538); to_timestamp ------------------------------------- - Tue Feb 07 15:09:36.236537 2017 UTC + Tue Feb 07 15:09:36.236538 2017 UTC (1 row) -- extension-specific version taking microsecond UNIX timestamp diff --git a/test/sql/timestamp.sql b/test/sql/timestamp.sql index 02276ab9a..328a5675e 100644 --- a/test/sql/timestamp.sql +++ b/test/sql/timestamp.sql @@ -93,7 +93,9 @@ FROM PUBLIC."testNs" GROUP BY time ORDER BY time ASC LIMIT 2; SET timezone = 'UTC'; ALTER DATABASE single SET timezone ='UTC'; --- Conversion to timestamp using Postgres built-in function taking double +-- Conversion to timestamp using Postgres built-in function taking +-- double. Gives inaccurate result on Postgres <= 9.6.2. Accurate on +-- Postgres >= 9.6.3. SELECT to_timestamp(1486480176.236538); -- extension-specific version taking microsecond UNIX timestamp