Re: [BUGS] Bug #548: Misleading documentation of `palloc'

2002-01-03 Thread Bruce Momjian
Developer's FAQ updated to: palloc() and pfree() are used in place of malloc() and free() because we find it easier to automatically free all memory allocated when a query completes. This assures us that all memory that was allocated gets freed even if we have lost track of w

Re: [BUGS] Bug #548: Misleading documentation of `palloc'

2002-01-02 Thread Tom Lane
[EMAIL PROTECTED] writes: > I propose to make the documentation more concise in this point and to > add a macro like: > #define palloc_tx(sz) MemoryContextAlloc(TopTransactionContext, (sz)) I don't think it's a good idea to encourage people to allocate in TopTransactionContext as a substitute f

[BUGS] Bug #548: Misleading documentation of `palloc'

2002-01-02 Thread pgsql-bugs
Holger Krug ([EMAIL PROTECTED]) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description Misleading documentation of `palloc' Long Description In section 12.5.6 "Writing Code" of the "PostgreSQL 7.2 Programmer's Guide" the following is said: "When alloca