public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Edwin UY <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: Re: How to check if a Procedure or FUNCTION EXIST
Date: Tue, 27 May 2025 08:06:44 -0700
Message-ID: <CAKFQuwYPb9+Lei7qx4k87cLUHNcyt_BTpGGZd6gxQhSv_OCaNA@mail.gmail.com> (raw)
In-Reply-To: <CA+wokJ_fJphYtOFxd2nHV7P6B9YdhN3=cOcevGHXPd50iUvreQ@mail.gmail.com>
References: <CA+wokJ_fJphYtOFxd2nHV7P6B9YdhN3=cOcevGHXPd50iUvreQ@mail.gmail.com>

On Tue, May 27, 2025 at 8:02 AM Edwin UY <[email protected]> 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.


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: How to check if a Procedure or FUNCTION EXIST
  In-Reply-To: <CAKFQuwYPb9+Lei7qx4k87cLUHNcyt_BTpGGZd6gxQhSv_OCaNA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox