1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00
Commit Graph

16898 Commits

Author SHA1 Message Date
84b64ab569 Fix problems in pg_autovacuum:
1) temp table crash

2) Check send_query() function call return value.

Backpatch to 7.4.X.
2004-05-26 18:48:37 +00:00
c924c065cd [ Backpatch to 7.4.X.]
Fix problem with doing 7.0.X dumps on character varying[] fields.

Christopher Kings-Lynne
2004-05-26 18:27:23 +00:00
360dcb1341 Fix erroneous error message printout when a configuration file contains
an overlength token.  Printout was always garbage and could dump core
entirely :-(.  Per report from Martin Pitt.
2004-05-25 19:11:26 +00:00
05ce2d738f Reduce pg_listener lock taken by NOTIFY et al from AccessExclusiveLock
to ExclusiveLock.  This still serializes the operations of this module,
but doesn't conflict with concurrent ANALYZE operations.  Per trouble
report from Philip Warner a few weeks ago.
2004-05-22 21:58:41 +00:00
962c362495 Fixed DEALLOCATE PREPARE to use correct function call 2004-05-21 13:50:59 +00:00
10a8cc5cc5 Fix setting timestamp values with very early year values, like 2, by
formatting all years with four digits.  Previously 0002-10-30 was
being sent as 2-10-30 which got turned into 2030-02-10.

Per report from oneway_111.
2004-05-17 20:38:56 +00:00
fedfc5d363 Propagate enlargeStringInfo() fixes into the equivalent code in
pqexpbuffer.c.  While a client-side failure doesn't seem like a
security issue, it's still a bug.
2004-05-14 00:20:51 +00:00
65924e6cc6 Tighten up overflow check in path_recv, pursuant to code review inspired
by Ken Ashcraft's report.  I think there is no actual bug here since if
the int32 value does wrap a little bit, palloc will still reject it.
Still it's better that the code be obviously correct.
2004-05-12 22:39:00 +00:00
5e027b19cd Add tests to enlargeStringInfo() to avoid possible buffer-overrun or
infinite-loop problems if a bogus data length is passed.
2004-05-11 20:07:38 +00:00
b8de9b216f Fix oversights in processing of LIMIT expressions during planning. 2004-05-11 13:15:23 +00:00
40ac7eddd9 Repair recalculation failure for nested sub-SELECTs, per bug report from
Didier Moens.  Bug is new in 7.4, and was caused by not updating everyplace
I should've when replacing locParam markers by allParam.
2004-05-11 02:21:55 +00:00
006987781d Just another bug in adjust_informix. 2004-05-10 13:46:39 +00:00
86ac85b6ae - Fixed bug that reversed string length in typedefs. 2004-05-07 13:43:29 +00:00
e6e814c2b1 Allow public access to radius field to match other geometric types
behavior.

Per report from Declan Lynch.
2004-05-07 05:28:22 +00:00
8d86b89ec0 NATURAL CROSS JOIN is a contradiction in terms, not to mention disallowed
by the SQL spec and by our parser.  Thanks to Jonathan Scott for finding
this longstanding error.
2004-05-07 03:20:01 +00:00
69f5e41be3 Don't assume that struct timeval's tv_sec field is the same datatype as
time_t; on some platforms they are not the same width.  Per Manfred Koizar.
2004-05-05 17:28:57 +00:00
31cf0d6bac Unset PGCLIENTENCODING to prevent backend from dying if it's set
to something incompatible with the -E option.
2004-05-05 16:09:56 +00:00
d57af54ffa Fixed bug in adjust_informix that treated arrays as simple variables. 2004-05-05 15:06:21 +00:00
0feed44305 I thought we'd made initdb safe against newline-munging issues, but on
inspection we fixed only one of the two uses of COPY :-(.  Fix the other.
This is already correct in CVS tip, but 7.4.3 could use the patch.
2004-04-29 19:56:35 +00:00
79e42a6eb2 Update the build.xml file to support building with the new 1.5 jdk
and ant 1.6.
2004-04-26 08:28:32 +00:00
14684ca28f Ensure getaddrinfo_all returns null result on failure. 2004-04-24 20:10:47 +00:00
1a60128573 Allow updateable ResultSets to support types that aren't directly
mappable to Java types, for example cidr.

Per report from Moray Taylor.
2004-04-24 01:54:45 +00:00
d8e53bd6c0 Fixed memory misusage in variable handling. 2004-04-23 06:17:27 +00:00
aee7612fa8 Fix typo 2004-04-22 08:34:13 +00:00
9b6319fdd0 New link for Solaris IPC article 2004-04-22 08:31:36 +00:00
9086c46f22 Tweak findTargetlistEntry so that bare names occurring in GROUP BY clauses
are sought first as local FROM columns, then as local SELECT-list aliases,
and finally as outer FROM columns; the former behavior made outer FROM
columns take precedence over aliases.  This does not change spec
conformance because SQL99 allows only the first case anyway, and it seems
more useful and self-consistent.  Per gripe from Dennis Bjorklund 2004-04-05.
2004-04-18 18:13:31 +00:00
2510c867d6 Translation updates 2004-04-15 08:13:00 +00:00
d9bbf47aaa Still another place to make the world safe for zero-column tables.
Per example from Jiang Wei.
2004-04-07 18:46:20 +00:00
2fde466135 Support FULL JOIN with no join clauses, such as X FULL JOIN Y ON TRUE.
That particular corner case is not exactly compelling, but given 7.4's
ability to discard redundant join clauses, it is possible for the situation
to arise from queries that are not so obviously silly.  Per bug report
of 6-Apr-04.
2004-04-06 18:46:25 +00:00
79d48449d7 ALTER SEQUENCE RESTART did the wrong thing if sequence last_value was
equal to the desired restart value (must clear is_called, did not).
Per bug report #1127 from Piotr Konieczny.
2004-04-06 16:39:40 +00:00
96f362bbd6 Translation updates 2004-04-05 08:57:21 +00:00
28455721ff Fix for bug with the jdbc driver not properly working with binary cursors and
the V3 protocol.
 Modified Files:
  Tag: REL7_4_STABLE
 	jdbc/org/postgresql/Driver.java.in
 	jdbc/org/postgresql/core/BaseResultSet.java
 	jdbc/org/postgresql/core/BaseStatement.java
 	jdbc/org/postgresql/core/Field.java
 	jdbc/org/postgresql/core/PGStream.java
 	jdbc/org/postgresql/core/QueryExecutor.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
 	jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java
 	jdbc/org/postgresql/jdbc1/Jdbc1PreparedStatement.java
 	jdbc/org/postgresql/jdbc1/Jdbc1RefCursorResultSet.java
 	jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
 	jdbc/org/postgresql/jdbc1/Jdbc1Statement.java
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
 	jdbc/org/postgresql/jdbc2/Array.java
 	jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java
 	jdbc/org/postgresql/jdbc2/Jdbc2PreparedStatement.java
 	jdbc/org/postgresql/jdbc2/Jdbc2RefCursorResultSet.java
 	jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
 	jdbc/org/postgresql/jdbc2/Jdbc2Statement.java
 	jdbc/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java
 	jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java
 	jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java
 	jdbc/org/postgresql/jdbc3/Jdbc3RefCursorResultSet.java
 	jdbc/org/postgresql/jdbc3/Jdbc3ResultSet.java
 	jdbc/org/postgresql/jdbc3/Jdbc3Statement.java
 	jdbc/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
 	jdbc/org/postgresql/test/jdbc2/OID74Test.java
 Added Files:
  Tag: REL7_4_STABLE
 	jdbc/org/postgresql/test/jdbc2/ServerCursorTest.java
2004-03-29 17:47:47 +00:00
d9a1b2548f Fixed possible segfault in type.c (by Juergen Cappel) 2004-03-29 15:12:08 +00:00
7442defe4b Some further editorializing on README.CVS. 2004-03-28 06:09:14 +00:00
9169b57755 Add -D_REENTRANT for Solaris threading. 2004-03-26 18:24:16 +00:00
52e33bab6f Update solaris for threading. 2004-03-25 22:13:44 +00:00
fb411a4768 Minimize memory allocation for void (but not null) value. 2004-03-25 16:50:49 +00:00
7ce822372f fflush() FILE buffer to descriptor so stat call gets proper size in fseeko.c.
Fixed problem with pg_dump tar backups.  Only happens on platforms that
use our port/fseeko.c, which is currently BSD/OS and NetBSD.
2004-03-23 05:27:02 +00:00
b96509a3f3 Fix getpwuid_r call:
*result = getpwuid_r(uid, resultbuf, buffer, buflen);
2004-03-23 02:04:33 +00:00
f2cc5330cc In working through a pg_autovacuum problem with Joe Conway (which turned
out to be the same problem reported by Cott Lang which the previous
patch resolved) a new bug was uncovered when running with a debug level
of greater than 1.

This patch resolves this new found bug and fixes some of the other
debugging output to be more consistent.

Please apply to both HEAD and the 7.4 branch.


Matthew T. O'Connor
2004-03-22 03:57:19 +00:00
21a7569b1a Handle draft version of getpwuid_r() that accepts only four arguments.
Backpatch to 7.4.X.  Required for Solaris 7 & 8.
2004-03-20 15:39:40 +00:00
774571fd08 Fix pg_autovacuum to handle unsigned and oids better.
Matthew T. O'Connor
2004-03-17 13:16:28 +00:00
9c99b3f51e Update Solaris thread flags, per Jim Seymour 2004-03-14 23:51:57 +00:00
0175b6d101 Fix error in termination of COPY IN mode when using V2 protocol.
Report and fix per ljb, 8-Mar-04.
2004-03-14 22:01:01 +00:00
036457f35e > (I also see some post-7.4.1 changes in src/template/solaris, so you
> possibly should look there too.)
[snip]
>

I think I have the fix for part of it, but this remains...

    gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
    -Wmissing-declarations -fPIC -I. -I../../../src/include
    -D_POSIX_PTHREAD_SEMANTICS -DFRONTEND
    -DSYSCONFDIR='"/usr/local/pgsql/etc"'  -c -o thread.o thread.c
    thread.c: In function `pqGethostbyname':
    thread.c:189: error: `resbuf' undeclared (first use in this
function)

Looking at src/port/thread.c, line 189, it looks like somebody typo'd.
Looks like that second parameter should be "resultbuf", not "resbuf"?

Jim Seymour
2004-03-14 14:01:54 +00:00
e6bc372174 Committed Informix compat bug fix to 7.4 as well. 2004-03-14 12:18:35 +00:00
695c241e5a Repair memory leakage introduced into the non-hashed aggregate case by
7.4 rewrite for hashed aggregate support.  If the transition data type
is pass-by-reference, the transValue must be pfreed when starting a new
group boundary, else we have a one-value-per-group leakage.  Thanks to
Rae Steining for providing a reproducible test case.
2004-03-13 00:54:35 +00:00
ef41d22e55 Improvements to README.CVS 2004-03-10 01:34:53 +00:00
eb7ff67cea Remove HISTORY and INSTALL. Have them generated by the tarball scripts.
Add README.CVS to help CVS folks find this information.
2004-03-10 00:28:27 +00:00
68c4df98c5 Remove blank line in Makefile. 2004-03-09 20:10:19 +00:00