16725 Commits

Author SHA1 Message Date
Peter Eisentraut
aee7612fa8 Fix typo 2004-04-22 08:34:13 +00:00
Peter Eisentraut
9b6319fdd0 New link for Solaris IPC article 2004-04-22 08:31:36 +00:00
Tom Lane
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
Peter Eisentraut
2510c867d6 Translation updates 2004-04-15 08:13:00 +00:00
Tom Lane
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
Tom Lane
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
Tom Lane
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
Peter Eisentraut
96f362bbd6 Translation updates 2004-04-05 08:57:21 +00:00
Barry Lind
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
Michael Meskes
d9a1b2548f Fixed possible segfault in type.c (by Juergen Cappel) 2004-03-29 15:12:08 +00:00
Tom Lane
7442defe4b Some further editorializing on README.CVS. 2004-03-28 06:09:14 +00:00
Bruce Momjian
9169b57755 Add -D_REENTRANT for Solaris threading. 2004-03-26 18:24:16 +00:00
Bruce Momjian
52e33bab6f Update solaris for threading. 2004-03-25 22:13:44 +00:00
Teodor Sigaev
fb411a4768 Minimize memory allocation for void (but not null) value. 2004-03-25 16:50:49 +00:00
Bruce Momjian
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
Bruce Momjian
b96509a3f3 Fix getpwuid_r call:
*result = getpwuid_r(uid, resultbuf, buffer, buflen);
2004-03-23 02:04:33 +00:00
Bruce Momjian
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
Bruce Momjian
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
Bruce Momjian
774571fd08 Fix pg_autovacuum to handle unsigned and oids better.
Matthew T. O'Connor
2004-03-17 13:16:28 +00:00
Bruce Momjian
9c99b3f51e Update Solaris thread flags, per Jim Seymour 2004-03-14 23:51:57 +00:00
Tom Lane
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
Bruce Momjian
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
Michael Meskes
e6bc372174 Committed Informix compat bug fix to 7.4 as well. 2004-03-14 12:18:35 +00:00
Tom Lane
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
Neil Conway
ef41d22e55 Improvements to README.CVS 2004-03-10 01:34:53 +00:00
Bruce Momjian
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
Bruce Momjian
68c4df98c5 Remove blank line in Makefile. 2004-03-09 20:10:19 +00:00
Bruce Momjian
86d7f1187a Add HISTORY/INSTALL clean target to 7.4.X. 2004-03-09 20:08:21 +00:00
Bruce Momjian
7ea8735e71 Rebuild HISTORY file to match our official style sheets. 2004-03-09 17:40:52 +00:00
Bruce Momjian
8226ed2204 Update German FAQ.
Ian Barwick
2004-03-08 17:39:04 +00:00
Tom Lane
d4e09a0fa8 Some editorial work on 7.4.2 release notes. REL7_4_2 2004-03-07 22:08:09 +00:00
Bruce Momjian
49bc9c45c9 Brand 7.4.2. Release notes still need work. 2004-03-05 19:57:22 +00:00
Bruce Momjian
aeda110cb9 First update of release notes for 7.4.2. Still needs work. 2004-03-05 19:52:39 +00:00
Tom Lane
5b6d0a4df7 libpq's query to get the OIDs of large-object support functions was not
schema-safe.  Make it so, and improve the internal support for knowledge
of server version.
2004-03-05 01:54:13 +00:00
Bruce Momjian
4a6bf72c65 Fix log_executor_stats for non-multi queries. Backpatch to 7.4.X. 2004-03-05 00:21:51 +00:00
Michael Meskes
ea41a8cc5f - Fixed segfault due to missing check for variable declaration.
- Added check for multidimensional array usage.
2004-03-04 07:38:50 +00:00
Kris Jurka
926fd43d77 Update build number in anticipation of 7.4.2 release. With no
currently outstanding issues we'll flag now, so the release doesn't
slip out the door without it.
2004-03-04 03:25:10 +00:00
Tom Lane
f0d32c033a Always schema-qualify the name of a function referenced in CREATE CAST.
The former coding failed if the cast function was not in the pg_catalog
schema.  How'd this escape detection?
2004-03-02 21:14:59 +00:00
Tom Lane
819bfac66a Junkfilter logic to force a projection step during SELECT INTO was too
simplistic; it recognized SELECT * FROM but not SELECT * FROM LIMIT.
Per bug report from Jeff Bohmer.
2004-03-02 18:56:28 +00:00
Bruce Momjian
aff13a9714 [ backpatch]
Add missing checks for Borland C compiler.

L J Bayuk
2004-03-02 18:38:28 +00:00
Bruce Momjian
887a136572 Update Turkish FAQ, Devrim GUNDUZ 2004-03-02 15:46:34 +00:00
Bruce Momjian
fee9629cf1 Add missing sprompt.obj psql usage for Borland compiler, per private
report from krizsan.

Backpatch to 7.4.X.
2004-03-02 15:17:32 +00:00
Michael Meskes
f7a9dbce8d Added the missing rules for VOLATILE. 2004-03-02 06:52:18 +00:00
Tom Lane
44990772e0 Update release notes for 7.3.6. 2004-03-02 00:38:56 +00:00
Tom Lane
b6a7df8b29 Replace unportable use of /dev/stdin with lynx's -stdin switch. 2004-03-02 00:03:08 +00:00
Tom Lane
f91bde3fb6 make_sort_from_pathkeys()'s method for choosing which of several
equivalent sort expressions to use was broken: you can't just look
at the relation membership, you have to actually grovel over the
individual Vars in each expression.  I think this did work when it
was written, but it was broken by subsequent optimizations that made
join relations not propagate every single input variable upward.
Must find the Var that got propagated, not choose one at random.
Per bug report from Daniel O'Neill.
2004-02-29 17:36:48 +00:00
Dennis Bjorklund
02760606d1 Translation updates 2004-02-28 11:16:58 +00:00
Tom Lane
5cfb44a82e genericcostestimate() neglected to include qual startup cost in
indexTotalCost.  I think this may not make any real difference in 7.4,
but it definitely is a problem with CVS tip's new equation.
2004-02-27 21:44:44 +00:00
Tom Lane
36be19e3ed process_implied_equality must copy the substructure of the clauses it
is generating, to avoid problems when subselects are involved.  Per
report from Damon Hart.
2004-02-27 21:42:10 +00:00
Tom Lane
aed597102c anyarray really needs to be declared with typalign = 'd', so that entries
in pg_statistic are correctly aligned if they contain values that require
double alignment.  Too bad we cannot force initdb for this in 7.4 branch.
2004-02-24 22:59:22 +00:00