postgresql/src/interfaces/libpq
Bruce Momjian 2a24ec6f16 In the spirit of TODO item
* Add use of 'const' for varibles in source tree
(which is misspelled, btw.)
I went through the front-end libpq code and did so. This affects in
particular the various accessor functions (such as PQdb() and
PQgetvalue()) as well as, by necessity, the internal helpers they use.

I have been really thorough in that regard, perhaps some people will find
it annoying that things like
char * foo = PQgetvalue(res, 0, 0)
will generate a warning. On the other hand it _should_ generate one. This
is no real compatibility break, although a few clients will have to be
fixed to suppress warnings. (Which again would be in the spirit of the
above TODO.)

In addition I replaced some int's by size_t's and removed some warnings
(and generated some new ones -- grmpf!). Also I rewrote PQoidStatus (so it
actually honors the const!) and supplied a new function PQoidValue that
returns a proper Oid type. This is only front-end stuff, none of the
communicaton stuff was touched.


The psql patch also adds some new consts to honor the new libpq situation,
as well as fixes a fatal condition that resulted when using the -V
(--version) option and there is no database listening.


So, to summarize, the psql you should definitely put in (with or without
the libpq). If you think I went too far with the const-mania in libpq, let
me know and I'll make adjustments. If you approve it, I will also update
the docs.

        -Peter

--
Peter Eisentraut                  Sernanders vaeg 10:115
1999-11-11 00:10:14 +00:00
..
Makefile.in Hi, 1999-10-13 11:38:42 +00:00
README Postgres95 1.01 Distribution - Virgin Sources 1996-07-09 06:22:35 +00:00
fe-auth.c Standardize on MAXPGPATH as the size of a file pathname buffer, 1999-10-25 03:08:03 +00:00
fe-auth.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
fe-connect.c In the spirit of TODO item 1999-11-11 00:10:14 +00:00
fe-exec.c In the spirit of TODO item 1999-11-11 00:10:14 +00:00
fe-lobj.c In the spirit of TODO item 1999-11-11 00:10:14 +00:00
fe-misc.c In the spirit of TODO item 1999-11-11 00:10:14 +00:00
fe-print.c In the spirit of TODO item 1999-11-11 00:10:14 +00:00
libpq-fe.h In the spirit of TODO item 1999-11-11 00:10:14 +00:00
libpq-int.h In the spirit of TODO item 1999-11-11 00:10:14 +00:00
libpq.rc Update for 6.6. 1999-07-18 18:06:42 +00:00
libpqdll.c pgindent run over code. 1999-05-25 16:15:34 +00:00
libpqdll.def Add PQresStatus() function to avoid direct access to pgresStatus[] array, 1999-02-07 22:08:54 +00:00
pqexpbuffer.c Update frontend libpq to remove limits on query lengths, 1999-08-31 01:37:37 +00:00
pqexpbuffer.h Update frontend libpq to remove limits on query lengths, 1999-08-31 01:37:37 +00:00
pqsignal.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
pqsignal.h Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
win32.h Remove gratuitous redefinitions of BLCKSZ. 1999-10-23 03:28:58 +00:00
win32.mak Update frontend libpq to remove limits on query lengths, 1999-08-31 01:37:37 +00:00

README

This directory contains the C version of Libpq, the POSTGRES frontend library.