Re: bug in GUC - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bug in GUC
Date
Msg-id 13534.1088085728@sss.pgh.pa.us
Whole thread Raw
In response to Re: bug in GUC  ("Thomas Hallgren" <thhal@mailblocks.com>)
List pgsql-hackers
"Thomas Hallgren" <thhal@mailblocks.com> writes:
> Rather than clutter the code with the same ereport over and over again (I
> count 12 malloc's in guc.c alone), I'd like something like this:

The larger question is why it contains even one.  In general, use of
malloc in the backend is the mark of a newbie.  I'd think palloc in
TopMemoryContext would be a more suitable approach.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: warning missing
Next
From: "Jeroen T. Vermeulen"
Date:
Subject: Re: PREPARE and transactions