Commit 76279305 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[postgres] remove node_pos index which is not immutable

This caused subtle bugs when ALTER TABLE with search_title was
called. It is a wrong practice to define an index immutable when in
fact it's not. The count(id) part makes it mutable in fact.
parent 93221100
......@@ -210,5 +210,5 @@ CREATE OR REPLACE function node_pos(int, int) returns bigint
LANGUAGE SQL immutable;
--drop index node_by_pos;
create index node_by_pos on nodes using btree(node_pos(id,typename));
--create index node_by_pos on nodes using btree(node_pos(id,typename));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment