Removes unused functions

This commit is contained in:
Guido Fioravantti
2015-11-06 18:28:29 +01:00
parent 38e84201cb
commit 97af24c2e0
5 changed files with 0 additions and 57 deletions

View File

@@ -1,19 +0,0 @@
-- Check if a given host is up by performing a ping -c 1 call.
CREATE OR REPLACE FUNCTION cdb_geocoder_server._check_host(hostname TEXT)
RETURNS BOOLEAN
AS $$
import os
response = os.system("ping -c 1 " + hostname)
return False if response else True
$$ LANGUAGE plpythonu VOLATILE;
-- Returns current pwd
CREATE OR REPLACE FUNCTION cdb_geocoder_server._pwd()
RETURNS TEXT
AS $$
import os
return os.getcwd()
$$ LANGUAGE plpythonu VOLATILE;

View File

@@ -1,5 +0,0 @@
-- Check that check_host is working
select cdb_geocoder_server._check_host('cartodb.com');
-- Check that check_pwd is working
select cdb_geocoder_server._pwd();