BUG #15426: A prior column in a default expression of an xmltable() call does not exist

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: profic(at)gmail(dot)com
Subject: BUG #15426: A prior column in a default expression of an xmltable() call does not exist
Date: 2018-10-10 17:34:01
Message-ID: 15426-e2cd2779c744a0ae@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 15426
Logged by: Ivan Ustûžanin
Email address: profic(at)gmail(dot)com
PostgreSQL version: 10.5
Operating system: Any
Description:

Executing
SELECT * FROM xmltable(
'.' PASSING '<r/>'
COLUMNS
c1 Text PATH 'name()',
c2 Text DEFAULT c1
);
complains that column c1 does not exist.
However the documentation states that it is possible to use prior columns in
default expressions of later columns.

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2018-10-10 21:22:56 Re: BUG #15425: DETACH/ATTACH PARTITION bug
Previous Message Alvaro Herrera 2018-10-10 16:47:28 Re: BUG #15425: DETACH/ATTACH PARTITION bug