mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
1) adds NetBSD shared lib support on both ELF and a.out platforms
2) replaces "-L$(LIBPQDIR) -lpq" with "$(LIBPQ)" defined in
Makefile.global. This makes it much easier to build stuff in
the source tree after you've already installed the libraries.
3) adds TEMPLATEDIR in Makefile.global that indicates where the
database templates are stored. This separates the template files
from real libraries that are installed in $(LIBDIR).
4) changes include order of <readline/readline.h> and <readline.h>.
The latest GNU readline installs its headers under a readline
subdirectory.
In addition to applying the patch below the following files need to be copied:
backend/port/dynloader:
bsd.h -> netbsd.h
bsd.c -> netbsd.c
include/port:
bsd.h -> netbsd.h
makefiles:
Makefile.bsd -> Makefile.netbsd
It would be great to see this incorporated into the source tree before
the 7.0 release is cut.
Thanks!
-- Johnny C. Lam <lamj@stat.cmu.edu>
Based on the original work by William Wanders (wwanders@sci.kun.nl) and Jolly Chen (jolly@cs.berkeley.edu), this is the first set of changes to libpq++ since ~1997. Pgenv has been removed, deprecated functions removed and/or updated and error handling rewritten, however for the most part it remains as a wrapper around libpq. The documentation on libpq is recommended reading to understand the function of libpq++. The API provided herein is subject to change in later versions of PostgreSQL. For details on how to to use libpq++, see the man page in the man/ subdirectory and the test programs in the examples/ subdirectory. ** PgConnection has been changed to accept either the environment variables or conninfo style strings. See the PQconnectdb in the documentation on libpq for details. libpq++ has only been tested with g++, version 2.7.2.1 Vince Vielhaber (vev@michvhf.com) Tue May 18 08:30:00 EDT 1999