Skip to content

Commit b7067b8

Browse files
committed
Remove IMMUTABLE volatility classification from trigger function
It is not clear how exactly the volatility classification works in trigger functions, so it is better to be on the safe side here and not declare the function IMMUTABLE (which makes it the default VOLATILE instead). https://www.postgresql.org/docs/current/xfunc-volatility.html
1 parent 342403b commit b7067b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pgsql-helper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void create_geom_check_trigger(pg_conn_t *db_connection,
4848
" END IF;\n"
4949
" RETURN NULL;\n"
5050
"END;"
51-
"$$ LANGUAGE plpgsql IMMUTABLE;"_format(func_name, geom_column));
51+
"$$ LANGUAGE plpgsql;"_format(func_name, geom_column));
5252

5353
db_connection->exec(
5454
"CREATE TRIGGER \"{}\""

0 commit comments

Comments
 (0)