Re: Query to check existence of stored procedure?

From: "Jim Buttafuoco" <jim(at)contactbda(dot)com>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Query to check existence of stored procedure?
Date: 2006-04-18 14:44:35
Message-ID: 20060418144321.M71202@contactbda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


don't forget about schema's, you will need to join with pg_namespace.oid and pg_proc.pronamespace

---------- Original Message -----------
From: "A. Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Sent: Tue, 18 Apr 2006 16:14:25 +0200
Subject: Re: [GENERAL] Query to check existence of stored procedure?

> am 18.04.2006, um 8:26:49 +0200 mailte Alexander Scholz folgendes:
> > Hi Newsgroup,
> >
> > I need a query which can check for the existence of a certain stored
> > procedure.
>
> proname in pg_proc.
>
> select count(*) from pg_proc where proname = 'your_function';
>
> HTH, Andreas
> --
> Andreas Kretschmer (Kontakt: siehe Header)
> Heynitz: 035242/47215, D1: 0160/7141639
> GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
> === Schollglas Unternehmensgruppe ===
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
------- End of Original Message -------

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Scholz 2006-04-18 15:08:50 Re: Query to check existence of stored procedure?
Previous Message Alban Hertroys 2006-04-18 14:37:48 Re: Give me some suggestion