Bruce Momjian
3126c78b1a
Add comments to replace/unlink Win32 functions.
2003-04-24 16:40:17 +00:00
Bruce Momjian
5dc844b75c
Add PQunescapeBytea() and PQfeeMem() to the Win32 DLL list.
...
Karl Waclawek
2003-04-24 15:09:27 +00:00
Bruce Momjian
52e49e298f
Remove Win32 special rename/unlink from libpq.
2003-04-22 19:42:27 +00:00
Tom Lane
8a703496a2
getaddrinfo has no business doing unlink().
2003-04-22 03:52:56 +00:00
Bruce Momjian
7fc30094c7
Add dirmod to libpq Makefile.
2003-04-22 02:21:34 +00:00
Bruce Momjian
b952f0ef9b
Add Win32 unlink/rename file.
2003-04-22 02:18:48 +00:00
Bruce Momjian
dfc6649c4d
Add Win32 versions of unlink and rename --- loop until success.
2003-04-22 02:18:09 +00:00
Tom Lane
5ed27e35f3
Another round of protocol changes. Backend-to-frontend messages now all
...
have length words. COPY OUT reimplemented per new protocol: it doesn't
need \. anymore, thank goodness. COPY BINARY to/from frontend works,
at least as far as the backend is concerned --- libpq's PQgetline API
is not up to snuff, and will have to be replaced with something that is
null-safe. libpq uses message length words for performance improvement
(no cycles wasted rescanning long messages), but not yet for error
recovery.
2003-04-22 00:08:07 +00:00
Tom Lane
ca944bd2d4
Prevent palloc(0) error when parent table has zero columns.
2003-04-21 15:19:55 +00:00
Tom Lane
1dc3a62ec7
stddev() and variance() should return NULL when there is just one input
...
value, per recent discussion on pgsql-general.
2003-04-21 00:22:24 +00:00
Tom Lane
f9ba0a7fe5
Apple's assembler likes the inlined TAS syntax too, so no reason to
...
maintain a separate out-of-line version of PPC tas() anymore.
Also fix S_UNLOCK for __powerpc64__ platforms.
2003-04-20 21:54:34 +00:00
Tom Lane
b5d0051ecf
Fix multiple causes of breakage in plperl's error handling.
2003-04-20 21:15:34 +00:00
Tom Lane
b40bc9eac6
Avoid O(N^2) behavior with lots of deferred triggers by making
...
deferredTriggerInvokeEvents only scan events added since it last ran.
Stephan Szabo, some corrections by Tom Lane.
2003-04-20 17:03:25 +00:00
Bruce Momjian
c3b7d2d522
Allow \r and \r\n termination for COPY files.
...
Output \r\n termination on Win32.
Disallow literal carriage return as a data value,
backslash-carriage-return and \r still allowed.
Doc changes already committed.
2003-04-19 20:36:03 +00:00
Bruce Momjian
9c48cae3e4
Add pipe parameter to COPY function to allow proper line termination.
2003-04-19 19:55:37 +00:00
Tom Lane
3df163ad89
Add more documentation about shared memory costs.
2003-04-19 00:37:28 +00:00
Tom Lane
bd8d441775
Second round of FE/BE protocol changes. Frontend->backend messages now
...
have length counts, and COPY IN data is packetized into messages.
2003-04-19 00:02:30 +00:00
Tom Lane
54b38d293e
Fix breakage from recent variable-handling changes.
2003-04-18 23:38:47 +00:00
Bruce Momjian
4d4953fc41
Make Win32 tests to match existing Cygwin tests, where appropriate.
2003-04-18 01:03:42 +00:00
Tom Lane
cb7fb3ca95
First phase of FE/BE protocol modifications: new StartupPacket layout
...
with variable-width fields. No more truncation of long user names.
Also, libpq can now send its environment-variable-driven SET commands
as part of the startup packet, saving round trips to server.
2003-04-17 22:26:02 +00:00
Tom Lane
31845dd363
Fix abstime-to-time cast function, which has had broken implementation
...
since 7.2, per bug #947 . Turns out it had wrong volatility label, too.
Can't force initdb in 7.3 branch, but fix anyway for future installs.
2003-04-17 04:50:20 +00:00
Barry Lind
0b88b63709
Applied patches from Kris Jurka fixing a string tokenizing problem and
...
fixing an order by problem for index metadata results.
Also includes removing some unused code as well as a fix to the toString
method on statement.
Modified Files:
jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-04-17 04:37:07 +00:00
Tom Lane
1719fd55d3
Fix some problems exposed by building outside the source tree.
2003-04-16 05:23:55 +00:00
Tom Lane
1426db5d95
Fix stupid oversight ...
2003-04-16 04:37:58 +00:00
Tom Lane
5ab15591d9
eqjoinsel's logic for case where MCV lists are not present should
...
account for NULLs; in hindsight this is obvious since the code for
the MCV-lists case would reduce to this when there are zero entries
in both lists. Per example from Alec Mitchell.
2003-04-15 05:18:12 +00:00
Tom Lane
49c3cf5fd1
path.c needs to be included in libpq; per Joe Conway.
2003-04-14 21:15:13 +00:00
Tom Lane
0851e12244
Reorganize clog's error reporting so that PANIC on clog I/O error can
...
be reduced to a plain ERROR. Should make it at least a little less
painful to deal with data-corruption problems.
2003-04-14 17:31:33 +00:00
Bruce Momjian
6bfa2df64e
Document file name as optional for \o in psql help (\h).
2003-04-14 16:23:36 +00:00
Dave Cramer
810e0b982b
exposed the addDataType method to the PGConnection, allows users to add datatypes
2003-04-14 10:39:51 +00:00
Barry Lind
51acf97235
Applied patch submitted by Nic Ferrier with some cleanups of his previous
...
patch to add cursor based queries.
Modified Files:
jdbc/org/postgresql/core/BaseConnection.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-04-13 04:10:07 +00:00
Tom Lane
3fd5faed5b
Second try at avoiding conflicts with system isblank().
2003-04-13 04:07:17 +00:00
Tom Lane
ff5456feae
Add code to provide useful dynamic-linking error messages on OS X.
2003-04-13 01:19:06 +00:00
Tom Lane
ae02cf3c44
Guard against macro versions of isblank().
2003-04-12 22:28:33 +00:00
Tatsuo Ishii
35a0995992
Fix encoding conversion function bug.
...
See following posting for more details.
Subject: Re: [HACKERS] [BUGS] Bug #943 : Server-Encoding from EUC_TW to UTF-8 doesn't
From: Tatsuo Ishii <t-ishii@sra.co.jp>
To: michael.enke@wincor-nixdorf.com , pgsql-bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Date: Sat, 12 Apr 2003 10:51:45 +0900 (JST)
2003-04-12 07:53:57 +00:00
Tom Lane
5674460bb0
Fix error recovery for SSL_read/SSL_write calls.
2003-04-10 23:03:08 +00:00
Michael Meskes
76b45c9842
Informix fixes.
2003-04-10 13:06:57 +00:00
Tom Lane
da2060e5fd
Remove premature attempt to constant-fold type coercion expressions.
...
While usually safe, this fails if the coercion function needs the
query snapshot to be set already. Per example from Nigel Andrews.
2003-04-10 02:47:46 +00:00
Tom Lane
730840c9b6
First phase of work on array improvements. ARRAY[x,y,z] constructor
...
expressions, ARRAY(sub-SELECT) expressions, some array functions.
Polymorphic functions using ANYARRAY/ANYELEMENT argument and return
types. Some regression tests in place, documentation is lacking.
Joe Conway, with some kibitzing from Tom Lane.
2003-04-08 23:20:04 +00:00
Tom Lane
6fb5115850
Get rid of inappropriate flags in CPPFLAGS override --- these break
...
non-gcc compilers, and they would never belong in CPPFLAGS anyway.
2003-04-08 17:09:51 +00:00
Tom Lane
20f8480927
Mark TimeScales constants as double to avoid integer overflow in some compilers.
2003-04-08 17:02:04 +00:00
Tom Lane
dbb7503660
Remove extraneous semicolons.
2003-04-08 16:57:45 +00:00
Michael Meskes
a50f285d8d
Added some more informix compatibility functions.
2003-04-08 12:34:25 +00:00
Jan Wieck
cd203f3395
Avoid primary key lookup (and lock) if foreign key does not change
...
on UPDATE.
This get's rid of the long standing annoyance that updating a row
that has foreign keys locks all the referenced rows even if the
foreign key values do not change.
The trick is to actually do a check identical to NO ACTION after an
eventually done UPDATE in the SET DEFAULT case. Since a SET DEFAULT
operation should have moved referencing rows to a new "home", a following
NO ACTION check can only fail if the column defaults of the referencing
table resulted in the key we actually deleted. Thanks to Stephan.
Jan
2003-04-07 20:30:38 +00:00
Tom Lane
afe1185cf0
Remove unnecessary dt2local() call.
2003-04-07 15:04:03 +00:00
Peter Eisentraut
cb1d036acb
Generate pg_config.h.in by autoheader. Separate out manually editable
...
parts. Standardize spelling of comments in pg_config.h.
2003-04-06 22:45:23 +00:00
Bruce Momjian
3a8f67d091
Fix compile problem with Win32 macro used inside another macro.
2003-04-05 19:54:12 +00:00
Bruce Momjian
d46e643822
Add Win32 path handling for / vs. \ and drive letters.
2003-04-04 20:42:13 +00:00
Bruce Momjian
9bad936f67
Handle cp, rm, and exec for Win32.
2003-04-04 20:40:45 +00:00
Tom Lane
9c264975d5
Fix some signed-vs-unsigned-int issues; make print_aligned_vertical
...
safe for zero-column tables.
2003-04-04 15:48:38 +00:00
Tom Lane
eb5e4c58d1
Tighten up register usage for inline PPC version of tas().
2003-04-04 06:57:39 +00:00