Make create_immv STRICT

This currently crashes the server: `SELECT create_immv(NULL, 'SELECT * FROM test');` . Marking the function STRICT will avoid calling it with NULL arguments.

Alternative would be check for NULLs in create_immv.
This commit is contained in:
Marco Slot 2022-04-01 15:14:15 +02:00 committed by GitHub
parent 9f02dc84dd
commit 61c93dc2dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@ SELECT pg_catalog.pg_extension_config_dump('pg_catalog.pg_ivm_immv', '');
CREATE FUNCTION create_immv(text, text)
RETURNS bigint
STRICT
AS 'MODULE_PATHNAME', 'create_immv'
LANGUAGE C;