From: Tom Lane <tgl@sss.pgh.pa.us>
To: jim@contactbda.com
Cc: Scott Petersen <scottpetersen@softhome.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Deleting Functions
Date: Wed, 23 Aug 2006 17:34:36 -0400
Message-ID: <24734.1156368876@sss.pgh.pa.us> (raw)
In-Reply-To: <20060823195430.M44644@contactbda.com>
References: <44ECAC88.4060208@softhome.net>
<20060823195430.M44644@contactbda.com>
"Jim Buttafuoco" <jim@contactbda.com> writes:
> select 'drop function ' || nspname || '.' || proname || '(' || pg_catalog.oidvectortypes(p.proargtypes) || ');' from
> pg_proc p join pg_namespace b on (p.pronamespace=b.oid) where nspname='public';
Seems like you could do that more easily with regprocedure:
select 'drop function ' || p.oid::regprocedure || ';' from
pg_proc p join pg_namespace b on (p.pronamespace=b.oid) where nspname='public';
[ tries it ... ] ... except that there's no regprocedure-to-text cast.
How annoying :-(
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, jim@contactbda.com, scottpetersen@softhome.net
Subject: Re: Deleting Functions
In-Reply-To: <24734.1156368876@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox