Files
postgres-web/sql/varnish_local.sql
Magnus Hagander 8306ebdf8e Fix function signatures of varnish sql funcs in dev env
This should be the same as are used in the prodiction. We don't use them
in a way that has any effect on this today, but in case we do in the
future.
2018-07-06 15:08:36 +02:00

19 lines
342 B
PL/PgSQL

BEGIN;
--
-- "cheating" version of the varnish_purge() function
-- that can be used on a local installation that doesn't
-- have any frontends.
--
CREATE OR REPLACE FUNCTION varnish_purge(url text)
RETURNS void
AS $$
$$ LANGUAGE 'sql';
CREATE OR REPLACE FUNCTION varnish_purge_expr(expr text)
RETURNS void
AS $$
$$ LANGUAGE 'sql';
COMMIT;