title: Drop function in Postgres
body: <p>I have the following function:</p>
  
  <pre><code>CREATE FUNCTION "updateStat"(_request_date timestamp without time zone, _calls integer, _latency integer) RETURNS void AS $$
  BEGIN
    LOCK TABLE "statistics" IN SHARE ROW EXCLUSIVE MODE;
    WITH upsert AS (UPDATE "statistics" set calls = calls + _calls, total_latency = total_latency + _latency WHERE request_date=_request_date RETURNING request_date)
    INSERT INTO "statistics" ("request_date", "calls", "total_latency") SELECT _request_date, _calls, _latency WHERE NOT EXISTS (SELECT "request_date" FROM upsert);
  END;
  $$ LANGUAGE plpgsql;
  </code></pre>
  
  <p>How can I drop such function?</p>
  
  <p>I have tried the following:</p>
  
  <pre><code># DROP FUNCTION updateStat(void);
  ERROR:  function updatestat(void) does not exist
  # DROP FUNCTION updateStat();
  ERROR:  function updatestat() does not exist
  </code></pre>