Thread: pgsql-server: Attached is a patch that takes care of the PATHSEP issue.

pgsql-server: Attached is a patch that takes care of the PATHSEP issue.

From
momjian@svr1.postgresql.org (Bruce Momjian)
Date:
Log Message:
-----------
Attached is a patch that takes care of the PATHSEP issue. I made a more
extensive change then what was suggested. I found the file path.c that
contained a lot of "Unix/Windows" agnostic functions so I added a function
there instead and removed the PATHSEP declaration in exec.c altogether. All
to keep things from scattering all over the code.

I also took the liberty of changing the name of the functions
"first_path_sep" and "last_path_sep". Where I come from (and I'm apparently
not alone given the former macro name PATHSEP), they should be called
"first_dir_sep" and "last_dir_sep". The new function I introduced, that
actually finds path separators, is now the "first_path_sep". The patch
contains changes on all affected places of course.

I also changed the documentation on dynamic_library_path to reflect the
chagnes.

Thomas Hallgren

Modified Files:
--------------
    pgsql-server/doc/src/sgml:
        runtime.sgml (r1.265 -> r1.266)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/doc/src/sgml/runtime.sgml.diff?r1=1.265&r2=1.266)
    pgsql-server/src/backend/commands:
        dbcommands.c (r1.134 -> r1.135)

(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/commands/dbcommands.c.diff?r1=1.134&r2=1.135)
    pgsql-server/src/backend/utils/fmgr:
        dfmgr.c (r1.73 -> r1.74)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/utils/fmgr/dfmgr.c.diff?r1=1.73&r2=1.74)
    pgsql-server/src/bin/initdb:
        initdb.c (r1.36 -> r1.37)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/bin/initdb/initdb.c.diff?r1=1.36&r2=1.37)
    pgsql-server/src/include:
        port.h (r1.41 -> r1.42)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/port.h.diff?r1=1.41&r2=1.42)
    pgsql-server/src/interfaces/ecpg/ecpglib:
        connect.c (r1.21 -> r1.22)

(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/interfaces/ecpg/ecpglib/connect.c.diff?r1=1.21&r2=1.22)
    pgsql-server/src/interfaces/ecpg/preproc:
        ecpg.c (r1.87 -> r1.88)

(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/interfaces/ecpg/preproc/ecpg.c.diff?r1=1.87&r2=1.88)
    pgsql-server/src/interfaces/libpq:
        fe-connect.c (r1.273 -> r1.274)

(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/interfaces/libpq/fe-connect.c.diff?r1=1.273&r2=1.274)
    pgsql-server/src/port:
        exec.c (r1.15 -> r1.16)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/port/exec.c.diff?r1=1.15&r2=1.16)
        path.c (r1.18 -> r1.19)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/port/path.c.diff?r1=1.18&r2=1.19)