Re: wrong comment in libpq.h - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: wrong comment in libpq.h
Date
Msg-id fd92aec8-56c2-4562-a673-d955271b5f30@eisentraut.org
Whole thread Raw
In response to wrong comment in libpq.h  (David Zhang <david.zhang@highgo.ca>)
Responses Re: wrong comment in libpq.h
List pgsql-hackers
On 03.05.24 00:37, David Zhang wrote:
> Hi Hackers,
> 
> There is a comment like below in src/include/libpq/libpq.h,
> 
>   /*
>    * prototypes for functions in be-secure.c
>    */
> extern PGDLLIMPORT char *ssl_library;
> extern PGDLLIMPORT char *ssl_cert_file;
> 
> ...
> 
> However, 'ssl_library', 'ssl_cert_file' and the rest are global 
> parameter settings, not functions. To address this confusion, it would 
> be better to move all global configuration settings to the proper 
> section, such as /* GUCs */, to maintain consistency.

Maybe it's easier if we just replaced

     prototypes for functions in xxx.c

with

     declarations for xxx.c

throughout src/include/libpq/libpq.h.




pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Re: A problem about partitionwise join
Next
From: Daniel Gustafsson
Date:
Subject: Re: wrong comment in libpq.h