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

17060 Commits

Author SHA1 Message Date
c37a75a529 Jan:
someone asked me about the FK deadlock fix, mentioned in the 7.3.3
release notes as 3rd change:

     http://www.postgresql.org/docs/current/static/release-7-3-3.html

Actually, that fix was available with 7.4, not 7.3. Don't know if we can
retroactively change the release-notes though.
2004-02-12 20:18:13 +00:00
f8cdde14da Translation updates 2004-02-12 19:17:41 +00:00
29760bbdaf Properly set NEED_REENTRANT_FUNCS for threaded libpq/ecpg.
Without this patch, no thread locking or *_r functions were being used.
2004-02-11 17:32:09 +00:00
18b8cb5a9e Repair missing inclusions of -lintl for shared libraries. 2004-02-10 07:26:48 +00:00
24bd490369 Don't try to turn the random bytes from a md5 salt into a String
because it may not be a valid String depending on the encoding.

Per report from Nadeem Bitar.
2004-02-10 01:58:48 +00:00
2194ed88de Ensure that memcmp() does not run off the end of memory, per Kurt Roeckx.
(Same patch committed to HEAD but I fat-fingered the commit message...)
2004-02-03 17:56:04 +00:00
932001350b V3 NotificationResonse messages were trying to be received as V2
messages.  Also the PID was being read in the wrong byte order.
Finally add a test case for listen/notify.

Per report from Hans Nather.
2004-02-03 05:43:24 +00:00
d71188860e ConnectionPool and SimpleDataSource are marked Serializable, but their
superclass (which contains a number of state variables) is not.  To
correctly serialize these objects we need to manually implement
writeObject and readObject.

Per report from R. Lemos
2004-02-03 05:28:17 +00:00
1a92a4c10c ResultSet.next() and previous() incremented or decremented the
internal current_row variable regardless of wether they succeeded or
not.  This generated some ArrayIndexOutOfBoundsExceptions when the
errorneous adjustment current_row led to out of range values.

Per report from Fischer Krisztian.
2004-02-03 05:25:38 +00:00
9287630fbc Fix the setXXXStream methods. If passed a null InputStream, convert
this to a setNull call.  The code originally would try to read the
whole stream in one call to read(), but this doesn't work.  The
InputStream API makes it clear you must be prepared to loop and
continue reading if you didn't get the whole request on the first
try.

