1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

21700 Commits

Author SHA1 Message Date
Tatsuo Ishii
5343bcadd6 Fix for rearranging encoding id ISO-8859-5 to ISO-8859-8.
Also make the code more robust by searching for target encoding
in the internal charset map.

Problem reported by Sagi Bashari on 2005/12/21.
See "[BUGS] BUG #2120: Crash when doing UTF8<->ISO_8859_8 encoding conversion"
on pgsql-bugs list for more details.

Back patch for 8.1_STABLE.
2005-12-24 00:49:18 +00:00
Tom Lane
13d954d744 Fix make_relative_path() to support cases where target_path and bin_path
differ by more than the last directory component.  Instead of insisting
that they match up to the last component, accept whatever common prefix
they have, and try to replace the non-matching part of bin_path with
the non-matching part of target_path in the actual executable's path.
In one way this is tighter than the old code, because it insists on
a match to the part of bin_path we want to substitute for, rather than
blindly stripping one directory component from the executable's path.
Per gripe from Martin Pitt and subsequent discussion.
2005-12-23 22:34:27 +00:00
Tom Lane
e6242ba176 Adjust string comparison so that only bitwise-equal strings are considered
equal: if strcoll claims two strings are equal, check it with strcmp, and
sort according to strcmp if not identical.  This fixes inconsistent
behavior under glibc's hu_HU locale, and probably under some other locales
as well.  Also, take advantage of the now-well-defined behavior to speed up
texteq, textne, bpchareq, bpcharne: they may as well just do a bitwise
comparison and not bother with strcoll at all.

NOTE: affected databases may need to REINDEX indexes on text columns to be
sure they are self-consistent.
2005-12-22 22:50:07 +00:00
Bruce Momjian
f545a05704 Update interval documenation to mention the storage system used. 2005-12-22 21:45:30 +00:00
Bruce Momjian
14e9a17f0a Add documentation example of using interval multiplication with 'days'.
Backpatch to 8.1.X.
2005-12-21 23:23:09 +00:00
Bruce Momjian
2469b99665 Add additional example for interval multiplication.
Fix example for day and hours interval subtraction for new computation
method.

Update interval examples to display zero seconds, which is our default.

