Commit Graph

19899 Commits

Author SHA1 Message Date
Tatsuo Ishii
8bedb71888 Fix bug in MIC -> EUC_JP conversion. Per Atsushi Ogawa. 2005-06-11 02:46:16 +00:00
Tom Lane
887a7255d1 Repair error in description of nonblocking usage of PQgetCopyData().
Per Volkan Yazici.
2005-06-09 19:08:36 +00:00
Tom Lane
6bbd271a1e Use just NULL not NULL::TEXT --- the latter coding is unnecessary and
not schema-safe.  Per report from Jochem van Dieten.
2005-06-07 14:05:01 +00:00
Tom Lane
2f5b2558d3 Code for SET/SHOW TIME ZONE with a fixed-interval timezone was not
prepared for HAVE_INT64_TIMESTAMP.  Per report from Guillaume Beaudoin.
2005-06-05 01:48:45 +00:00
Bruce Momjian
272f23c814 Update Chinese FAQ to fix XHTML format.
Weiping (Laser)
2005-06-04 03:33:25 +00:00
Bruce Momjian
1d03f3f027 Update Russian FAQ.
Viktor Vislobokov
2005-06-03 18:17:54 +00:00
Tom Lane
543bb05a8b Push enable/disable of notify and catchup interrupts all the way down
to just around the bare recv() call that gets a command from the client.
The former placement in PostgresMain was unsafe because the intermediate
processing layers (especially SSL) use facilities such as malloc that are
not necessarily re-entrant.  Per report from counterstorm.com.
2005-06-02 21:03:46 +00:00
Michael Meskes
53b4a1ce4b Added patch by Gavin Scott <gavin@planetacetech.com> for Intel 64bit hardware.
[One half already was committed with the last commit.]
2005-06-02 12:49:26 +00:00
Michael Meskes
d014a21624 Fixed memory leak in ecpglib by adding some missing free() commands. 2005-06-02 12:37:25 +00:00
Bruce Momjian
7b21f26ea7 Fix log_statement to properly recognize SELECT INTO and CREATE TABLE AS
and DDL statements.

Backpatch fix to 8.0.X.

Per report from Murthy Kambhampaty
2005-06-01 23:27:12 +00:00
Tom Lane
64f40008ec patternsel() was improperly stripping RelabelType from the derived
expressions it constructed, causing scalarineqsel to become confused
if the underlying variable was of a domain type.  Per report from
Kevin Grittner.
2005-06-01 17:05:25 +00:00
Teodor Sigaev
babd4714f6 Prevent to divide by zero and range out of 0..1 2005-06-01 11:45:42 +00:00
Tom Lane
3b3600148d Add test to WAL replay to verify that xl_prev points back to the previous
WAL record; this is necessary to be sure we recognize stale WAL records
when a WAL page was only partially written during a system crash.
2005-05-31 19:10:39 +00:00
Tom Lane
1c69be95f9 expandRTE and get_rte_attribute_type mistakenly always imputed typmod -1
to columns of an RTE that was a function returning RECORD with a column
definition list.  Apparently no one has tried to use non-default typmod
with a function returning RECORD before.
2005-05-29 17:10:35 +00:00
Bruce Momjian
1b46bcc0c3 Update Farsi FAQ.
Mahmoud Taghizadeh
2005-05-27 22:10:20 +00:00
Neil Conway
92525dd6c9 Adjust datetime parsing to be more robust. We now pass the length of the
working buffer into ParseDateTime() and reject too-long input there,
rather than checking the length of the input string before calling
ParseDateTime(). The old method was bogus because ParseDateTime() can use
a variable amount of working space, depending on the content of the
input string (e.g. how many fields need to be NUL terminated). This fixes
a minor stack overrun -- I don't _think_ it's exploitable, although I
won't claim to be an expert.

