Re: WITH ORDINALITY versus column definition lists

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Johnston <polobo(at)yahoo(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: WITH ORDINALITY versus column definition lists
Date: 2013-11-20 20:52:50
Message-ID: 1526.1384980770@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Johnston <polobo(at)yahoo(dot)com> writes:
> Just to clarify we are still allowing simple aliasing:

> select * from generate_series(1,2) with ordinality as t(f1,f2);

Right, that works (and is required by spec, I believe). It's what to
do with our column-definition-list extension that's at issue.

> Not sure if this is possible at this point but really the alias for the
> ordinality column would be attached directly to the ordinality keyword.

> e.g., ...) with ordinality{alias} as t(a1, a2)

This has no support in the standard.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Johnston 2013-11-20 21:12:39 Re: WITH ORDINALITY versus column definition lists
Previous Message Tom Lane 2013-11-20 20:44:03 Re: Proof of concept: standalone backend with full FE/BE protocol