timescaledb/test/sql/util.sql
Matvey Arye 543a75f865 Refactor regression tests
This commit moves a lot of test setup logic to runner.sh. Also
passes the right commands to the regression infrastructure to create
appropriate users and run tests as a regular user.
2017-10-05 15:56:33 -04:00

10 lines
312 B
SQL

\set ECHO errors
\set VERBOSITY default
DO $$
BEGIN
ASSERT( _timescaledb_internal.get_partition_for_key('') = 669664877 );
ASSERT( _timescaledb_internal.get_partition_for_key('dev1') = 1129986420 );
ASSERT( _timescaledb_internal.get_partition_for_key('longlonglonglongpartitionkey') = 1169179734);
END$$;