Do not refresh osm_water_point concurrently
"Create a unique index with no WHERE clause on one or more columns of the materialized view."
This commit is contained in:
parent
f6c3b932c7
commit
18110d8ca6
@ -31,7 +31,7 @@ CREATE OR REPLACE FUNCTION water_name.refresh() RETURNS trigger AS
|
|||||||
$BODY$
|
$BODY$
|
||||||
BEGIN
|
BEGIN
|
||||||
RAISE LOG 'Refresh water_name';
|
RAISE LOG 'Refresh water_name';
|
||||||
REFRESH MATERIALIZED VIEW CONCURRENTLY osm_water_point;
|
REFRESH MATERIALIZED VIEW osm_water_point;
|
||||||
DELETE FROM water_name.updates;
|
DELETE FROM water_name.updates;
|
||||||
RETURN null;
|
RETURN null;
|
||||||
END;
|
END;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user