From 5478231f3e4981cef90c8dfad9f69247f926b572 Mon Sep 17 00:00:00 2001 From: Rob Kiefer Date: Thu, 2 Mar 2017 13:09:33 -0500 Subject: [PATCH] Reduce verbosity to remove line nums from output. --- test/expected/create_hypertable.out | 12 ++++++------ test/expected/ddl.out | 12 ++++++------ test/expected/ddl_errors.out | 12 ++++++------ test/expected/ddl_single.out | 12 ++++++------ test/expected/delete.out | 9 ++++++--- test/expected/drop_chunks.out | 12 ++++++------ test/expected/insert.out | 9 ++++++--- test/expected/insert_single.out | 9 ++++++--- test/expected/pg_dump.out | 12 ++++++------ test/expected/sql_query.out | 9 ++++++--- test/expected/tablespace.out | 14 +++++++++----- test/expected/timestamp.out | 17 +++++++++++------ test/expected/update.out | 9 ++++++--- test/sql/include/create_single_db.sql | 2 ++ test/sql/tablespace.sql | 1 + test/sql/timestamp.sql | 7 ++++--- 16 files changed, 93 insertions(+), 65 deletions(-) diff --git a/test/expected/create_hypertable.out b/test/expected/create_hypertable.out index 3bc4b293b..2720904c7 100644 --- a/test/expected/create_hypertable.out +++ b/test/expected/create_hypertable.out @@ -2,24 +2,24 @@ \set VERBOSITY verbose \set SHOW_CONTEXT never \ir include/create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "dblink" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "postgres_fdw" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "hstore" -LOCATION: CreateExtensionInternal, extension.c:1441 +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection setup_single_node ------------------- (1 row) +\set VERBOSITY verbose \set ECHO ALL \c single create schema test_schema; diff --git a/test/expected/ddl.out b/test/expected/ddl.out index 4b49a6465..ee2e951d0 100644 --- a/test/expected/ddl.out +++ b/test/expected/ddl.out @@ -3,19 +3,19 @@ \set SHOW_CONTEXT never \o /dev/null \ir include/create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "dblink" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "postgres_fdw" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "hstore" -LOCATION: CreateExtensionInternal, extension.c:1441 +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose \o \set ECHO ALL \ir include/ddl_ops_1.sql diff --git a/test/expected/ddl_errors.out b/test/expected/ddl_errors.out index 394e064cc..b6b7412b5 100644 --- a/test/expected/ddl_errors.out +++ b/test/expected/ddl_errors.out @@ -3,19 +3,19 @@ \set SHOW_CONTEXT never \o /dev/null \ir include/create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "dblink" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "postgres_fdw" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "hstore" -LOCATION: CreateExtensionInternal, extension.c:1441 +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose \o \set ECHO ALL \c single diff --git a/test/expected/ddl_single.out b/test/expected/ddl_single.out index e40547b6b..472868c9b 100644 --- a/test/expected/ddl_single.out +++ b/test/expected/ddl_single.out @@ -3,19 +3,19 @@ \set SHOW_CONTEXT never \o /dev/null \ir include/create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "dblink" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "postgres_fdw" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "hstore" -LOCATION: CreateExtensionInternal, extension.c:1441 +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose \o \set ECHO ALL \c single diff --git a/test/expected/delete.out b/test/expected/delete.out index 35c8f8fa7..fdebf778a 100644 --- a/test/expected/delete.out +++ b/test/expected/delete.out @@ -3,16 +3,19 @@ \ir include/insert_two_partitions.sql \set ON_ERROR_STOP 1 \ir create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: installing required extension "dblink" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "postgres_fdw" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "hstore" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose \c single CREATE TABLE PUBLIC."testNs" ( "timeCustom" BIGINT NOT NULL, diff --git a/test/expected/drop_chunks.out b/test/expected/drop_chunks.out index 3c2c35e0f..538ada2b9 100644 --- a/test/expected/drop_chunks.out +++ b/test/expected/drop_chunks.out @@ -3,19 +3,19 @@ \set SHOW_CONTEXT never \o /dev/null \ir include/create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "dblink" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "postgres_fdw" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "hstore" -LOCATION: CreateExtensionInternal, extension.c:1441 +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose \o \set ECHO ALL \c single diff --git a/test/expected/insert.out b/test/expected/insert.out index 708d7d4e8..5135fe72f 100644 --- a/test/expected/insert.out +++ b/test/expected/insert.out @@ -3,21 +3,24 @@ \ir include/insert_two_partitions.sql \set ON_ERROR_STOP 1 \ir create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: installing required extension "dblink" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "postgres_fdw" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "hstore" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection setup_single_node ------------------- (1 row) +\set VERBOSITY verbose \c single CREATE TABLE PUBLIC."testNs" ( "timeCustom" BIGINT NOT NULL, diff --git a/test/expected/insert_single.out b/test/expected/insert_single.out index 987d0fce7..89d5afdb3 100644 --- a/test/expected/insert_single.out +++ b/test/expected/insert_single.out @@ -3,21 +3,24 @@ \ir include/insert_single.sql \set ON_ERROR_STOP 1 \ir create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: installing required extension "dblink" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "postgres_fdw" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "hstore" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection setup_single_node ------------------- (1 row) +\set VERBOSITY verbose \c single \set ECHO ALL CREATE TABLE PUBLIC."testNs" ( diff --git a/test/expected/pg_dump.out b/test/expected/pg_dump.out index 226738c77..485fbb394 100644 --- a/test/expected/pg_dump.out +++ b/test/expected/pg_dump.out @@ -5,19 +5,19 @@ \ir include/insert_two_partitions.sql \set ON_ERROR_STOP 1 \ir create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "dblink" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "postgres_fdw" -LOCATION: CreateExtensionInternal, extension.c:1441 -psql:include/create_single_db.sql:7: NOTICE: 00000: installing required extension "hstore" -LOCATION: CreateExtensionInternal, extension.c:1441 +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose \c single CREATE TABLE PUBLIC."testNs" ( "timeCustom" BIGINT NOT NULL, diff --git a/test/expected/sql_query.out b/test/expected/sql_query.out index ee28942b6..b6fa88000 100644 --- a/test/expected/sql_query.out +++ b/test/expected/sql_query.out @@ -3,16 +3,19 @@ \ir include/insert_single.sql \set ON_ERROR_STOP 1 \ir create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: installing required extension "dblink" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "postgres_fdw" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "hstore" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose \c single \set ECHO ALL CREATE TABLE PUBLIC."testNs" ( diff --git a/test/expected/tablespace.out b/test/expected/tablespace.out index e88d8a537..c653558ea 100644 --- a/test/expected/tablespace.out +++ b/test/expected/tablespace.out @@ -1,21 +1,24 @@ \set ON_ERROR_STOP 1 \set SHOW_CONTEXT never \ir include/create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: installing required extension "dblink" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "postgres_fdw" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "hstore" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection setup_single_node ------------------- (1 row) +\set VERBOSITY verbose \set ECHO ALL \c single \set ON_ERROR_STOP 0 @@ -90,11 +93,12 @@ Child tables: _copy_temp_1, _iobeamdb_internal._hyper_1_0_replica --cleanup +\set VERBOSITY normal +unrecognized value "normal" for "VERBOSITY"; assuming "default" drop table test_tspace; -NOTICE: 00000: drop cascades to 4 other objects +NOTICE: drop cascades to 4 other objects DETAIL: drop cascades to table _iobeamdb_internal._hyper_1_0_replica drop cascades to table _iobeamdb_internal._hyper_1_1_0_partition drop cascades to table _iobeamdb_internal._hyper_1_1_0_1_data drop cascades to table _copy_temp_1 -LOCATION: reportDependentObjects, dependency.c:1011 drop tablespace tspace1; diff --git a/test/expected/timestamp.out b/test/expected/timestamp.out index 64e513cfd..2eaa2e89a 100644 --- a/test/expected/timestamp.out +++ b/test/expected/timestamp.out @@ -1,16 +1,19 @@ \set ON_ERROR_STOP 1 \o /dev/null \ir include/create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: installing required extension "dblink" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "postgres_fdw" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "hstore" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose \o \set ECHO ALL \c single @@ -191,14 +194,14 @@ 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 -SELECT to_timestamp(1486480176.236538); +SELECT to_timestamp(1486480176.236538); to_timestamp ------------------------------------- Tue Feb 07 15:09:36.236537 2017 UTC (1 row) -- extension-specific version taking microsecond UNIX timestamp -SELECT _iobeamdb_internal.to_timestamp(1486480176236538); +SELECT _iobeamdb_internal.to_timestamp(1486480176236538); to_timestamp ------------------------------------- Tue Feb 07 15:09:36.236538 2017 UTC @@ -214,7 +217,7 @@ SELECT _iobeamdb_internal.to_unix_microseconds('2017-02-07 15:09:36.236538+00'); -- In UNIX microseconds, BIGINT MAX is smaller than internal date upper bound -- and should therefore be OK. Further, converting to the internal postgres -- epoch cannot overflow a 64-bit INTEGER since the postgres epoch is at a --- later date compared to the UNIX epoch, and is therefore represented by a +-- later date compared to the UNIX epoch, and is therefore represented by a -- smaller number SELECT _iobeamdb_internal.to_timestamp(9223372036854775807); to_timestamp @@ -229,6 +232,8 @@ SELECT _iobeamdb_internal.to_timestamp(-210866803200000000); Mon Nov 24 00:00:00 4714 UTC BC (1 row) +\set VERBOSITY normal +unrecognized value "normal" for "VERBOSITY"; assuming "default" -- Going beyond Julian day zero should give out-of-range error SELECT _iobeamdb_internal.to_timestamp(-210866803200000001); ERROR: timestamp out of range diff --git a/test/expected/update.out b/test/expected/update.out index bfa9c452c..032ff361f 100644 --- a/test/expected/update.out +++ b/test/expected/update.out @@ -3,16 +3,19 @@ \ir include/insert_single.sql \set ON_ERROR_STOP 1 \ir create_single_db.sql +\set VERBOSITY normal +psql:include/create_single_db.sql:1: unrecognized value "normal" for "VERBOSITY"; assuming "default" SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; -psql:include/create_single_db.sql:7: NOTICE: installing required extension "dblink" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "postgres_fdw" -psql:include/create_single_db.sql:7: NOTICE: installing required extension "hstore" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "dblink" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "postgres_fdw" +psql:include/create_single_db.sql:8: NOTICE: installing required extension "hstore" SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose \c single \set ECHO ALL CREATE TABLE PUBLIC."testNs" ( diff --git a/test/sql/include/create_single_db.sql b/test/sql/include/create_single_db.sql index b71889763..2273da490 100644 --- a/test/sql/include/create_single_db.sql +++ b/test/sql/include/create_single_db.sql @@ -1,3 +1,4 @@ +\set VERBOSITY normal SET client_min_messages = WARNING; DROP DATABASE IF EXISTS single; SET client_min_messages = NOTICE; @@ -6,3 +7,4 @@ CREATE DATABASE single; \c single CREATE EXTENSION IF NOT EXISTS iobeamdb CASCADE; SELECT setup_single_node(hostname => 'fakehost'); -- fakehost makes sure there is no network connection +\set VERBOSITY verbose diff --git a/test/sql/tablespace.sql b/test/sql/tablespace.sql index 32a4e0960..5357f5a6b 100644 --- a/test/sql/tablespace.sql +++ b/test/sql/tablespace.sql @@ -28,5 +28,6 @@ insert into test_tspace values ('2017-01-20T09:00:02', 22.3, 'dev7'); \d+ _iobeamdb_internal.* --cleanup +\set VERBOSITY normal drop table test_tspace; drop tablespace tspace1; diff --git a/test/sql/timestamp.sql b/test/sql/timestamp.sql index bf790e80c..b3fd47265 100644 --- a/test/sql/timestamp.sql +++ b/test/sql/timestamp.sql @@ -110,10 +110,10 @@ SET timezone = 'UTC'; ALTER DATABASE single SET timezone ='UTC'; -- Conversion to timestamp using Postgres built-in function taking double -SELECT to_timestamp(1486480176.236538); +SELECT to_timestamp(1486480176.236538); -- extension-specific version taking microsecond UNIX timestamp -SELECT _iobeamdb_internal.to_timestamp(1486480176236538); +SELECT _iobeamdb_internal.to_timestamp(1486480176236538); -- Should be the inverse of the statement above. SELECT _iobeamdb_internal.to_unix_microseconds('2017-02-07 15:09:36.236538+00'); @@ -121,13 +121,14 @@ SELECT _iobeamdb_internal.to_unix_microseconds('2017-02-07 15:09:36.236538+00'); -- In UNIX microseconds, BIGINT MAX is smaller than internal date upper bound -- and should therefore be OK. Further, converting to the internal postgres -- epoch cannot overflow a 64-bit INTEGER since the postgres epoch is at a --- later date compared to the UNIX epoch, and is therefore represented by a +-- later date compared to the UNIX epoch, and is therefore represented by a -- smaller number SELECT _iobeamdb_internal.to_timestamp(9223372036854775807); -- Julian day zero is -210866803200000000 microseconds from UNIX epoch SELECT _iobeamdb_internal.to_timestamp(-210866803200000000); +\set VERBOSITY normal -- Going beyond Julian day zero should give out-of-range error SELECT _iobeamdb_internal.to_timestamp(-210866803200000001);