Re: pgsql/src backend/catalog/index.c backend/pars ... - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql/src backend/catalog/index.c backend/pars ...
Date
Msg-id 26963.990226831@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql/src backend/catalog/index.c backend/pars ...  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-committers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Here is my comment added to the top of the code.  Is it correct?

>  *     This code is confusing code because the database can accept
>  *  relation.column, column.function, or relation.column.function.
>  *  It can also be called as func(col) or func(col,col).

That's correct.

>  *    Funcname is the first parameter, and fargs are the rest.

That's not, or at least it doesn't apply to the dot-notation cases.
func(col) and col.func are equivalent notations and look the same
by the time they get to this routine.

            regards, tom lane

pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pgsql/src backend/catalog/index.c backend/pars ...
Next
From: Bruce Momjian - CVS
Date:
Subject: pgsql/src/backend/parser parse_func.c