Re: Radical suggestion for plan executor? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Radical suggestion for plan executor?
Date
Msg-id 21525.995086431@sss.pgh.pa.us
Whole thread Raw
In response to Radical suggestion for plan executor?  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> [ replace switch statements with function pointers ]

I've built systems both ways, and I can't say that I find any real
gain in transparency either way.  I'm not excited about modifying
Postgres this way.  Function pointers have some definite downsides:
debuggers can't always step through them, source code analysis tools
tend not to understand them too well either, etc etc.

If we were using C++ then the tradeoffs would be different, but
this system is just plain C...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: iconv?
Next
From: Tom Lane
Date:
Subject: Re: Re: SOMAXCONN (was Re: Solaris source code)