Fix link
[pgweb.git] / sql / varnish_local.sql
blobb827017b37424c1dccbc892dcf2be05abf7363f8
1 BEGIN;
3 --
4 -- "cheating" version of the varnish_purge() function
5 -- that can be used on a local installation that doesn't
6 -- have any frontends.
7 --
9 CREATE OR REPLACE FUNCTION varnish_purge(url text)
10 RETURNS bigint
11 AS $$
12    SELECT 1::bigint;
13 $$ LANGUAGE 'sql';
15 CREATE OR REPLACE FUNCTION varnish_purge_expr(url text)
16 RETURNS bigint
17 AS $$
18    SELECT 1::bigint;
19 $$ LANGUAGE 'sql';
21 COMMIT;