Re: Opinion / advice needed for TODO: function params ref by name

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gevik Babakhani" <pgdev(at)xs4all(dot)nl>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Opinion / advice needed for TODO: function params ref by name
Date: 2007-11-06 16:37:38
Message-ID: 22432.1194367058@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Gevik Babakhani" <pgdev(at)xs4all(dot)nl> writes:
> Unfortunately for func.param is this problematic because
> qualifiedNameToVar and transformWholeRowRef/ParseFuncOrColumn
> internally call RTE functions which justifiably throw an "ambiguous column
> error".

What's the problem? If it's ambiguous within the query, it's ambiguous.

> a) Check for func.param before qualifiedNameToVar and
> transformWholeRowRef/ParseFuncOrColumn

This is 100% backwards.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-11-06 16:58:05 Re: Fix pg_dump dependency on postgres.h
Previous Message Gevik Babakhani 2007-11-06 16:20:42 Opinion / advice needed for TODO: function params ref by name