Along the way, fix a bug reported by Mark Dilger: the working buffer
allocated by interval_in() was too short, which resulted in rejecting
some perfectly valid interval input values. I added a regression test for
this fix.
2005-05-26 02:10:03 +00:00
Peter Eisentraut
9a1a986580 Translation updates 2005-05-25 08:37:22 +00:00
Tatsuo Ishii
afc0e843b9 Fix previous patch to exprTypmod. 2005-05-25 02:17:55 +00:00
Tatsuo Ishii
2a99455ca7 Inserting 5 characters into char(10) does not produce 5 padding spaces
if they are two-byte multibyte characters. Same thing can be happen
if octet_length(multibyte_chars) == n where n is char(n).
Long standing bug since 7.3 days. Per report and fix from Yoshiyuki Asaba.
2005-05-24 23:02:54 +00:00
Tom Lane
a94ace0796 Previous fix for "x FULL JOIN y ON true" failed to handle the case
where there was also a WHERE-clause restriction that applied to the
join.  The check on restrictlist == NIL is really unnecessary anyway,
because select_mergejoin_clauses already checked for and complained
about any unmergejoinable join clauses.  So just take it out.
2005-05-24 18:02:55 +00:00
Neil Conway
6d493ed7f5 Fix typo in PL/Perl Safe.pm initialization that prevented the proper
sharing of %_SHARED. From Andrew Dunstan.
2005-05-23 02:02:52 +00:00
Bruce Momjian
29167dd3d7 Update Japanese FAQ.
Jun Kuwamura
2005-05-20 15:53:52 +00:00
Neil Conway
621d5e1d72 Fix typo in ECPG docs, per Andreas Seltenreich. 2005-05-20 12:37:51 +00:00
Tom Lane
626be474d3 Guard against duplicate IDs in input file in SortTocFromFile().
Per report from Brian Hackett.
2005-05-17 17:30:41 +00:00
Bruce Momjian
ba5684691c Convert Chinese FAQ to valid XHTML, finally. 2005-05-17 04:18:30 +00:00
Bruce Momjian
c23e15cd42 Fix Chinese markup some more. 2005-05-17 03:41:14 +00:00
Bruce Momjian
390d460138 Update Chinese FAQ to xhtml. 2005-05-16 02:50:58 +00:00
Bruce Momjian
fd4d6853b7 Add -N make flag to bcc builds from /src dir. 2005-05-13 18:13:16 +00:00
Tom Lane
011af314b7 Add missing quote, per Dave Page. 2005-05-13 16:48:22 +00:00
Tom Lane
69664f11af Fix broken markup. 2005-05-13 16:47:03 +00:00
Tom Lane
f591a227df Update createuser examples to match the current program behavior,
and add an example showing assignment of a password.  Per suggestion
from Jari Aalto (via Martin Pitt).
2005-05-13 16:31:50 +00:00
Bruce Momjian
7b32956f37 Update chinese encoding specification. 2005-05-13 13:48:05 +00:00
Neil Conway
9ac4af6847 Fix bug in COPY CSV mode: handle consecutive embedded newlines in COPY
input. Also add a regression test for this bug. From Andrew Dunstan.
2005-05-13 06:35:25 +00:00
Bruce Momjian
928d269abf Fix pg_autovacuum -s flag to handle values > 2000 by using sleep()
instead of pg_usleep.

Backpatch to 8.0.X.
2005-05-11 17:58:32 +00:00
Bruce Momjian
b5e4dc25f1 Update FAQ URLs.
Robert Treat
2005-05-11 16:13:58 +00:00
Bruce Momjian
b746e49c87 Document where to download free Microsoft and Borland development tools. 2005-05-11 16:02:59 +00:00
Bruce Momjian
4401b762c2 Document that bcc compiles now need the -N flag, backpatch to 8.0.X. 2005-05-11 15:10:56 +00:00
Bruce Momjian
f7fa826041 Update Chinese FAQ, per Magnus. 2005-05-11 14:57:26 +00:00
Bruce Momjian
c20e93d363 Backpatch mention that not all functions are listed, with spelling fix. 2005-05-11 14:10:40 +00:00
Bruce Momjian
22b824ae39 Add mention that not all functions are listed.
Update Chinese FAQ for HTML.
2005-05-11 13:36:53 +00:00
Bruce Momjian
1608d48e15 Backpatch new Chinese FAQ to 8.0.X. 2005-05-11 02:13:21 +00:00
Bruce Momjian
4fa7615da8 Rename encryption section. 2005-05-09 17:26:55 +00:00
Bruce Momjian
00283f4b0a Backpatch FAQ's to 8.0.X for release. 2005-05-09 17:24:04 +00:00
Bruce Momjian
014fce947d Backpatch encryption doc section to 8.0.X. 2005-05-09 17:14:47 +00:00
Tom Lane
8fae36881d Update release notes for upcoming re-releases. 2005-05-09 00:10:06 +00:00
Tom Lane
16379e3ae5 Update release checklist to reflect that HISTORY and INSTALL don't
need to be created by hand anymore.
2005-05-08 23:34:23 +00:00
Tom Lane
d6e30b0ba0 Repair very-low-probability race condition between relation extension
and VACUUM: in the interval between adding a new page to the relation
and formatting it, it was possible for VACUUM to come along and decide
it should format the page too.  Though not harmful in itself, this would
cause data loss if a third transaction were able to insert tuples into
the vacuumed page before the original extender got control back.
2005-05-07 21:32:53 +00:00
Tom Lane
aba1f93e45 Adjust time qual checking code so that we always check TransactionIdIsInProgress
before we check commit/abort status.  Formerly this was done in some paths
but not all, with the result that a transaction might be considered
committed for some purposes before it became committed for others.
Per example found by Jan Wieck.
2005-05-07 21:22:36 +00:00
Tom Lane
17eb867e98 Stamp release 8.0.3. 2005-05-05 20:07:36 +00:00
Tom Lane
266a8975da Make standalone backends ignore pg_database.datallowconn, so that there
is a way to recover from disabling connections to all databases at once.
2005-05-05 19:53:37 +00:00