mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-22 22:11:29 +08:00
14 lines
379 B
SQL
14 lines
379 B
SQL
\unset ECHO
|
|
\o /dev/null
|
|
\ir include/create_single_db.sql
|
|
\o
|
|
\set ECHO errors
|
|
\set VERBOSITY default
|
|
|
|
DO $$
|
|
BEGIN
|
|
ASSERT( _timescaledb_catalog.get_partition_for_key('', 16:: INT4) = 13 );
|
|
ASSERT( _timescaledb_catalog.get_partition_for_key('dev1', 16:: INT4) = 4 );
|
|
ASSERT( _timescaledb_catalog.get_partition_for_key('longlonglonglongpartitionkey', 16:: INT4) = 6 );
|
|
END$$;
|