pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Improve the error message for an inappropriate column definition
4+ messages / 2 participants
[nested] [flat]

* pgsql: Improve the error message for an inappropriate column definition
@ 2020-09-22 14:49 Tom Lane <tgl@sss.pgh.pa.us>
  2020-09-24 17:53 ` Re: pgsql: Improve the error message for an inappropriate column definition Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2020-09-22 14:49 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Improve the error message for an inappropriate column definition list.

The existing message about "a column definition list is only allowed for
functions returning "record"" could be given in some cases where it was
fairly confusing; in particular, a function with multiple OUT parameters
*does* return record according to pg_proc.  Break it down into a couple
more cases to deliver a more on-point complaint.  Per complaint from
Bruce Momjian.

Discussion: https://postgr.es/m/798909.1600562993@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ce90f075f0d831ca4085ba73891b7da2a2f7047e

Modified Files
--------------
src/backend/parser/parse_relation.c      | 44 +++++++++++++++++++++++++++-----
src/test/regress/expected/rangefuncs.out | 13 ++++++++++
src/test/regress/sql/rangefuncs.sql      |  5 ++++
3 files changed, 55 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Improve the error message for an inappropriate column definition
  2020-09-22 14:49 pgsql: Improve the error message for an inappropriate column definition Tom Lane <tgl@sss.pgh.pa.us>
@ 2020-09-24 17:53 ` Bruce Momjian <bruce@momjian.us>
  2020-09-24 18:58   ` Re: pgsql: Improve the error message for an inappropriate column definition Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Bruce Momjian @ 2020-09-24 17:53 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org

On Tue, Sep 22, 2020 at 02:49:22PM +0000, Tom Lane wrote:
> Improve the error message for an inappropriate column definition list.
> 
> The existing message about "a column definition list is only allowed for
> functions returning "record"" could be given in some cases where it was
> fairly confusing; in particular, a function with multiple OUT parameters
> *does* return record according to pg_proc.  Break it down into a couple
> more cases to deliver a more on-point complaint.  Per complaint from
> Bruce Momjian.
> 
> Discussion: https://postgr.es/m/798909.1600562993@sss.pgh.pa.us

Uh, did you not want to backpatch this?

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Improve the error message for an inappropriate column definition
  2020-09-22 14:49 pgsql: Improve the error message for an inappropriate column definition Tom Lane <tgl@sss.pgh.pa.us>
  2020-09-24 17:53 ` Re: pgsql: Improve the error message for an inappropriate column definition Bruce Momjian <bruce@momjian.us>
@ 2020-09-24 18:58   ` Tom Lane <tgl@sss.pgh.pa.us>
  2020-09-24 21:42     ` Re: pgsql: Improve the error message for an inappropriate column definition Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2020-09-24 18:58 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-committers@lists.postgresql.org

Bruce Momjian <bruce@momjian.us> writes:
> On Tue, Sep 22, 2020 at 02:49:22PM +0000, Tom Lane wrote:
>> Improve the error message for an inappropriate column definition list.

> Uh, did you not want to backpatch this?

No.  It's not a bug fix, and it'd add work for translators.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Improve the error message for an inappropriate column definition
  2020-09-22 14:49 pgsql: Improve the error message for an inappropriate column definition Tom Lane <tgl@sss.pgh.pa.us>
  2020-09-24 17:53 ` Re: pgsql: Improve the error message for an inappropriate column definition Bruce Momjian <bruce@momjian.us>
  2020-09-24 18:58   ` Re: pgsql: Improve the error message for an inappropriate column definition Tom Lane <tgl@sss.pgh.pa.us>
@ 2020-09-24 21:42     ` Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Bruce Momjian @ 2020-09-24 21:42 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org

On Thu, Sep 24, 2020 at 02:58:49PM -0400, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > On Tue, Sep 22, 2020 at 02:49:22PM +0000, Tom Lane wrote:
> >> Improve the error message for an inappropriate column definition list.
> 
> > Uh, did you not want to backpatch this?
> 
> No.  It's not a bug fix, and it'd add work for translators.

OK.  I guess this wasn't enough of an improvement.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee






^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2020-09-24 21:42 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22 14:49 pgsql: Improve the error message for an inappropriate column definition Tom Lane <tgl@sss.pgh.pa.us>
2020-09-24 17:53 ` Bruce Momjian <bruce@momjian.us>
2020-09-24 18:58   ` Tom Lane <tgl@sss.pgh.pa.us>
2020-09-24 21:42     ` Bruce Momjian <bruce@momjian.us>

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