Peter Eisentraut <pete...@gmx.net> wrote: > On ons, 2011-11-09 at 10:49 -0500, Tom Lane wrote: >> Now admittedly you can hack it, in the same >> spirit as the C library functions that are declared to take const >> pointers and return non-const pointers to the very same data > > Which C library functions do that? Tom mentioned the strchr() function, which does do that. I don't actually find that surprising given my understanding of the semantics. That means that the function is promising not to modify the character array, but is not asserting that it knows the character array to be immutable. Makes sense to me. It's up to the caller to assign it to a "const char *" if it knows it passed in an immutable object. -Kevin
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers