Re: Re[4]: Allowing WAL fsync to be done via O_SYNC - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re[4]: Allowing WAL fsync to be done via O_SYNC
Date
Msg-id 25302.984764172@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re[4]: Allowing WAL fsync to be done via O_SYNC  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
Larry Rosenman <ler@lerctr.org> writes:
>> But, with shared libraries, are you really pulling in a "whole
>> thread-support library"?

> Yes, you are.  On UnixWare, you need to add -Kthread, which CHANGES a LOT 
> of primitives to go through threads wrappers and scheduling.

Right, it's not so much that we care about referencing another shlib,
it's that -lpthreads may cause you to get a whole new thread-aware
version of libc, with attendant overhead that we don't need or want.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Doug McNaught
Date:
Subject: Re: ["Stephen C. Tweedie" ] Re: O_DSYNC flag for open
Next
From: Tom Lane
Date:
Subject: Re: ["Stephen C. Tweedie" ] Re: O_DSYNC flag for open