Semi-undocumented functions in libpq - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Semi-undocumented functions in libpq
Date
Msg-id 20060504075940.GF4752@svana.org
Whole thread Raw
Responses Re: Semi-undocumented functions in libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Comparing the lists of functions exported by libpq and those declared
by libpq-fe.h turns up a fair number of descrepancies. Most of these
functions are declared by internal header files. For clarity I think we
should clarify the situation, either explicity declare them for
external users, or stop exporting them. Now that we've bumped the major
version of libpq, now is the perfect time to decide.

The functions in question are:

Used by psql:
all the PQExpBuffer functions (./internal/pqexpbuffer.h)
pg_encoding_to_char      (./server/mb/pg_wchar.h)
pqsignal                 (./server/libpq/pqsignal.h)

Used by initdb and createdb:
pg_char_to_encoding      (./server/mb/pg_wchar.h)
Used by initdb:
pg_valid_server_encoding (./server/mb/pg_wchar.h)

Not used by anyone:
pg_utf_mblen             (./server/mb/pg_wchar.h)
pgresStatus              (a way to access info from PQresStatus but not declared publically anywhere)

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Typo in ginxlog.c
Next
From: "Larry Rosenman"
Date:
Subject: autovacuum logging, part deux.