DrYSG <ygutfreund(at)draper(dot)com> writes:
> My nave hope was that if iFILTER was set to: "CADRG, DTED1, DTED2, SRTF"
> (cat.type in (iFilter)) would expand to:
> (cat.type in (CADRG, DTED1, DTED2, SRTF))
> But that is not working.
Nope, it will not (and a good thing too IMO --- would you really want
commas in text strings to be dangerous?)
You might be able to do what you need by passing the argument as a text
array and using "cat.type = any(ifilter)".
regards, tom lane