X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 301D2310855 for ; Mon, 30 Jun 2003 22:03:33 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 94113-08 for ; Mon, 30 Jun 2003 19:03:22 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by svr1.postgresql.org (Postfix) with ESMTP id 72EE53106E3 for ; Mon, 30 Jun 2003 19:03:22 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3169785; Mon, 30 Jun 2003 15:03:33 -0700 Content-Type: text/plain; charset="iso-8859-2" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Tomasz Myrta Subject: Re: cleaning up useless pl/pgsql functions Date: Mon, 30 Jun 2003 15:02:24 -0700 User-Agent: KMail/1.4.3 Cc: PGSQL-SQL References: <3F00A7F8.80107@klaster.net> <3F00AC58.5070905@klaster.net> In-Reply-To: <3F00AC58.5070905@klaster.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200306301502.24119.josh@agliodbs.com> X-Archive-Number: 200306/348 X-Sequence-Number: 14106 Tomasz,=20 > Hmm Answer to myself: >=20 > DELETE from pg_proc where prolang =3D(select oid from pg_language where= =20 > lanname=3D'plpgsq'); >=20 > What do you think about it? You probably also want to put a "proowner =3D {your userid}" condition in t= here,=20 just in case there are any builtins/contrib stuff that uses plpgsql. --=20 -Josh Berkus Aglio Database Solutions San Francisco