mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
Add a varnish_purge() function to be used in local installs
This commit is contained in:
15
sql/varnish_local.sql
Normal file
15
sql/varnish_local.sql
Normal file
@ -0,0 +1,15 @@
|
||||
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 bigint
|
||||
AS $$
|
||||
SELECT 1::bigint;
|
||||
$$ LANGUAGE 'sql';
|
||||
|
||||
COMMIT;
|
Reference in New Issue
Block a user