repo.or.cz
/
pgweb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix link
[pgweb.git]
/
sql
/
varnish_local.sql
blob
b827017b37424c1dccbc892dcf2be05abf7363f8
1
BEGIN;
2
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
--
8
9
CREATE OR REPLACE FUNCTION varnish_purge(url text)
10
RETURNS bigint
11
AS $$
12
SELECT 1::bigint;
13
$$ LANGUAGE 'sql';
14
15
CREATE OR REPLACE FUNCTION varnish_purge_expr(url text)
16
RETURNS bigint
17
AS $$
18
SELECT 1::bigint;
19
$$ LANGUAGE 'sql';
20
21
COMMIT;