1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-18 17:41:14 +03:00

16898 Commits

Author SHA1 Message Date
Tom Lane
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
Neil Conway
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
Tom Lane
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
Michael Meskes
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
Tom Lane
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
Tom Lane
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
Tom Lane
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
Tom Lane
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
Teodor Sigaev
ac760b6bff Docs fix from Kris Jurka <books@ejurka.com> 2004-01-26 15:08:58 +00:00
Tom Lane
5eb2076c3c Fix problems with dropped columns in pltcl triggers, per report from Patrick Samson. 2004-01-24 23:06:41 +00:00
Tom Lane
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
Peter Eisentraut
052cd647c7 Translation update 2004-01-22 21:13:45 +00:00
Tom Lane
6369ace248 Fix incorrect dumping of database LOCATION from 7.0.* servers.
Per report from Mattias Kregert.
2004-01-22 19:09:48 +00:00
Tom Lane
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
Tom Lane
5a2a8b9e01 Ensure fflush(stdout) happens in all cases, per gripe from Jon Sablatnig. 2004-01-21 22:05:53 +00:00
Tom Lane
ab65429adf Back-patch repairs for --disable-shared support. 2004-01-21 19:25:11 +00:00
Michael Meskes
6932861e86 Added WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE. 2004-01-21 14:11:03 +00:00
Teodor Sigaev
767adcf5d6 Correct type for isalnum 2004-01-19 18:40:23 +00:00
Peter Eisentraut
0054f82c62 Fix typo. 2004-01-19 14:28:06 +00:00
Peter Eisentraut
51299baa9b Translation update 2004-01-18 14:54:18 +00:00
Tom Lane
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
Tom Lane
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
Dennis Bjorklund
9575c7af6c Translation updates 2004-01-14 12:14:18 +00:00
Tom Lane
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
Tom Lane
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
Tom Lane
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
Peter Eisentraut
00e734116c Fix format string error. 2004-01-13 22:43:25 +00:00
Peter Eisentraut
31fc448196 Translation update 2004-01-13 18:58:42 +00:00
Dennis Bjorklund
d45a3bd772 Translation updates 2004-01-11 19:30:42 +00:00
Dennis Bjorklund
f94ae60a1f Mark string for translation. 2004-01-11 19:25:44 +00:00
Tom Lane
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
Tom Lane
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
Tom Lane
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
Bruce Momjian
f389ff33c3 Update OSF thread flags for non-gcc compiles. 2004-01-08 15:51:38 +00:00
Dennis Bjorklund
611d33a90a Translation updates 2004-01-08 08:51:31 +00:00
Bruce Momjian
88a987fcfd Update Solaris thread setting for non-gcc compilers. 2004-01-08 04:21:20 +00:00
Peter Eisentraut
6a78eecf6f Translation updates 2004-01-07 17:44:07 +00:00
Peter Eisentraut
0658e7905d Translation updates 2004-01-05 19:15:55 +00:00
Peter Eisentraut
0b7bc6288f Correct gettext URL. 2004-01-04 16:44:22 +00:00
Michael Meskes
630f23962b Fixed bug in GRANT OPTION FOR parsing. 2004-01-04 14:50:13 +00:00
Tom Lane
cd632c983e Fix portability bugs: char values passed to <ctype.h> functions must
be cast to unsigned char.  We have learned this the hard way before.
2004-01-04 04:17:14 +00:00
Tom Lane
71caa53674 Fix discrepancy in prototypes for HPUX pg_dlerror. 2004-01-04 04:06:45 +00:00
Tom Lane
1af7b00169 Fix ReadOffset() to work correctly when off_t is wider than int. 2004-01-04 04:02:22 +00:00
Bruce Momjian
3d5c2692e7 Remove trailing semicolons from macro initializations in plpython.
Problem report on True64 Unix by Nikola Milutinovic.
]
2004-01-04 00:14:55 +00:00
Tom Lane
8265a1d816 Do an explicit fflush after writing a progress message with puts.
This ensures stdout is kept in sync with messages on stderr.
Per report from Olaf Ferger.
2004-01-01 19:27:28 +00:00
Bruce Momjian
f40aa225bd Backpatch Solaris non-gcc thread compile fix to 7.4.X. 2004-01-01 17:35:32 +00:00
Tom Lane
7302130179 Avoid running out of memory during hash_create, by not passing a
number-of-buckets that exceeds the size we actually plan to allow
the hash table to grow to.  Per trouble report from Sean Shanny.
2003-12-30 20:05:15 +00:00
Michael Meskes
386258d3e5 Added missing whitespaces to array argument parsing. 2003-12-29 13:53:17 +00:00
Tom Lane
9c08d8fe56 Fix sanity-check code that mistakenly assumed error and notice messages
could never exceed 30K.  Per report from Andreas Pflug.
2003-12-28 17:44:05 +00:00
Tom Lane
2315548ed7 Avoid infinite loop if connection is lost during PQexecStart() or
PQexecFinish().  Per report from Andreas Pflug.
2003-12-28 17:29:51 +00:00