Re: Query to check existence of stored procedure?

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Query to check existence of stored procedure?
Date: 2006-04-18 14:14:25
Message-ID: 20060418141425.GE5964@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 ===

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-04-18 14:20:04 Re: i have a core file on running gdb the op
Previous Message Nikolay Samokhvalov 2006-04-18 14:06:39 Re: Query to check existence of stored procedure?