From: | David Okeamah <whitneykiss741(at)gmail(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Edwin UY <edwin(dot)uy(at)gmail(dot)com> |
Cc: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: How to check if a Procedure or FUNCTION EXIST |
Date: | 2025-05-27 15:09:16 |
Message-ID: | AS4PR03MB8506D1C129C7615EE4695EE9F764A@AS4PR03MB8506.eurprd03.prod.outlook.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Go ahead
DAVID OKEAMAH,DEVELOPER
________________________________
From: David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
Sent: Tuesday, May 27, 2025 4:06:44 PM
To: Edwin UY <edwin(dot)uy(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: How to check if a Procedure or FUNCTION EXIST
On Tue, May 27, 2025 at 8:02 AM Edwin UY <edwin(dot)uy(at)gmail(dot)com<mailto:edwin(dot)uy(at)gmail(dot)com>> wrote:
I want to check for function and procedure if they exist or not including those created by the users as well as system functions
Are you aware that even in the same schema multiple functions and procedures can share the same "name"?
proowner whether it is a system function or user-defined?
That seems like a poor test for that property. A system function is one that exists in the pg_catalog schema, which is the schema the system places all of its objects into.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2025-05-27 15:31:43 | Re: Tables in public schema |
Previous Message | David G. Johnston | 2025-05-27 15:06:44 | Re: How to check if a Procedure or FUNCTION EXIST |