timescaledb/tsl/test/sql/compression_with_oids.sql
Ruslan Fomkin dfcb6afb39 Move out WITH OIDS test to be run on PG12_LT
WITH OIDS option doesn't exist in PG12. This fix moves the test of
blocking compression for tables WITH OIDS into a separate file, which
is run only for PG version before 12.
2020-04-14 23:12:15 +02:00

13 lines
488 B
SQL

-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
CREATE TABLE with_oids (a INTEGER NOT NULL, b INTEGER) WITH OIDS;
SELECT table_name FROM create_hypertable('with_oids', 'a', chunk_time_interval=> 10);
\set ON_ERROR_STOP 0
ALTER TABLE with_oids SET (timescaledb.compress, timescaledb.compress_orderby='a');
\set ON_ERROR_STOP 1
DROP TABLE with_oids;