Re: Input Function (domain_in) Call - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Input Function (domain_in) Call
Date
Msg-id 17193.1155994743@sss.pgh.pa.us
Whole thread Raw
In response to Input Function (domain_in) Call  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
List pgsql-hackers
Volkan YAZICI <yazicivo@ttnet.net.tr> writes:
> I was using OidInputFunctionCall() to cast a basic type into a domain
> type.
> Is this the right way to use domain_in() function?

If you're doing it more than about once per SQL command, you should find
a place to cache the fmgr lookup info and use InputFunctionCall instead.
Look at the standard PLs for examples.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: BugTracker (Was: Re: 8.2 features status)
Next
From: Tom Lane
Date:
Subject: pg_dump versus SERIAL, round N