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:
stirringhalo 2017-01-11 13:05:17 -05:00
parent f6c3b932c7
commit 18110d8ca6

View File

@ -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;