mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 11:03:36 +08:00
Functions marked IMMUTABLE should also be parallel safe, but aren't by default. This change marks all immutable functions as parallel safe and removes the IMMUTABLE definitions on some functions that have been wrongly labeled as IMMUTABLE. If functions that are IMMUTABLE does not have the PARALLEL SAFE label, then some standard PostgreSQL regression tests will fail (this is true for PostgreSQL >= 10).
7 lines
343 B
SQL
7 lines
343 B
SQL
CREATE OR REPLACE FUNCTION _timescaledb_internal.ddl_command_end() RETURNS event_trigger
|
|
AS '$libdir/timescaledb', 'timescaledb_ddl_command_end' LANGUAGE C;
|
|
|
|
DROP EVENT TRIGGER IF EXISTS timescaledb_ddl_command_end;
|
|
CREATE EVENT TRIGGER timescaledb_ddl_command_end ON ddl_command_end
|
|
EXECUTE PROCEDURE _timescaledb_internal.ddl_command_end();
|