From: | Edwin UY <edwin(dot)uy(at)gmail(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(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-28 00:22:38 |
Message-ID: | CA+wokJ8OoVEwBSXsaFxE5MQ7hyjP5Z3OZk6WU0f3Wy7KXm7=8w@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi David J
Just thought I will just have to check whether the proowner is one of the
users/roles that we've created and if it is so, then it is not a system
function.
By system function, I mean something like version or current_user, they are
system functions, right? Or am I wrong again :(
Regards,
Ed
On Wed, May 28, 2025 at 3:07 AM David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> On Tue, May 27, 2025 at 8:02 AM Edwin UY <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 | David G. Johnston | 2025-05-28 00:26:51 | Re: How to check if a Procedure or FUNCTION EXIST |
Previous Message | Laurenz Albe | 2025-05-27 21:36:32 | Re: How to check if a Procedure or FUNCTION EXIST |