Re: How to check if a Procedure or FUNCTION EXIST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Go ahead

DAVID OKEAMAH,DEVELOPER 

From: David G. Johnston <david.g.johnston@xxxxxxxxx>
Sent: Tuesday, May 27, 2025 4:06:44 PM
To: Edwin UY <edwin.uy@xxxxxxxxx>
Cc: Pgsql-admin <pgsql-admin@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: How to check if a Procedure or FUNCTION EXIST
 
On Tue, May 27, 2025 at 8:02 AM Edwin UY <edwin.uy@xxxxxxxxx> 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.


[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux