Mercurial > gemma
view schema/updates/1409/01.add_fm_validity_indexes.sql @ 5677:a57be8bfb6ea sr-v2
More suited file names.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 11 Feb 2024 09:51:21 +0100 |
parents | de190de05f67 |
children |
line wrap: on
line source
DO LANGUAGE plpgsql $$ DECLARE table_suffix varchar; BEGIN FOREACH table_suffix IN ARRAY ARRAY[ 'bcnlat_hydro', 'bcnlat_ienc', 'boycar', 'boylat_hydro', 'boylat_ienc', 'boysaw', 'boyspp', 'daymar_hydro', 'daymar_ienc', 'lights', 'rtpbcn', 'topmar', 'notmrk'] LOOP EXECUTE format( 'CREATE INDEX fairway_marks_%1$s_validity ' 'ON waterway.fairway_marks_%1$s USING GiST (validity)', table_suffix); END LOOP; END; $$;