summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq
Commit message (Collapse)AuthorAgeFilesLines
* Allow Borland CC to compile libpq and psql.Bruce Momjian2007-01-112-10/+16
| | | | | | Backpatch to 8.2.X. L Bayuk
* Indent comments in makefiles better so they don't appear in the output.Peter Eisentraut2007-01-071-2/+3
|
* Update CVS HEAD for 2007 copyright. Back branches are typically notBruce Momjian2007-01-0519-37/+37
| | | | back-stamped for this.
* Stamp major release 8.3.0, and increment library version numbers.Bruce Momjian2007-01-052-6/+6
|
* Revert exports.list change pending closer study.Tom Lane2006-12-281-2/+2
|
* Use a more backward-compatible syntax for exports.list on Linux.Tom Lane2006-12-271-2/+2
| | | | Per Thorkil Olesen.
* Interpret a dbName param to PQsetdbLogin as a conninfo string if it contains ↵Andrew Dunstan2006-12-191-18/+31
| | | | an = sign. Tom Lane and Andrew Dunstan.
* Patch of Win32 Encoding problem for server messages usingBruce Momjian2006-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | FormatMessage() (This should have been in 8.2.0, patched to 8.2.X and HEAD): I think this problem to be complex.... http://archives.postgresql.org/pgsql-hackers/2006-11/msg00042.php FormatMessage of windows cannot consider the encoding of the database. However, I should try the solution now. It is necessary to clear the problem. Multi character-code exists together in message and log. It doesn't consider the data base encoding that the user intended.... The user in multi-byte country can try this. http://inet.winpg.jp/~saito/pg_bug/MessageCheck.c That is, it is likely to become it in this manner.(Japanese) http://inet.winpg.jp/~saito/pg_bug/FormatMessage998.png Hiroshi Saito
* Translation updatesPeter Eisentraut2006-12-021-155/+225
|
* Translation updatesPeter Eisentraut2006-11-243-405/+520
|
* Get rid of retail definitions of HAVE_STRDUP and HAVE_VSNPRINTF inTom Lane2006-11-212-2/+2
| | | | | some of the Windows-only makefiles; the correct place to assert these things is pg_config.h.win32. Per bug #2677.
* If SSL negotiation fails and SSLMODE is 'prefer', then retry without SSL.Tom Lane2006-11-211-1/+20
| | | | | | | Negotiation failure is only likely to happen if one side or the other is misconfigured, eg. bad client certificate. I'm not 100% convinced that a retry is really the best thing, hence not back-patching this fix for now. Per gripe from Sergio Cinos.
* Translations updatePeter Eisentraut2006-10-213-538/+789
|
* MSVC/BCC Win32 compiler fixes.Bruce Momjian2006-10-101-2/+2
| | | | Hiroshi Saito
* Message style improvementsPeter Eisentraut2006-10-062-14/+12
|
* pgindent run for 8.2.Bruce Momjian2006-10-0411-145/+173
|
* Make some marginal performance improvements in reportErrorPosition(),Tom Lane2006-10-011-66/+86
| | | | | | | | which turns out to be a dominant part of the runtime in scenarios involving lots of parse-time warnings (such as Stephen Frost's example of an INSERT with a lot of backslash-containing strings). There's not a whole lot we can do about the character-at-a-time scanning, but we can at least avoid traversing the query twice.
* Oops, forgot that libpq needs extra steps to make use of src/port/ files.Tom Lane2006-09-273-4/+18
|
* Remove separate strdup.h header file; it's redundant with port.h.Tom Lane2006-09-272-10/+2
|
* Fix bugs in plpgsql and ecpg caused by assuming that isspace() would onlyTom Lane2006-09-221-2/+2
| | | | | | | | | return true for exactly the characters treated as whitespace by their flex scanners. Per report from Victor Snezhko and subsequent investigation. Also fix a passel of unsafe usages of <ctype.h> functions, that is, ye olde char-vs-unsigned-char issue. I won't miss <ctype.h> when we are finally able to stop using it.
* Fix some uses of str[n]casecmp that should be pg_str[n]casecmp,Tom Lane2006-09-151-5/+5
| | | | per Magnus.
* Revise OpenLDAP configuration and linking to work on more platformsTom Lane2006-09-091-4/+4
| | | | | than before. Albe Laurenz (but editorialized heavily by me, so if it doesn't work it's my fault).
* Specify lo_write() to take a _const_ buffer, to match documentation.Bruce Momjian2006-09-072-4/+4
|
* Add missing gettext calls for some SSL errors.Peter Eisentraut2006-09-041-4/+4
|
* Add PQdescribePrepared, PQdescribePortal, and related functions to libpqTom Lane2006-08-185-10/+310
| | | | | to allow obtaining information about previously prepared statements and open cursors. Volkan Yazici
* Suppress MSVC warnings about weak functions by usingBruce Momjian2006-08-091-3/+4
| | | | | | _CRT_SECURE_NO_DEPRECATE. Hiroshi Saito
* Add some blank lines for formatting.Bruce Momjian2006-08-041-1/+4
|
* #ifdef fix for MSVC builds of libpq.Bruce Momjian2006-08-041-2/+2
| | | | Hiroshi Saito
* Add #include postgres_fe.h in two win32-specific files, because there isBruce Momjian2006-07-292-3/+4
| | | | pg-specific code in those files, or might be some day.
* Allow LDAP lookups from pg_service.conf.Bruce Momjian2006-07-272-3/+439
| | | | Albe Laurenz
* The Win32 DEF files that are generated for libpq contain the attributeBruce Momjian2006-07-181-4/+1
| | | | | | | | "DESCRIPTION", which is actually only allowed for device drivers. The compilers ignore it with a warning - if we remove them, we get rid of the warning. Magnus Hagander
* Fix another passel of include-file breakage. Kris Jurka, Tom LaneTom Lane2006-07-142-2/+4
|
* Remove 576 references of include files that were not needed.Bruce Momjian2006-07-144-9/+4
|
* Fix a passel of recently-committed violations of the rule 'thou shaltTom Lane2006-07-142-4/+2
| | | | | have no other gods before c.h'. Also remove some demonstrably redundant #include lines, mostly of <errno.h> which was added to c.h years ago.
* Revert part of recent include patch not ready for application.Bruce Momjian2006-07-144-4/+10
|
* Add additional includes needed on some platforms.Bruce Momjian2006-07-144-10/+4
|
* Clean up for warning:Joe Conway2006-07-121-6/+6
| | | | | | | | | fe-auth.c:573: warning: passing argument 1 of 'free' discards qualifiers from pointer target type pg_krb5_authname used to return a (const char *) to memory allocated by krb. Somewhere along the lines this was changed so that a copy was made, returned, and freed instead. However the const modifier was never removed.
* Move pthread-win32.h to /port, modify bcc/msvc makefiles.Bruce Momjian2006-07-103-21/+2
|
* Remove libpq's PQescapeIdentifier(), not safe from injection attacks.Bruce Momjian2006-07-043-43/+3
|
* Add PQescapeIdentifier() to libpqBruce Momjian2006-06-273-3/+43
| | | | Christopher Kings-Lynne
* Split definitions for md5.c out of crypt.h and into their own headerTom Lane2006-06-201-2/+2
| | | | | | | | | libpq/md5.h, so that there's a clear separation between backend-only definitions and shared frontend/backend definitions. (Turns out this is reversing a bad decision from some years ago...) Fix up references to crypt.h as needed. I looked into moving the code into src/port, but the headers in src/include/libpq are sufficiently intertwined that it seems more work than it's worth to do that.
* Further thoughts about lo_export/lo_import error handling: if one ofTom Lane2006-06-141-28/+20
| | | | | | | the lower-level large object functions fails, it will have already set a suitable error message --- probably something from the backend --- and it is not useful to overwrite that with a generic 'error while reading large object' message. So remove redundant messages.
* Improve error detection and recovery in lo_import()/lo_export().Tom Lane2006-06-141-28/+55
| | | | Problems noted while experimenting with new control-C code for psql.
* Prepare code to be built by MSVC:Bruce Momjian2006-06-074-11/+20
| | | | | | | | | | o remove many WIN32_CLIENT_ONLY defines o add WIN32_ONLY_COMPILER define o add 3rd argument to open() for portability o add include/port/win32_msvc directory for system includes Magnus Hagander
* Have BCC echo output "" using "", rather than \"\" as earlier reported.Bruce Momjian2006-06-061-1/+1
| | | | Backpatch to 8.1.X.
* Remove pqsignalinquire(), which is unused and has portability issues.Tom Lane2006-05-302-30/+2
|
* enlargePQExpBuffer, alone among the functions exported by pqexpbuffer.h,Tom Lane2006-05-281-1/+2
| | | | wasn't exported by exports.txt. Ooops. Per buildfarm results.
* Fix up pg_dump to do string escaping fully correctly for client encodingTom Lane2006-05-281-3/+2
| | | | | | | | | and standard_conforming_strings; likewise for the other client programs that need it. As per previous discussion, a pg_dump dump now conforms to the standard_conforming_strings setting of the source database. We don't use E'' syntax in the dump, thereby improving portability of the SQL. I added a SET escape_strings_warning = off command to keep the dumps from getting a lot of back-chatter from that.
* Don't call PQclear until the struct is really no longer going to be used.Alvaro Herrera2006-05-281-1/+7
| | | | | | | Per Coverity bug #304. Thanks to Martijn van Oosterhout for reporting it. Zero out the pointer fields of PGresult so that these mistakes are more easily catched, per discussion.
* Remove trailing blank line from exports.txt.Bruce Momjian2006-05-231-2/+1
|