From: | "Nikolay Samokhvalov" <samokhvalov(at)gmail(dot)com> |
---|---|
To: | "Alexander Scholz" <alexander(dot)scholz1(at)freenet(dot)de> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Query to check existence of stored procedure? |
Date: | 2006-04-18 14:06:39 |
Message-ID: | e431ff4c0604180706j4f066471q272bab04447bea4@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
select proname from pg_catalog.pg_proc where proname = 'my_proc_name';
On 4/18/06, Alexander Scholz <alexander(dot)scholz1(at)freenet(dot)de> wrote:
> Hi Newsgroup,
>
> I need a query which can check for the existence of a certain stored
> procedure.
>
> (The pendant for MS SQL is
>
> IF EXISTS (SELECT * FROM "sysobjects" WHERE "id" =
> object_id(N'"MyTestStoredProcedure"') and OBJECTPROPERTY("id",
> N'IsProcedure') = 1)
> ...
> )
>
> Any help would be appreciated! :-)
>
> Thanx in advance,
>
> Alexander.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
--
Best regards,
Nikolay
From | Date | Subject | |
---|---|---|---|
Next Message | A. Kretschmer | 2006-04-18 14:14:25 | Re: Query to check existence of stored procedure? |
Previous Message | Tom Lane | 2006-04-18 13:50:04 | Re: Vacuuming of indexes on tables. |