mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-25 16:02:27 +00:00

It's just another type of purge, so it's added as an extra option with 'K' as the key (as 'X' was already taken).
25 lines
438 B
PL/PgSQL
25 lines
438 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';
|
|
|
|
CREATE OR REPLACE FUNCTION varnish_purge_xkey(key text)
|
|
RETURNS void
|
|
AS $$
|
|
$$ LANGUAGE 'sql';
|
|
|
|
COMMIT;
|