Re: Configuring fdatasync for Solaris2 - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Configuring fdatasync for Solaris2
Date
Msg-id Pine.LNX.4.30.0109112122280.680-100000@peter.localdomain
Whole thread Raw
In response to Re: Configuring fdatasync for Solaris2  (Kenji Sugita <sugita@sra.co.jp>)
Responses Re: Configuring fdatasync for Solaris2
List pgsql-patches
Kenji Sugita writes:

> ;;; I have installed a patch that should work for you.  I used -lrt instead of
> ;;; -lposix4.  They should be the same, but the former seems to be preferred.
>
> Did you posted? I would like to try to use it.

I added

    AC_SEARCH_LIBS(fdatasync, rt)

near the location where your patch went.

> My understanding is that it should be enabled by configure, since fdatasync
> is the best method for Solaris2.

Correct.  fdatasync() is (when not simply aliased to fsync) more efficient
than fsync(), which is it's reason of existence.  I find it interesting
that it's associated with "real-time" computing.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Configuring fdatasync for Solaris2
Next
From: Kenji Sugita
Date:
Subject: Re: Configuring fdatasync for Solaris2