Re: [HACKERS] How PG parser search (build-in) function?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karel Zak - Zakkr <zakkr(at)zf(dot)jcu(dot)cz>
Cc: pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] How PG parser search (build-in) function?
Date: 2000-01-13 15:50:07
Message-ID: 12723.947778607@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Karel Zak - Zakkr <zakkr(at)zf(dot)jcu(dot)cz> writes:
> I have a question... How PG parser select (build-in) function?
> Check parser function's arguments datetypes only or check returns value
> datetype too (for function searching in system cache ..etc)?

The argument types have to be different. In general, the parser
doesn't *know* what the return type of the function is; it has to
discover that by looking up the function. So you can't have two
functions of the same name unless they differ in number and/or type
of arguments.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-01-13 15:57:33 Re: [HACKERS] TODO list updated
Previous Message Tom Lane 2000-01-13 15:45:15 Re: [HACKERS] TODO list updated