On Mon, Feb 4, 2013 at 10:52 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > Phil Sorber <p...@omniti.com> writes: >> get_progname() returns a strdup()'d value. Shouldn't it then be simply >> char * and not const char *? Otherwise free() complains loudly without >> a cast. > > I don't believe that callers should be trying to free() the result. > Whether it's been strdup'd or not is not any of their business.
Is that just because of the nature of this specific function? > > regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers