Re: Proposition for autoname columns - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Proposition for autoname columns
Date
Msg-id 20201112005552.GA11367@momjian.us
Whole thread Raw
In response to Re: Proposition for autoname columns  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
Responses Re: Proposition for autoname columns  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Proposition for autoname columns  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Thu, Nov 12, 2020 at 12:18:49AM +0000, Dagfinn Ilmari Mannsåker wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I think we could do it, but it would only work if the column was output
> > as a single json value, and not a multi-key/value field.  I am afraid if
> > we tried to do it, the result would be too inconsistent to be useful.
> 
> Could this be done via the support function, so that the top-level
> operator/function in each select list item can return a suggested column
> name if the relevant arguments are constants?

Yes, the user explicitly calling a function would be much easier to
predict.

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

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




pgsql-hackers by date:

Previous
From: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Date:
Subject: Re: Proposition for autoname columns
Next
From: Michael Paquier
Date:
Subject: Re: pg_upgrade analyze script