Do not force DROP FUNCTION but rely on CREATE OR REPLACE

We'll bet on no old signature being left around.

Presence of an old signature would break at runtime
with a message like:
ERROR:  function CDB_UserTables() is not unique

Closes #25
This commit is contained in:
Sandro Santilli
2014-05-20 16:37:36 +02:00
parent eecab6e24c
commit 0082138503
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
--
-- Currently accepted permissions are: 'public', 'private' or 'all'
--
DROP FUNCTION IF EXISTS CDB_UserTables(); -- replaced by:
-- DROP FUNCTION IF EXISTS CDB_UserTables(); -- replaced by:
CREATE OR REPLACE FUNCTION CDB_UserTables(perm text DEFAULT 'all')
RETURNS SETOF information_schema.sql_identifier
AS $$