mirror of https://github.com/citusdata/citus.git
19 lines
519 B
Plaintext
19 lines
519 B
Plaintext
--
|
|
-- Test utility functions for cstore_fdw tables.
|
|
--
|
|
CREATE TABLE empty_table (a int) USING cstore_tableam;
|
|
CREATE TABLE table_with_data (a int) USING cstore_tableam;
|
|
CREATE TABLE non_cstore_table (a int);
|
|
COPY table_with_data FROM STDIN;
|
|
SELECT pg_relation_size('empty_table') < pg_relation_size('table_with_data');
|
|
?column?
|
|
----------
|
|
t
|
|
(1 row)
|
|
|
|
SELECT cstore_table_size('non_cstore_table');
|
|
ERROR: relation is not a cstore table
|
|
DROP TABLE empty_table;
|
|
DROP TABLE table_with_data;
|
|
DROP TABLE non_cstore_table;
|