mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 02:23:49 +08:00
5 lines
260 B
SQL
5 lines
260 B
SQL
-- our default partitioning function.
|
|
-- returns a hash of val modulous the mod_factor
|
|
CREATE OR REPLACE FUNCTION _timescaledb_internal.get_partition_for_key(val text) RETURNS int
|
|
AS '$libdir/timescaledb', 'get_partition_for_key' LANGUAGE C IMMUTABLE STRICT;
|