Backpatch to 8.1.X.
2005-12-21 16:02:44 +00:00
Teodor Sigaev
dacf7e774d Fix word's length in pg_regexec call 2005-12-21 13:07:38 +00:00
Tom Lane
ba7fd49de5 Defend against crash while processing Describe Statement or Describe Portal
messages, when client attempts to execute these outside a transaction (start
one) or in a failed transaction (reject message, except for COMMIT/ROLLBACK
statements which we can handle).  Per report from Francisco Figueiredo Jr.
2005-12-14 17:06:37 +00:00
Tom Lane
599e225c11 Fix problem with whole-row Vars referencing sub-select outputs, per
example from Jim Dew.  Add some simple regression tests, since this is
an area we seem to break regularly :-(
2005-12-14 16:28:49 +00:00
Tom Lane
f23e9f7a54 Teach deparsing of CASE expressions to cope with the simplified forms
that simplify_boolean_equality() may leave behind.  This is only relevant
if the user writes something a bit silly, like CASE x=y WHEN TRUE THEN.
Per example from Michael Fuhr; may or may not explain bug #2106.
2005-12-10 19:21:17 +00:00
Tom Lane
31a21e3df0 Remove incorrect increment of lineno, per David Fetter.
Sync HEAD and 8.1 branches of pgbench.
REL8_1_1
2005-12-10 01:09:14 +00:00
Peter Eisentraut
8c1fc987e4 Translation updates 2005-12-09 22:33:32 +00:00
Tom Lane
a2fc8ca797 Add release notes for back branches (7.3 and up).
Also minor improvements to 8.1.1 release notes.
2005-12-09 20:40:26 +00:00
Bruce Momjian
24cea65634 Add documentation about the behavior of BEFORE triggers and referential
integrity actions.

Stephan Szabo
2005-12-09 19:39:43 +00:00
Bruce Momjian
2eed0afc0c Remove mention that history is _now_ automatically saved on exit. It
has been that way for a long time.
2005-12-09 19:19:28 +00:00
Tom Lane
9af49fcf87 Fix broken markup. 2005-12-09 18:07:57 +00:00
Tom Lane
49d0ac4472 Fix core dump in error path of plpgsql_parse_tripwordtype. Somebody
introduced a copy-and-pasteo while trying to simplify the code.
2005-12-09 17:09:00 +00:00
Bruce Momjian
832bcfef55 I reconfirmed MS-VC6. Thank you for wonderful correspondence.
However, Another problem newly occurred.
This solves the problem of snprintf and vsnprintf.

Patch to HEAD and 8.1.X.

Hiroshi Saito
2005-12-09 04:50:50 +00:00
Bruce Momjian
df56447077 Release note wording improvements. 2005-12-08 23:22:38 +00:00
Bruce Momjian
d4fa3a8c78 Wrap UTF-8 paragraph. 2005-12-08 22:45:51 +00:00
Bruce Momjian
9f389f7db9 Update wording of translation bug item. 2005-12-08 22:36:52 +00:00
Bruce Momjian
96a1732710 Stamp 8.1.1. 2005-12-08 22:31:10 +00:00
Bruce Momjian
4bafc1202a Update release notes for 8.1.1. 2005-12-08 22:22:27 +00:00
Bruce Momjian
5e6e9526c9 Update 8.1.X FAQs. 2005-12-08 21:37:54 +00:00
Bruce Momjian
e2d7e03fb2 FAQ_AIX in 8.1.0 contains outdated information about how to deal with
postgres problems due to readline.  The attached patch replaces that
section of it with better ways of handling the problem.

Seneca Cunningham
2005-12-08 21:36:55 +00:00
Bruce Momjian
6c8e20ad1b there's a paragraph in the ALTER TABLE reference page that reads:
DROP CONSTRAINT

    This form drops constraints on a table. Currently, constraints on tables
    are not required to have unique names, so there may be more than one
    constraint matching the specified name. All matching constraints will be
    dropped.

To my knowledge, it is no longer possible to create constraints with the
same name for the same relation. When you create a constraint and specify
the same name explictly, an error is raised. Implicit constraint creation
won't choose an existing name either and up to now you could not rename a
constraint. Renaming works with the patch I sent in a few hours ago but this
patch as well won't allow constraints with identical names on the same
relation.

The attached patch thus removes the note in the docs.

Joachim Wieland
2005-12-08 21:35:41 +00:00
Bruce Momjian
8c52b34bc7 Remove empty heading row in error table. 2005-12-08 21:23:13 +00:00
Peter Eisentraut
061fecc50b Add missing translation marker 2005-12-08 21:17:46 +00:00
Bruce Momjian
6ae578d261 Add "Constant" column to error code table.
Also, better mark section headings.

kdio@uenf.br
2005-12-08 21:01:55 +00:00
Peter Eisentraut
ff4cc77bca Documentation fix: s/event_object_name/event_object_table/g 2005-12-08 20:46:54 +00:00
Tom Lane
bafe47497a Fix bgwriter's failure to release buffer pins and open files after an
error.  This probably explains bug #2099 and could also account for
mysterious VACUUM hangups.
2005-12-08 19:19:31 +00:00
Bruce Momjian
7f155c3322 I recently received the Debian bug report below about missing iconv
support for the dbf2pg contrib module.

The submitter created a patch which replaces the silent ignoring of -F
(when iconv support is disabled) with a meaningful warning.

Martin Pitt
2005-12-08 18:04:38 +00:00
Bruce Momjian
00b013b56e Add documentation about the inability of plpsql to use parameter names
that are the same as column names used in the function.
2005-12-08 18:02:10 +00:00
Bruce Momjian
a3e1e99674 Disble some Win32-specific code in win32-client-only builds:
I have the problem, when building by MS-VC6.
An error occurs in the 8.1.0 present source codes.

nmake -f win32.mak
..\..\port\getaddrinfo.c(244) : error C2065: 'WSA_NOT_ENOUGH_MEMORY'
..\..\port\getaddrinfo.c(342) : error C2065: 'WSATYPE_NOT_FOUND'

This is used by winsock2.h. However, Construction of a windows base is
winsock.h.
Then, Since MinGW has special environment, this is right. but, it is not
found in VC6.
Furthermore, in getaddrinfo.c, IPV6-API is used by
LoadLibraryA("ws2_32");
Referring to of dll the external memory generates this violation by VC6
specification.

I considered whether the whole should have been converted into winsock2.
However, Now, DLL of MinGW creation operates wonderfully as it is.
That's right, it has pliability by replacement of simple DLL.
Then, I propose the system using winsock(non IPV6) in construction of
VC6.

Hiroshi Saito
2005-12-08 17:52:20 +00:00
Tom Lane
5ca6ab404d Fix incorrect SPI example, per Yoshihisa Nakano. 2005-12-07 15:39:32 +00:00
Bruce Momjian
95f1f192e8 Improve lazy vacuum wording. 2005-12-07 14:36:08 +00:00
Bruce Momjian
5db90cc645 Clarify vacuum lazy can shrink a file under certain circumstances. 2005-12-07 05:36:08 +00:00
Bruce Momjian
c90f02316e Update iconv wording, per Peter. 2005-12-06 21:01:32 +00:00
Bruce Momjian
494d1f1497 Highlight diff idea for iconv. 2005-12-06 20:26:02 +00:00
Bruce Momjian
34dc4228cb iconv uses UTF-8, not UTF8. 2005-12-06 20:19:38 +00:00
Bruce Momjian
ead868059b Document method of removing invalid UTF8 escape sequences from dump
file.  Backpatch to 8.1.X.

Paul Lindner
2005-12-06 19:27:09 +00:00
Bruce Momjian
0ebd65ddd4 Since my name has a non-ascii-letter in it, it's often spelled wrong. In
the latest release notes there is a latin1 character that shouldn't be
there so I made a patch to fix that. This patch also fixes some old
entries that uses o instead of &ouml; (which is also wrong but not as
bad as including a latin1 character in the sgml file).

Dennis Bj?rklund
2005-12-06 18:43:40 +00:00
Bruce Momjian
42860677a4 Add documentation on the use of *printf() macros and libintl.
Backpatch to 8.1.X.
2005-12-06 18:35:36 +00:00
Teodor Sigaev
3482b4597e Fix stupid bug with sizeof 2005-12-06 18:22:27 +00:00
Tom Lane
386f0e50ef In a nestloop inner indexscan, it's OK to use pushed-down baserestrictinfo
clauses even if it's an outer join.  This is a corner case since such
clauses could only arise from weird OUTER JOIN ON conditions, but worth
fixing.  Per example from Ron at cheapcomplexdevices.com.
2005-12-06 16:50:46 +00:00
Tom Lane
edae280e69 ecpg/pgtypeslib seems to need snprintf.c pulled in, too. 2005-12-06 05:26:30 +00:00
Tom Lane
24bc418969 Put undef's before extern declarations that need 'em, per Andrew Dunstan. 2005-12-06 05:13:56 +00:00
Bruce Momjian
4d870d5d8a Add comment on why pg *printf functions are used unconditionally on
Win32.

Backpatch to 8.1.X.
2005-12-06 04:53:28 +00:00
Tom Lane
f244c488fb Make Win32 build use our port/snprintf.c routines, instead of depending
on libintl which may or may not provide what we need.  Make a few marginal
cleanups to ensure this works.  Andrew Dunstan and Tom Lane.
2005-12-06 02:29:27 +00:00
Tom Lane
dc68b9ec30 Add regression test to see if the min/max values of int8 convert correctly. 2005-12-05 04:13:53 +00:00