Matvey Arye 95afe4f2a0 Allow extension to be installed in a different schema
This changes the extension to allow it be installed in a different
schema. Part of this change also adds a partioning_func_schema option
so that the partitioning_func does not need to live in search_path.
2017-01-30 12:02:57 -05:00

22 lines
658 B
SQL

\set ON_ERROR_STOP 1
\o /dev/null
\ir include/insert.sql
\o
\set ECHO ALL
\c Test1
SELECT * FROM PUBLIC."testNs";
EXPLAIN (verbose ON, costs off) SELECT * FROM PUBLIC."testNs";
\echo "The following queries should NOT scan testNs._hyper_1_1_0_partition"
EXPLAIN (verbose ON, costs off) SELECT * FROM PUBLIC."testNs" WHERE device_id = 'dev20';
EXPLAIN (verbose ON, costs off) SELECT * FROM PUBLIC."testNs" WHERE device_id = 'dev'||'20';
EXPLAIN (verbose ON, costs off) SELECT * FROM PUBLIC."testNs" WHERE 'dev'||'20' = device_id;
--TODO: handle this later?
--EXPLAIN (verbose ON, costs off) SELECT * FROM "testNs" WHERE device_id IN ('dev20', 'dev21');