On Tue, Jun 21, 2011 at 5:51 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > Declarations like "const structtype *param" are fine, because those > create a real, enforced contract on what the function can do to data > that is visible to its caller. But I don't see any value at all in > const-ifying the parameter itself. > > Comments?
What about making a separate typedef for that (like ConstRelation)? Maybe the const contract is useful, and aren't there occasional performance enhancements the compiler can make when it function arguments are const? merlin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers