Re: proposal: less strict input of regprocedure type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: less strict input of regprocedure type
Date: 2018-12-01 19:49:01
Message-ID: 4224.1543693741@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> input value of regrocedure type should be complete function signature.
> postgres=# select 'uni'::regprocedure;
> ERROR: expected a left parenthesis
> LINE 1: select 'uni'::regprocedure;
> ^

Yup.

> I think so it is not necessary, when function name is unique.

This doesn't seem like a great idea to me. It will just encourage
people to write brittle code that falls over as soon as the name
isn't unique. Also, if you're willing to assume that it is,
why not just use regproc?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Verite 2018-12-01 20:08:19 Re: [HACKERS] Can ICU be used for a database's default sort order?
Previous Message Pavel Stehule 2018-12-01 19:39:59 proposal: less strict input of regprocedure type