Re: pg_config - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: pg_config
Date
Msg-id 410509F5.10606@dunslane.net
Whole thread Raw
In response to Re: pg_config  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: pg_config  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches

Bruce Momjian wrote:

>Andrew Dunstan wrote:
>
>
>>2. these cases need to be fixed:
>>
>>        else if (strcmp(argv[i],"--includedir-server") ==0)
>>            get_pkginclude_path(mypath,otherpath);
>>        else if (strcmp(argv[i],"--libdir") == 0)
>>            get_include_path(mypath,otherpath);
>>
>>We might actually need one or two functions in port/path.c to handle them.
>>
>>
>
>What is the problem here?  Why do we need additional port/path
>functions?  I see libdir is mismatched with include_path.
>
>

I don't see a function there to report the libdir at all (only
pkglibdir), and for includedir-server we would need either to append
"/server" or to have a function in path.c that reported it for us correctly.

cheers

andrew

pgsql-patches by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: [HACKERS] Function to kill backend
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Function to kill backend