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

Re: Configuring fdatasync for Solaris2

From: Kenji Sugita <sugita(at)sra(dot)co(dot)jp>
To: peter_e(at)gmx(dot)net
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Configuring fdatasync for Solaris2
Date: 2001-09-12 02:23:25
Message-ID: 20010912.112325.104037918.sugita@sra.co.jp (view raw or flat)
Thread:
Lists: pgsql-patches
From: Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: [PATCHES] Configuring fdatasync for Solaris2
Date: Tue, 11 Sep 2001 21:25:31 +0200 (CEST)

;;; I added
;;; 
;;;     AC_SEARCH_LIBS(fdatasync, rt)
;;; 
;;; near the location where your patch went.

I applied your modification in the current to 7.1.3. Configure says as
follows:

    $ uname -a
    SunOS ext274 5.6 Generic_105181-23 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
    $ cvs di configure.in 
    Index: configure.in
    ===================================================================
    RCS file: /home/mgr/sugita/jobs/cvs-master/pgsql/src/7.1.3/build/configure.in,v
    retrieving revision 1.1.1.1
    diff -u -3 -p -r1.1.1.1 configure.in
    --- configure.in        16 Aug 2001 18:36:31 -0000      1.1.1.1
    +++ configure.in        12 Sep 2001 01:44:13 -0000
    @@ -681,6 +681,7 @@ dnl it seems unwise to encourage people 
     AC_EGREP_HEADER(z_streamp, zlib.h, [
     AC_CHECK_LIB(z,        inflate)
     ])
=>  +AC_SEARCH_LIBS(fdatasync, rt)


     if test "$with_krb4" = yes ; then
    $ autoconf
    $ ./configure 2>&1 | tee configure.out
    ...
    checking for inflate in -lz... yes
=>  checking for library containing fdatasync... no
    checking for crypt.h... yes
    ...
    $

I also cannot find out the rt library on Solaris2. The library posix4 hits
fdatasync.

    $ make distclean
    $ cvs di -u configure.in 
    Index: configure.in
    ===================================================================
    RCS file: /home/mgr/sugita/jobs/cvs-master/pgsql/src/7.1.3/build/configure.in,v
    retrieving revision 1.1.1.1
    diff -u -3 -p -u -r1.1.1.1 configure.in
    --- configure.in        16 Aug 2001 18:36:31 -0000      1.1.1.1
    +++ configure.in        12 Sep 2001 01:58:39 -0000
    @@ -681,6 +681,7 @@ dnl it seems unwise to encourage people 
     AC_EGREP_HEADER(z_streamp, zlib.h, [
     AC_CHECK_LIB(z,        inflate)
     ])
=>  +AC_SEARCH_LIBS(fdatasync, posix4)


     if test "$with_krb4" = yes ; then
    $ autoconf
    $ ./configure 2>&1 | tee configure.out
    ...
    checking for inflate in -lz... yes
=>  checking for library containing fdatasync... -lposix4
    checking for crypt.h... yes
    ...
    $ make install
    $ initdb
    $ pg_ctl -o '-c wal_sync_method=fdatasync -S' start
    postmaster successfully started
    $ psql template1
    Welcome to psql, the PostgreSQL interactive terminal.

    Type:  \copyright for distribution terms
	   \h for help with SQL commands
	   \? for help on internal slash commands
	   \g or terminate with semicolon to execute query
	   \q to quit

    template1=# show wal_sync_method;
    NOTICE:  wal_sync_method is fdatasync
    SHOW VARIABLE
    template1=# 


Kenji Sugita                                      
sugita(at)sra(dot)co(dot)jp

In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-09-12 02:56:32
Subject: Re: Add relid to TD in plpython
Previous:From: Peter EisentrautDate: 2001-09-11 19:25:31
Subject: Re: Configuring fdatasync for Solaris2

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