Re: Configuring fdatasync for Solaris2

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Kenji Sugita <sugita(at)sra(dot)co(dot)jp>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Configuring fdatasync for Solaris2
Date: 2001-09-11 19:25:31
Message-ID: Pine.LNX.4.30.0109112122280.680-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Kenji Sugita 2001-09-12 02:23:25 Re: Configuring fdatasync for Solaris2
Previous Message Bruce Momjian 2001-09-11 19:03:50 Re: Configuring fdatasync for Solaris2