domains code query - Mailing list pgsql-hackers

From Andrew Dunstan
Subject domains code query
Date
Msg-id 44E109AD.1020505@dunslane.net
Whole thread Raw
Responses Re: domains code query  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
*
domains.c contains the followng snippet in domain_in():

   else* *if* (my_extra->domain_type != domainType)    domain_state_setup(my_extra, domainType, false,
    fcinfo->flinfo->fn_mcxt);
 


We were just looking at this code (in the context of implementing enums) and wondered when this case might arise. 
Would it be when more than one domain is used in a table row? Or are we smarter than that?

Putting it another way, how often are fcinfo/flinfo created and reused?

TIA

cheers

andrew



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] [Patch] - Fix for bug #2558, InitDB failed to run
Next
From: Tom Lane
Date:
Subject: Re: domains code query