Reduce verbosity to remove line nums from output.

This commit is contained in:
Rob Kiefer 2017-03-02 13:09:33 -05:00
parent d1af4cfab0
commit 5478231f3e
16 changed files with 93 additions and 65 deletions

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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

View File

@ -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,

View File

@ -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" (

View File

@ -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,

View File

@ -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" (

View File

@ -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;

View File

@ -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

View File

@ -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" (

View File

@ -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

View File

@ -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;

View File

@ -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);