Re: [HACKERS] WIP: pushing parser hooks through SPI and plancache

2009-11-04 Thread Alvaro Herrera
Tom Lane wrote: > Alvaro Herrera writes: > > Tom Lane wrote: > >> ... For the moment I've worked > >> around this by putting the typedef into nodes/params.h itself, but I > >> can't say I find that a pleasing solution. Has anyone got a better > >> idea? Should we make a parser/something header

Re: [HACKERS] WIP: pushing parser hooks through SPI and plancache

2009-11-04 Thread Tom Lane
Alvaro Herrera writes: > Tom Lane wrote: >> ... For the moment I've worked >> around this by putting the typedef into nodes/params.h itself, but I >> can't say I find that a pleasing solution. Has anyone got a better >> idea? Should we make a parser/something header that just provides that >> t

Re: [HACKERS] WIP: pushing parser hooks through SPI and plancache

2009-11-04 Thread Alvaro Herrera
Tom Lane wrote: > It turns out that this typedef is needed in two relatively low-level > .h files: nodes/params.h and utils/plancache.h. My original idea had > been to define the hook typedef in parser/parse_node.h where struct > ParseState is defined. But that would have required pulling a boat