Cleaner API for appendStringInfoVA

From: "Marko Kreen" <markokr(at)gmail(dot)com>
To: "Postgres Patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Cleaner API for appendStringInfoVA
Date: 2007-11-23 09:55:22
Message-ID: e51f66da0711230155n1e5907bboa22aef5b9a5be9b4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Attached patch moves decision how much more room to allocate
from callers of appendStringInfoVA to inside the function,
where more info is available.

On systems with broken vsnprintf() it falls back
to doubleing the buffer.

Fixme: the +1 could be something larger? Aligned?

--
marko

Attachment Content-Type Size
cleaner_append_va.diff application/octet-stream 6.4 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2007-11-23 11:10:37 Re: [HACKERS] wrong behavior using to_char() again
Previous Message Marko Kreen 2007-11-23 08:53:50 Re: plpython crash on exception