summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq
AgeCommit message (Collapse)Author
2003-03-25Use PQfreemem() consistently, and document its use for Notify.Bruce Momjian
Keep PQfreeNotify() around for binary compatibility.
2003-03-22Add PQfreemem() call for Win32.Bruce Momjian
2003-03-20PGRES_POLLING_ACTIVE is unused, keep for backward compatibility.Bruce Momjian
Lennert Buytenhek
2003-03-18Improve error message.Peter Eisentraut
2003-03-17Reorder crypt.h include for SunOS compile problem.Bruce Momjian
Fred Houweling
2003-03-10This patch fixes a bunch of spelling mistakes in comments throughout theTom Lane
PostgreSQL source code. Neil Conway
2003-03-06Use poll(2) in preference to select(2), if available. This solvesTom Lane
problems in applications that may have a large number of files open, such that libpq's socket number exceeds the range supported by fd_set. From Chris Brown.
2003-02-19Fix for GUC client_encoding variable not being handledTatsuo Ishii
correctly. See following thread for more details. Subject: [HACKERS] client_encoding directive is ignored in postgresql.conf From: Tatsuo Ishii <t-ishii@sra.co.jp> Date: Wed, 29 Jan 2003 22:24:04 +0900 (JST)
2003-02-19Allow PQcmdTuples to return row counts for MOVE and FETCH.Bruce Momjian
Neil Conway
2003-02-14Fix some of the breakage from the IPV6 patch.Tom Lane
2003-02-03#ifdef out stuff that shouldn't be compiled when not USE_SSL.Tom Lane
Curious that gcc doesn't complain about unreferenced static variables.
2003-02-03Move pg_service.conf.sample to /interfaces/libpq.Bruce Momjian
2003-01-30Fix regression in .pgpass support. From Neil Conway.Tom Lane
2003-01-29Guard against array overrun, per report from Yichen Xie. This caseTom Lane
can only occur if the constant DEFAULT_CLIENT_AUTHSVC is given a bogus value, so it doesn't seem worth back-patching, but I'll fix it in HEAD.
2003-01-10Clean ip.c.Peter Eisentraut
2003-01-08The second was that renegotiation was just plain broken. I can'tBruce Momjian
believe I didn't notice this before -- once 64k was sent to/from the server the client would crash. Basicly, in 7.3 the server SSL code set the initial state to "about to renegotiate" without actually starting the renegotiation. In addition, the server and client didn't properly handle the SSL_ERROR_WANT_(READ|WRITE) error. This is fixed in the second patch. Nathan Mueller
2003-01-08I was playing around with 7.3.1 and found some more SSL problems. TheBruce Momjian
first, that I missed when checking over 7.3.1, was that the client method was switched to SSLv23 along with the server. The SSLv23 client method does SSLv2 by default, but can also understand SSLv3. In our situation the SSLv2 backwords compatibility is really only needed on the server. This is the first patch. The last thing is that I found a way for the server to understand SSLv2 HELLO messages (sent by pre-7.3 clients) but then get them to talk SSLv3. This is the last one. Nathan Mueller
2003-01-08Fix pgpass to work with PQconnectDB().Bruce Momjian
Backpatch to 7.3.X. Report from ljb.
2003-01-08Only set the database name if we find a match in the services file.Bruce Momjian
2003-01-07Fix various places where global s/NOTICE/WARNING/ was applied with tooTom Lane
much enthusiasm.
2003-01-07Document libpq service capability, and add sample file.Bruce Momjian
2003-01-06Enable IPv6 libpq 'hostaddr' addresses. Update docs.Bruce Momjian
2003-01-06Enable IPv6 connections to the server, and add pg_hba.conf IPv6 entriesBruce Momjian
if the OS supports it. Code will still compile on non-IPv6-aware machines (feature added by Bruce). Nigel Kukard
2002-12-30Attached is a patch to provide makefiles, etc. to allow the compilationBruce Momjian
of the libpq interface static and dynamic libraries with the freely downloadable Borland C++ compiler version 5.5 and/or C++ Builder. Lester Godwin
2002-12-19pgindent fe-connect.c --- done to make IPv6 patch easier to apply.Bruce Momjian
2002-12-18From the SSL_CTX_new man page:PostgreSQL Daemon
"SSLv23_method(void), SSLv23_server_method(void), SSLv23_client_method(void) A TLS/SSL connection established with these methods will understand the SSLv2, SSLv3, and TLSv1 protocol. A client will send out SSLv2 client hello messages and will indicate that it also understands SSLv3 and TLSv1. A server will understand SSLv2, SSLv3, and TLSv1 client hello messages. This is the best choice when compatibility is a concern." This will maintain backwards compatibility for those us that don't use TLS connections ...
2002-12-13Increment libpq major number for 7.3.1 and minor for 7.4.Bruce Momjian
2002-12-12Check SSL_get_error() value SSL_ERROR_SYSCALL to see if SSL_read()Bruce Momjian
returned -1, per SSL_get_error() documentation. Nathan Mueller
2002-12-11Bump version for 7.3 and 7.4.Bruce Momjian
2002-12-06Back out V6 code, caused postmaster startup failure.Bruce Momjian
2002-12-06We have just finished porting the old KAME IPv6 patch over toBruce Momjian
postgresql version 7.3, but yea... this patch adds full IPv6 support to postgres. I've tested it out on 7.2.3 and has been running perfectly stable. CREDITS: The KAME Project (Initial patch) Nigel Kukard <nkukard@lbsd.net> Johan Jordaan <johanj@lando.co.za>
2002-12-04Stamp minor version numbers for 7.4 release.Bruce Momjian
2002-12-03Deal with cases where getpeereid _and_ another creditial method isBruce Momjian
supported.
2002-11-10I just discovered, that there is missing a const when passing a bufferBruce Momjian
to PQescapeBytea and PQunescapeBytea. I fixed it and tried to create a usable diff (I'm not so familar to diff). Tommi M?kitalo
2002-11-07Remove inappropriate inclusions of OpenSSL internal header e_os.h,Tom Lane
as well as unnecessary (and incorrect on Windows) assignments to errno/SOCK_ERRNO.
2002-11-04Fix inclusion order, per Andreas.Tom Lane
2002-10-24Code review for connection timeout patch. Avoid unportable assumptionTom Lane
that tv_sec is signed; return a useful error message on timeout failure; honor PGCONNECT_TIMEOUT environment variable in PQsetdbLogin; make code obey documentation statement that timeout=0 means no timeout.
2002-10-21Translation updatesPeter Eisentraut
2002-10-16Fix from Joe on timeout code.Bruce Momjian
2002-10-16Fix connection_timeout to use time() and handle timeout == 1.Bruce Momjian
Code cleanup.
2002-10-15Fix libpq startup code to work correctly in autocommit off mode.Tom Lane
In passing, fix breakage for case where PGCLIENTENCODING is set in environment.
2002-10-14Translation updatesPeter Eisentraut
2002-10-14Mention that resetting the timeout may be wrong on select retry.Bruce Momjian
2002-10-14Restore ptmp_timeout for cases where no timeout is passed.Bruce Momjian
2002-10-14libpq connection_timeout doesn't do subsecond timing, so make the codeBruce Momjian
clear on that point.
2002-10-11Add tv_sec change for connection timeout suggested by author.Bruce Momjian
2002-10-11Prevent tv_sec from becoming negative in connection timeout code.Bruce Momjian
2002-10-03The attached patch fixes a number of issues related to compiling theBruce Momjian
client utilities (libpq.dll and psql.exe) for win32 (missing defines, adjustments to includes, pedantic casting, non-existent functions) per: http://developer.postgresql.org/docs/postgres/install-win32.html. It compiles cleanly under Windows 2000 using Visual Studio .net. Also compiles clean and passes all regression tests (regular and contrib) under Linux. In addition to a review by the usual suspects, it would be very desirable for someone well versed in the peculiarities of win32 to take a look. Joe Conway
2002-09-26Clean up SSL compiler warnings.Bruce Momjian
2002-09-26Allow SSL to work withouth client-side certificate infrastructure.Bruce Momjian