summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix indenting of log_min_error_statement.Bruce Momjian2003-01-091-3/+4
|
* Remove bit.c/h routines. Not used anymore.Bruce Momjian2003-01-093-81/+2
|
* Repair inconsistent rounding behavior for timestamp, time, interval,Tom Lane2003-01-092-105/+56
| | | | | | per gripe from Csaba Nagy. There is still potential for platform-specific behavior for values that are exactly halfway between integers, but at least we now get the expected answer for all other cases.
* Add missing pg_proc entry for interval_scale(). The lack of this entryTom Lane2003-01-091-3/+6
| | | | | | causes interval rounding not to work as expected in 7.3, for example SELECT '18:17:15.6'::interval(0) does not round the value. I did not force initdb, but one is needed to install the added row.
* Remove 'const' from secure_write, to prevent compiler warning.Bruce Momjian2003-01-081-3/+3
|
* Guard against stopping when numberTuples=0 and counter wraps around.Tom Lane2003-01-081-4/+5
|
* The second was that renegotiation was just plain broken. I can'tBruce Momjian2003-01-082-9/+15
| | | | | | | | | | | 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
* I was playing around with 7.3.1 and found some more SSL problems. TheBruce Momjian2003-01-082-4/+4
| | | | | | | | | | | | | | 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
* Fix dumping of DEFERRABLE/INITIALLY DEFERRED:Bruce Momjian2003-01-081-1/+6
| | | | | | | | | | | | | | | > The big problem is that while pg_dump's dump_trigger() looks at > tginitdeferred and dumps accordingly, pg_get_constraintdef doesn't look > at tginitdeferred, and therefore doesn't record the requirement as part > of ALTER TABLE ADD CONSTRAINT. pg_get_constraintdef should probably be looking at condeferrable and condeferred in the pg_constraint row it's looking at. Maybe something like the attached. (Added, output only non-default values.) Stephan Szabo
* Updated deferred trigger patch.Bruce Momjian2003-01-081-6/+6
| | | | Neil Conway
* This trivial patch implements disabled, deferred triggers, per myBruce Momjian2003-01-081-4/+31
| | | | | | | | | | | | | proposal on -hackers a couple days ago. The 'tgenabled' status of the trigger is consulted when the trigger is added to the deferred queue (i.e. when the event occurs that fires the trigger), not when the deferred event is executed. No regression tests, as another bug prevents them (the pg_trigger row for a trigger is only loaded once per session, so any changes to it are not noticed unless the client disconnects and reconnects). Neil Conway
* Enhanced error/help message for pg_controldata.Bruce Momjian2003-01-081-4/+16
| | | | Serguei Mokhov
* Reconsider old decision to try to constant-fold default and constraintTom Lane2003-01-083-20/+8
| | | | | expressions before they are stored. This seems like not such a hot idea, particularly now that the constant-folder will try to inline SQL functions.
* Repair bug noticed by Deepak Bhole: a shell type should have a dependencyTom Lane2003-01-083-43/+71
| | | | on its namespace, so that it will go away if the schema is dropped.
* Fix pgpass to work with PQconnectDB().Bruce Momjian2003-01-081-4/+4
| | | | | | Backpatch to 7.3.X. Report from ljb.
* Fix for bug #866. 7.3 contains new logic for avoiding redundant calls toTom Lane2003-01-083-11/+58
| | | | | | the index AM when we know we are fetching a unique row. However, this logic did not consider the possibility that it would be asked to fetch backwards. Also fix mark/restore to work correctly in this scenario.
* Only set the database name if we find a match in the services file.Bruce Momjian2003-01-081-8/+12
|
* Correction to last patch. As per the DB-API spec, we need to return NoneD'Arcy J.M. Cain2003-01-081-1/+1
| | | | here, not -1.
* Code review for FETCH/MOVE 0 changes. Improve documentation, do theTom Lane2003-01-082-45/+55
| | | | | right thing with the destination when FETCH 0 can't return a row, don't try to stuff LONG_MAX into an int value.
* SendFunctionResult should take care to detoast varlena results.Tom Lane2003-01-071-2/+2
|
* Fix various places where global s/NOTICE/WARNING/ was applied with tooTom Lane2003-01-076-19/+17
| | | | much enthusiasm.
* Apply the proper version of Christopher Kings-Lynne's describe patchTom Lane2003-01-076-32/+84
| | | | | (ie, the one with describe-schema support). Minor code review. Adjust display of casts to use standard type names.
* Add connection service file.Bruce Momjian2003-01-071-0/+16
|
* Silence compiler warning caused by removal of netinet/in.hBruce Momjian2003-01-071-1/+2
|
* Fix missing tab in file.Bruce Momjian2003-01-071-2/+2
|
* Document libpq service capability, and add sample file.Bruce Momjian2003-01-072-10/+9
|
* Tweak mdnblocks() to avoid doing lseek() on segments that it hasTom Lane2003-01-071-1/+16
| | | | | | | | previously determined not to be the last segment of a relation. This reduces the expected cost to one seek, rather than one seek per segment. We can get away with this because truncation of a relation will cause a relcache flush and so the md.c file descriptor will be closed; when it is re-opened we will re-determine the last segment.
* Enable IPv6 libpq 'hostaddr' addresses. Update docs.Bruce Momjian2003-01-061-4/+3
|
* Use our own version of getopt_long() if the OS doesn't have one.Peter Eisentraut2003-01-067-176/+267
|
* Fix for systems that don't have INET_ADDRSTRLEN.Peter Eisentraut2003-01-064-6/+14
|
* Update comments on IPv6 #define.Bruce Momjian2003-01-061-2/+2
|
* Update ipv6 comment, move configure test to the right placeBruce Momjian2003-01-061-2/+2
|
* Add prototype for getaddrinfo().Bruce Momjian2003-01-061-1/+2
|
* Enable IPv6 connections to the server, and add pg_hba.conf IPv6 entriesBruce Momjian2003-01-0615-217/+834
| | | | | | | if the OS supports it. Code will still compile on non-IPv6-aware machines (feature added by Bruce). Nigel Kukard
* ALTER DOMAIN OWNER, from Rod Taylor.Tom Lane2003-01-065-10/+91
|
* Revert rpath-mangling patch. See discussion on -patches around Nov 29 forPeter Eisentraut2003-01-052-20/+3
| | | | the rationale.
* Fix inherited UPDATE for cases where child column numbering doesn'tTom Lane2003-01-053-3/+155
| | | | | | match parent table. This used to work, but was broken in 7.3 by rearrangement of code that handles targetlist sorting. Add a regression test to catch future breakage.
* Partial code review for ALTER DOMAIN patch. Incorporates Rod Taylor'sTom Lane2003-01-042-154/+188
| | | | | | | | patches of 9-Dec (permissions fix) and 13-Dec (performance) as well as a partial fix for locking issues: concurrent DROP COLUMN should not create trouble anymore. But concurrent DROP TABLE is still a risk, and there is no protection at all against creating a column of a domain while we are altering the domain.
* Adjust lo type in contrib during pg_restore so that pg_restore couldHiroshi Inoue2003-01-031-1/+81
| | | | reload the type.
* flockfile/funlockfile is POSIX, so NetBSD has them too --- use them.Bruce Momjian2003-01-021-13/+1
|
* Enforces NOT NULL constraints to be applied against new PRIMARY KEYTom Lane2003-01-026-35/+91
| | | | | | | | | columns in DefineIndex. So, ALTER TABLE ... PRIMARY KEY will now automatically add the NOT NULL constraint. It appeared the alter_table regression test wanted this to occur, as after the change the regression test better matched in inline 'fails'/'succeeds' comments. Rod Taylor
* Fix BSD/OS thread file locking bug in new fseeko code.Bruce Momjian2003-01-021-2/+2
| | | | Backpatch to 7.3.X.
* fastpath code neglected to check whether user has privileges to call theTom Lane2003-01-012-6/+18
| | | | | target function. Also, move SetQuerySnapshot() call to avoid assert failure when a fastpath call is attempted in an aborted transaction.
* Awhile back I wrote that freebsd.h was probably broken in the places whereTom Lane2003-01-013-12/+20
| | | | | it diverged from netbsd.h and openbsd.h. This has now been confirmed. Accordingly, make all three exactly alike.
* Adjust Tcl-related code to compile cleanly with Tcl 8.4 (add const modifiers asTom Lane2002-12-309-154/+176
| | | | needed). Some desultory const-ification of SPI interface to support this.
* Attached is a patch to provide makefiles, etc. to allow the compilationBruce Momjian2002-12-305-0/+431
| | | | | | | of the libpq interface static and dynamic libraries with the freely downloadable Borland C++ compiler version 5.5 and/or C++ Builder. Lester Godwin
* Code review for transaction-safe-TRUNCATE patch: minor cleanups.Tom Lane2002-12-302-7/+17
|
* Code review for CLUSTER ALL patch. Fix bogus locking, incorrect transactionTom Lane2002-12-305-277/+273
| | | | stop/start nesting, other infelicities.
* Make use of TCL_INCLUDE_SPEC if available (it's new in Tcl 8.4, too badTom Lane2002-12-304-6/+10
| | | | it took 'em this long to realize it's needed...)
* Cause FETCH 1 to return the current cursor row, or zero if atBruce Momjian2002-12-305-28/+51
| | | | | | | | | | | | beginning/end of cursor. Have MOVE return 0/1 depending on cursor position. Matches SQL spec. Pass cursor counter from parser as a long rather than int. Doc updates.