Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: cleaner_append_va.diff
Description: application/octet-stream (6.4 KB)

Responses

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group