Re: Unportability of setvbuf()

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Unportability of setvbuf()
Date: 2014-05-15 15:48:01
Message-ID: 20140515154801.GB9042@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

> It might also be reasonable to create a wrapper macro along the line of
> "PG_STD_IO_BUFFERING()" that would encapsulate the whole sequence
> setvbuf(stdout, NULL, _IOLBF, 0);
> setvbuf(stderr, NULL, _IONBF, 0);
> Or maybe we should have separate macros for those two calls. Or maybe
> this is just a useless layer of abstraction and PG_IOLBF is enough
> to make the calls portable.
>
> Thoughts?

I don't really know all that much about this stuff, but see commits
6eda3e9c27781dec369542a9b20cba7c3d832a5e and its parent about
isolationtester.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2014-05-15 16:35:59 Re: proposal: Set effective_cache_size to greater of .conf value, shared_buffers
Previous Message Heikki Linnakangas 2014-05-15 15:33:19 Re: Problem with txid_snapshot_in/out() functionality