"David G. Johnston" <david.g.johns...@gmail.com> writes:
> On Fri, Feb 9, 2024, 12:05 Deepak M <mahtodeepa...@gmail.com> wrote:
>> Folks, When tried to create a function with the same signature as
>> procedure it fails.

> That seems like a good hint you cannot do it.  Specifically because they
> get defined in the same internal catalog within which names must be unique.

Worth noting perhaps that this is actually required by the SQL
standard: per spec, functions and procedures are both "routines"
and share the same namespace, which is necessary so that commands
like DROP ROUTINE are well-defined.

                        regards, tom lane


Reply via email to