summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-connect.c
Commit message (Collapse)AuthorAgeFilesLines
* From: Raymond Toy <toy@rtp.ericsson.se>Marc G. Fournier1997-04-171-1/+2
| | | | | | | | | | | | | | | | | Subject: [PATCHES] 970417: some large object patches Two patches here, made against 970417. Both have to do with large objects: 1. lobjfuncs was not initialized in PQconnectdb. This causes failure later if large objects are used. (Someone already caught this error in PQsetdb.) 2. Postgres functions lo_import and lo_export sometimes produce garbage for the file names because the filename strings aren't always terminated by \0. (VARDATA isn't necessarily null terminated.)
* connectDB(): setsockopt (..., TCP_NODELAY, ...) added.Vadim B. Mikheev1997-04-161-2/+21
|
* A couple of cleanups from Scott Harrison <Scott_Harrison@next.com>Marc G. Fournier1997-04-151-1/+2
|
* From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>Marc G. Fournier1997-04-021-2/+2
| | | | | | | Subject: [HACKERS] libpq variable set patch Just a small change, so the automatic variable setting on connection startup actually works...
* Here's two more diffs...Marc G. Fournier1997-03-251-2/+2
| | | | | | | | | | | | The first fixes a warning from gcc about the assignment within the condition. The extra set of parens should not make a difference, but with -Werror, they are necessary. The second fixes an "ln -s" invocation that assumes the current directory is implicitly the target if not specified. Not true in all cases, and again, it should not make a difference except to those implementation that it does. From: "Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
* - Renamed the variable names to something shorter, and I hopeMarc G. Fournier1997-03-251-3/+7
| | | | | | | | | | | | | | | | | | nicer. Also, I grabbed my copy of the Informix manual, and added a couple of variables that make sense (formats for money, time, a language setting, a timezone). - New functions SetPGVariable() and GetPGVariable() in tcop/*. These don't actually do anything for the moment, but should be enough to implement the SET var_name TO var_val in the parser? SetPGVariable() expects just two strings, the var_name and the var_value from above, and is expected to do the right thing. Returns TRUE if everything okay. From: "Martin J. Laubach" <mjl@wwx.vip.at>
* - Move most of the I/O in both libpq and the backend to a setMarc G. Fournier1997-03-181-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | of common routines in pqcomprim.c (pq communication primitives). Not all adapted to it yet, but it's a start. - Rewritten some of those routines, to write/read bigger chunks of data, precomputing stuff in buffers instead of sending out byte by byte. - As a consequence, I need to know the endianness of the machine. Currently I rely on getting it from machine/endian.h, but this may not be available everywhere? (Who the hell thought it was a good idea to pass integers to the backend the other way around than the normal network byte order? *argl*) - Libpq looks in the environment for magic variables, and upon establishing a connection to the backend, sends it queries of the form "SET var_name TO 'var_value'". This needs a change in the backend parser (Mr. Parser, are you there? :) - Currently it looks for two Env-Vars, namely PG_DATEFORMAT and PG_FLOATFORMAT. What else makes sense? PG_TIMEFORMAT? PG_TIMEZONE? From: "Martin J. Laubach" <mjl@wwx.vip.at>
* From: Dan McGuirk <mcguirk@indirect.com>Marc G. Fournier1997-03-121-4/+32
| | | | | | | | | | | | | | | | | | | | | | Subject: [HACKERS] password authentication This patch adds support for plaintext password authentication. To use it, you add a line like host all 0.0.0.0 0.0.0.0 password pg_pwd.conf to your pg_hba.conf, where 'pg_pwd.conf' is the name of a file containing the usernames and password hashes in the format of the first two fields of a Unix /etc/passwd file. (Of course, you can use a specific database name or IP instead.) Then, to connect with a password through libpq, you use the PQconnectdb() function, specifying the "password=" tag in the connect string and also adding the tag "authtype=password". I also added a command-line switch '-u' to psql that tells it to prompt for a username and password and use password authentication.
* Various patches for nextstep by GregorHoffleitMarc G. Fournier1997-02-131-2/+10
| | | | Replaced NEED_STRDUP by !HAVE_STRDUP
* Make strdup work for Ultrix. Thanks Erik BertelsenBryan Henderson1996-11-281-15/+1
|
* Whoops, redo Ultrix patch so the other ports still compile.Bryan Henderson1996-11-261-2/+4
|
* Make it compile on Ultrix. Thanks Erik Bertelson.Bryan Henderson1996-11-261-2/+3
|
* Remove most compile-time options, add a few runtime options to make up for it.Bryan Henderson1996-11-141-7/+4
| | | | | | | In particular, no more compiled-in default for PGDATA or LIBDIR. Commands that need them need either invocation options or environment variables. PGPORT default is hardcoded as 5432, but overrideable with options or environment variables.
* As proposed,Marc G. Fournier1996-11-111-1/+4
| | | | | | | | | following is the patch to libpq's large object interface that removes the requirement to include fmgr.h into fe-lobj.c. The large object interface now ask's the backend to tell the OID's of all the required functions in pg_proc. From: wieck@sapserv.debis.de (Jan Wieck)
* All external function definitions now have prototypes that are checked.Bruce Momjian1996-11-101-3/+4
|
* Add #include <ctype.h> to quiet compiler about missing declaration of isspace().Bryan Henderson1996-11-101-1/+2
|
* Added in PQconnectdb() functionMarc G. Fournier1996-11-091-2/+423
| | | | Submitted by: wieck@sapserv.debis.de (Jan Wieck)
* Removed PORTNAME_. Use OS version only.Bruce Momjian1996-11-041-2/+2
|
* shared build fails, but the rest compiles...formatting error in theMarc G. Fournier1996-11-031-4/+6
| | | | cc -shared, I believe...
* Fix sigaction again to try for portability.Bryan Henderson1996-10-291-3/+3
|
* Change treatment of sigaction structure again to include even more platforms.Bryan Henderson1996-10-161-2/+8
| | | | Thanks D'Arcy.
* Remove 4th element of sigaction structure so it works on more platforms.Bryan Henderson1996-10-151-2/+2
|
* Add PGUSER environment variable for client to specify Postgres username.Bryan Henderson1996-10-101-33/+76
|
* Here's a minor fix that fixes a casting problem:Marc G. Fournier1996-08-191-2/+2
| | | | -Kurt
* Fixes:Marc G. Fournier1996-08-191-63/+53
| | | | | | | | | | | | | When you connect to a database with PQsetdb, as with psql, depending on how your uninitialized variables are set, you can get a failure with a "There is no connection to the backend" message. The fix is to move a call to PQexec() from inside connectDB() to PQsetdb() after connectDB() returns to PQsetdb(). That way a connection doesn't have to be already established in order to establish it! From: bryanh@giraffe.netgate.net (Bryan Henderson)
* Updates to libpq to fix breakage in previous patch...Marc G. Fournier1996-08-101-3/+4
| | | | Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
* Fixes for:Marc G. Fournier1996-08-061-4/+4
| | | | | | | | | | | Here are a few minor fixes to Postgres95. Mostly I have added const to some of the char pointers. There was also a missing header file and a place where it looks like "==" was used when "=" was meant. I also changed some variables from Pfin and Pfout tp pfin and pfout because the latter shadow global variables and that just seems like an unsafe practice which I like to avoid. Submitted by: "D'Arcy J.M. Cain" <darcy@druid.druid.com>
* Alot of "changes" from Dr. George's source tree...Marc G. Fournier1996-07-231-30/+35
| | | | | | | | Most of the changes in here look to b epurely cosmetic, and don't affect anything... ...and some stuff is completely questionable...in that I may have reversed some of the stuf fwe already had :(
* - libpq calls "fe_getauthname()" two times in "fe-connect.c", butMarc G. Fournier1996-07-191-15/+19
| | | | | | doesn't free the buffer allocated by this function. - submitted by: Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
* fixes for several potential null pointer dereferencesMarc G. Fournier1996-07-121-5/+53
| | | | submitted by: Paul "Shag" Walmsley <ccshag@cclabs.missouri.edu>
* Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier1996-07-091-0/+460