pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah. <mallah@trade-india.com>
To: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Re: Delete function
Date: Tue, 7 May 2002 18:46:00 +0530
Message-ID: <200205071846.00311.mallah@trade-india.com> (raw)
In-Reply-To: <012f01c1f5c8$bad48a00$d5a9fea9@GMENDOLA2>
References: <009501c1f598$bb3fa8b0$d5a9fea9@GMENDOLA2>
	<200205071602.41096.mallah@trade-india.com>
	<012f01c1f5c8$bad48a00$d5a9fea9@GMENDOLA2>

Thanks Mendola ,
that was a nice idea for functions....
regds
mallah.


On Tuesday 07 May 2002 06:41 pm, Gaetano Mendola wrote:
> "Rajesh Kumar Mallah." <mallah@trade-india.com> wrote:
> > eg
> > regression=> \o command.sql
> > regression=> select 'DROP function  ' || proname  from  pg_proc WHERE
>
> proname
>
> > ~ '^sp_';
> >
> > then psql -f  command.sql
>
> This work fine with the views, unfortunately when you drop a function you
> should specify the argument type, so I did in this way (I think is the
> clean way):
>
> $ psql -t -c "SELECT 'DROP function ' || proname || ' ('||
> oidvectortypes(proargtypes) || ');' from pg_proc WHERE proname ~ '^sp_'" >
> todelete.sql
> $ psql -f todelete.sql
>
>
> Ciao
> Gaetano




view thread (5+ messages)

Message-ID: <200205071846.00311.mallah@trade-india.com>
Permalink:  ../200205071846.00311.mallah@trade-india.com/
Also on:    postgresql.org/message-id/200205071846.00311.mallah@trade-india.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mallah@trade-india.com, mendola@bigfoot.com
  Subject: Re: Delete function
  In-Reply-To: <200205071846.00311.mallah@trade-india.com>
  References: <009501c1f598$bb3fa8b0$d5a9fea9@GMENDOLA2> <200205071602.41096.mallah@trade-india.com> <012f01c1f5c8$bad48a00$d5a9fea9@GMENDOLA2> <200205071846.00311.mallah@trade-india.com>

* 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