Per report from Martin Holz.
2004-02-03 05:13:56 +00:00
7ca2bff95f Newer versions of the 1.4.2 jdk give warnings about having return in a
finally clause.
2004-02-03 05:00:21 +00:00
fce397ed12 Do not let external specification of CFLAGS stop us from adding
-fno-strict-aliasing.
2004-02-02 04:07:40 +00:00
a8fcb748e3 Avoid generating invalid character encoding sequences in make_greater_string.
Not sure how this mistake evaded detection for so long.
2004-02-02 03:07:14 +00:00
a2b5cc81df Use Tcl_PutEnv() in place of putenv() in libpgtcl, as the latter can
apparently corrupt the Tcl runtime. Per suggestion from Michael
Brusser <michael@synchronicity.com>
2004-02-02 01:00:58 +00:00
871e56709d Fix text_position to not scan past end of source string in multibyte
case, per report from Korea PostgreSQL Users' Group.
2004-01-31 00:45:34 +00:00
94189c9fc9 - Fixed prototype for ECPGprepared_statement to not moan about "const char"
- Fixed parsing of nested structures.
2004-01-28 09:55:53 +00:00
fd950e878c Fix oversight in check_ungrouped_columns optimization that avoids
unnecessary checks for complex grouping expressions: we cannot check
whether the expressions are simple Vars until after we apply
flatten_join_alias_vars, because in the case of FULL JOIN that routine
can introduce non-Var expressions.  Per example from Joel Knight.
2004-01-28 07:47:07 +00:00
9f017115f5 simplify_function() mustn't try to evaluate functions that return
composite types, because TupleTableSlots aren't Datums and can't be
stored in Const nodes.  We can remove this restriction if we ever
adopt a cleaner runtime representation for whole-tuple results, but
at the moment it's broken.  Per example from Thomas Hallgren.
2004-01-28 00:05:25 +00:00
03ef7ebafa Run stats test separately, not as part of a parallel group, to avoid
possible failures due to stats collector not updating fast enough under
heavy load.  Per report from Jeremy Yoder.
2004-01-27 00:50:52 +00:00
a51d4b8dc0 Repair incorrect order of operations in GetNewTransactionId(). We must
complete ExtendCLOG() before advancing nextXid, so that if that routine
fails, the next incoming transaction will try it again.  Per trouble
report from Christopher Kings-Lynne.
2004-01-26 19:16:23 +00:00
ac760b6bff Docs fix from Kris Jurka <books@ejurka.com> 2004-01-26 15:08:58 +00:00
5eb2076c3c Fix problems with dropped columns in pltcl triggers, per report from Patrick Samson. 2004-01-24 23:06:41 +00:00
67a1bf1bb1 Repair planner failure for cases involving Cartesian products inside
IN (sub-SELECT) constructs.  We must force a clauseless join of the
sub-select member relations, but it wasn't happening because the code
thought it would be able to use the join clause arising from the IN.
2004-01-24 00:37:42 +00:00
052cd647c7 Translation update 2004-01-22 21:13:45 +00:00
6369ace248 Fix incorrect dumping of database LOCATION from 7.0.* servers.
Per report from Mattias Kregert.
2004-01-22 19:09:48 +00:00
94db74f370 Fix oversight in optimization that avoids an unnecessary projection step
when scanning a table that we need all the columns from.  In case of
SELECT INTO, we have to check that the hasoids flag matches the desired
output type, too.  Per report from Mike Mascari.
2004-01-22 02:23:35 +00:00
5a2a8b9e01 Ensure fflush(stdout) happens in all cases, per gripe from Jon Sablatnig. 2004-01-21 22:05:53 +00:00
ab65429adf Back-patch repairs for --disable-shared support. 2004-01-21 19:25:11 +00:00
6932861e86 Added WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE. 2004-01-21 14:11:03 +00:00
767adcf5d6 Correct type for isalnum 2004-01-19 18:40:23 +00:00
0054f82c62 Fix typo. 2004-01-19 14:28:06 +00:00
51299baa9b Translation update 2004-01-18 14:54:18 +00:00
ab189aaad9 Don't use %s-with-precision format spec to truncate data being displayed
in a COPY error message.  It seems that glibc gets indigestion if it is
asked to truncate strings that contain invalid UTF-8 encoding sequences.
vsnprintf will return -1 in such cases, leading to looping and eventual
memory overflow in elog.c.  Instead use our own, more robust pg_mbcliplen
routine.  I believe this problem accounts for several recent reports of
unexpected 'out of memory' errors during COPY IN.
2004-01-18 02:15:57 +00:00
9933ba3f67 Repair faulty plan generation in cases where we choose to implement an
IN clause by mergejoin, and a type coercion is needed just above the subplan.
A more extensive patch will follow in HEAD.
2004-01-18 00:31:53 +00:00
9575c7af6c Translation updates 2004-01-14 12:14:18 +00:00
91d4f280dd pg_settings should have UPDATE privilege allowed to public.
(Can't force initdb for this in 7.4 branch, but we can at least see to it
that post-7.4.2 installations will get it right.)
2004-01-14 03:47:12 +00:00
f07c69ae57 The no-updates-to-system-catalogs-unless-usecatupd restriction should
not apply to system views.  It never mattered before 7.4, but it does now.
2004-01-14 03:45:02 +00:00
c2d9ae899d Revert ill-starred change of 13-Feb-02: it appeared to fix a problem of
incorrect permissions checking, but in fact disabled most all permissions
checks for view updates.  This corrects problems reported by Sergey
Yatskevich among others, at the cost of re-introducing the problem
previously reported by Tim Burgess.  However, since we'd lived with that
problem for quite awhile without knowing it, we can live with it awhile
longer until a proper fix can be made in 7.5.
2004-01-14 03:39:29 +00:00
00e734116c Fix format string error. 2004-01-13 22:43:25 +00:00
31fc448196 Translation update 2004-01-13 18:58:42 +00:00
d45a3bd772 Translation updates 2004-01-11 19:30:42 +00:00
f94ae60a1f Mark string for translation. 2004-01-11 19:25:44 +00:00
6119c7740a Fix subquery pullup logic to not be fooled when a view that appears
'simple' references another view that is not simple.  Must recheck
conditions after performing recursive pullup.  Per example from
Laurent Perez, 9-Jan-04.
2004-01-10 00:30:39 +00:00
05fb316fbb Fix incorrect SQL syntax emitted when -E is given without -P.
Report and fix from Martin Pitt.
2004-01-09 00:15:19 +00:00
2fb41f900a Remove broken (and unnecessary) definition of operator <> for _int4
datatype; the generic array comparators added in 7.4 supersede this.
Per report and patch from Korea PostgreSQL Users' Group.
2004-01-08 23:40:36 +00:00
f389ff33c3 Update OSF thread flags for non-gcc compiles. 2004-01-08 15:51:38 +00:00
611d33a90a Translation updates 2004-01-08 08:51:31 +00:00
88a987fcfd Update Solaris thread setting for non-gcc compilers. 2004-01-08 04:21:20 +00:00
6a78eecf6f Translation updates 2004-01-07 17:44:07 +00:00
0658e7905d Translation updates 2004-01-05 19:15:55 +00:00