postgresql_16:7.1.122.4 Examples
PostgreSQL 16 > Reference > SQL Commands > DROP PROCEDURE > Examples
If there is only one procedure do_db_maintenance, this command is sufficient to drop it: DROP PROCEDURE do_db_maintenance;
Given this procedure definition: CREATE PROCEDURE do_db_maintenance(IN target_schema text, OUT results text) ... any one of these commands would work to drop it: DROP PROCEDURE do_db_maintenance(IN target_schema text, OUT results text); DROP PROCEDURE do_db_maintenance(IN text, OUT text); DROP PROCEDURE do_db_maintenance(IN text); DROP PROCEDURE do_db_maintenance(text); DROP PROCEDURE do_db_maintenance(text, text); -- potentially ambiguous However, the last example would be ambiguous if there is also, say, CREATE PROCEDURE do_db_maintenance(IN target_schema text, IN options text) ...