1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-11 00:12:06 +03:00
Commit Graph

14129 Commits

Author SHA1 Message Date
Tom Lane
f599d56f51 Fix ALTER TABLE ADD COLUMN to disallow the same column types that are
disallowed by CREATE TABLE (eg, pseudo-types); also disallow these types
from being introduced by the range-function syntax.  While at it, allow
CREATE TABLE to create zero-column tables, per recent pghackers discussion.
I am back-patching this into 7.3 since failure to disallow pseudo-types
is arguably a security hole.
2002-12-16 18:39:57 +00:00
Bruce Momjian
750b3f3825 The actual segfault was caused by a double pfree(), but ISTM that
failing to find pg_hba.conf should be a fatal error anyway, so I
increased the priority of the elog() from LOG to FATAL and refactored
the code a little bit.

Neil Conway
2002-12-14 18:49:43 +00:00
Bruce Momjian
96e9574037 Ok, I think I've gotten this figured out now. I saw this comment in
pqcomm.c, switched the ERROR logs to COMMERROR logs and it all works.
I've attached a patch to be-secure.c that fixes all my problems.

Nathan Mueller
2002-12-14 18:39:39 +00:00
Bruce Momjian
77a9708f85 Backpatch SSL fixes into 7.3.1. 2002-12-13 22:20:22 +00:00
Bruce Momjian
9056af5b63 Increment libpq major number for 7.3.1 and minor for 7.4. 2002-12-13 22:18:22 +00:00
Bruce Momjian
8fba8caba6 This patch fixes minor bugs in dictionary generator in contrib/tsearch
(contrib/tsearch/makedict/makedict.pl)

[ Backpatched to 7.3.]

Teodor Sigaev
2002-12-13 05:50:41 +00:00
Tom Lane
1c432d60d7 Guard against overrunning CTZName buffer when TZ is bogus. 2002-12-12 19:17:04 +00:00
Tom Lane
68df4f7ca8 Back-patch fix to prevent core dump in EXPLAIN if optimizer has
simplified function call to a constant.  (7.3 won't actually execute
such a plan anyway, but core dump is bad regardless.)
2002-12-12 16:16:58 +00:00
Bruce Momjian
20606b46fd Mark SCO Openserver 5.0.4. supported by 7.3.1 as per chat report from user.
template/sco updated.
2002-12-11 22:27:34 +00:00
Bruce Momjian
bab9c3d555 Fix line count error reporting in config files, like pg_hba.conf, per
report from Oliver Elphick.

Backpatch to 7.3.
2002-12-11 22:17:31 +00:00
Bruce Momjian
f28802cac8 Bump version for 7.3 and 7.4. 2002-12-11 04:08:05 +00:00
Peter Eisentraut
ac3534f973 Translation updates 2002-12-10 20:00:27 +00:00
Bruce Momjian
7ba47bf961 This patch updates doc/src/sgml/runtime.sgml to refer to "MacOS X", not
"OS/X".

Neil Conway
2002-12-09 21:03:42 +00:00
Peter Eisentraut
39610c8f03 Fix Latin1/Unicode conversion by selecting the right table. 2002-12-09 19:42:31 +00:00
Bruce Momjian
a92a4010a7 As far as I figured from the source code this function only deals with
cleaning up locale names and nothing else. Since all the locale names
are in plain  ASCII I think it will be safe to use ASCII-only lower-case
conversion.

Nicolai Tufar
2002-12-09 17:45:17 +00:00
Tom Lane
b3b39591c1 Explain's code for showing quals of SubqueryScan nodes has been broken
all along; not noticed till now.  It's a scan not an upper qual ...
2002-12-06 19:28:13 +00:00
Bruce Momjian
ab6e38e40a Thank you very much, you catch it :). This bug had a long life, because it
exists if and only if locale of postmaster
was a different from C (or ru_RU.KOI8-R).

Please, apply patch for current CVS & 7.3.1

Magnus Naeslund(f) wrote:
> Ok, I nailed the bug, but i'm not sure what the correct fix is.
> Attached tsearch_morph.diff that remedies this problem by avoiding it.
> Also there's a debug aid patch if someone would like to know how i
> finally found it out :)
>
> There problem in the lemmatize() function is that GETDICT(...) returned
> a value not handled (BYLOCALE).
> The value (-1) and later used as an index into the dicts[] array.
> After that everything went berserk stack went crazy somehow so trapping
> the fault sent me to the wrong place, and every time i read the value it
> was positive ;)
>
> So now i just return the initial word passed to the lemmatize function,
> because i don't know what to do with it.

Magnus Naeslund
2002-12-06 05:15:32 +00:00
Tom Lane
500677c40f localbuf.c must be able to do blind writes. 2002-12-05 22:48:10 +00:00
Tom Lane
0e98ae22d3 Avoid pulling up sublinks from a subselect's targetlist. Works around
problems that occur if sublink is referenced via a join alias variable.
Perhaps this can be improved later, but a simple and safe fix is needed
for 7.3.1.
2002-12-05 21:46:55 +00:00
Bruce Momjian
530bf204f0 It looks like the problem was introduced when the "SET autocommit" and
"SET search_path"  commands were added to the beginning of the script.

The attatched patch should fix the problem. It probably should be
applied  against the 7.3 and 7.4 branches.

Steven Singer
2002-12-05 21:04:14 +00:00
Bruce Momjian
24536e5b3f Allow 'password' encryption even when pg_shadow has MD5 passwords, per
report from Terry Yapt and Hiroshi.

Backpatch to 7.3.
2002-12-05 18:40:08 +00:00
Dave Cramer
0ea3b7b86f changed sort of column names to sort by attnum, not attname 2002-12-05 01:09:58 +00:00
Tom Lane
b8b92c6908 Repair oversight in recent change of dependency extraction code: when
recursing to handle a join alias var, the context had better be set to
be appropriate to the join var's query level.  Per report from Hristo Neshev.
2002-12-04 20:00:19 +00:00
Tom Lane
5b827b68db Fix off-by-one bug in usage check. 2002-12-03 07:12:23 +00:00
Tom Lane
4390ebc505 Repair core dump when trying to delete an entry from an already-NULL
datconfig or useconfig field.  Per report from Dustin Sallings.
2002-12-02 05:21:02 +00:00
Tom Lane
22499b4854 Fix script name in README. 2002-12-02 00:29:05 +00:00
Tom Lane
2d9d28038d Fix dependency generation for multicolumn foreign keys. From Adam Buraczewski. 2002-12-02 00:28:34 +00:00
Tom Lane
dac011ebb3 Fix pg_dump failure against 7.1 or older servers, per
report from Philip Warner.
2002-12-01 18:44:09 +00:00
Tom Lane
cc7883a1a2 Repair coredump in COPY OUT when client encoding is different from
server encoding, per report from Nicolai Tufar.  This is a minimum-risk
patch for 7.3.1 --- I intend to apply a more general repair in HEAD.
2002-12-01 17:33:33 +00:00
Tom Lane
f278d8134e Repair prehistoric logic error in lseg_eq and lseg_ne. 2002-11-29 19:25:38 +00:00
Tom Lane
920c586f70 rm should be rm -f, per comment from Peter Harris.
(Checked with Peter Eisentraut.)
REL7_3
2002-11-27 23:21:20 +00:00
Tom Lane
19ddc7ec17 Update resultmap pattern for geometry-solaris-i386-pc: should match
solaris 2.8 as well as 2.7.  Per report from Martin Renters.
2002-11-27 17:04:45 +00:00
Bruce Momjian
9c54c5f468 Update TODO in 7.3 branch 2002-11-26 22:06:26 +00:00
Bruce Momjian
b010b9d78e Recreate HISTORY file to match release.sgml changes. Stamp 7.3 final in
configure/configure.in.
2002-11-26 22:04:55 +00:00
Bruce Momjian
c02e607d3b Update build rules for /HISTORY. 2002-11-26 19:22:40 +00:00
Bruce Momjian
94b821f0e4 Fix typo in release notes. 2002-11-26 05:17:27 +00:00
Bruce Momjian
805acc16b8 Allocate proper length for sprintf string, from Tatsuo. 2002-11-26 03:08:23 +00:00
Tatsuo Ishii
d59f12daee Guard against 0 length string encoding conversion case. 2002-11-26 02:37:13 +00:00
Bruce Momjian
f5d7da3041 Remove check for pg_group file as part of initdb -W password assignment
--- not needed.
2002-11-25 21:42:11 +00:00
Tom Lane
027a39726f Fix inappropriate quoting in dblink. From Joe Conway. 2002-11-23 18:59:29 +00:00
Tom Lane
b9840c0828 Update ports list from recent regression-test-database entries. 2002-11-23 03:50:39 +00:00
Tom Lane
a43979edfb Release note improvements (Neil, Tom) 2002-11-23 02:41:10 +00:00
Tom Lane
4f22c3bcfb Remove inappropriate double-quoting in connectby() code; adjust
regression test to avoid using VALUE as a name.  From Joe Conway.
2002-11-23 01:54:23 +00:00
Tom Lane
55994bab8e Fix a dozen or so places that were passing unpredictable data strings
as elog format strings.  Hai-Chen Tu pointed out the problem in
contrib/dbmirror, but it wasn't the only such error.
2002-11-22 16:25:55 +00:00
Bruce Momjian
7082e7e43a Fix elog in dbmirror to use %s.
Hai-Chen Tu
2002-11-22 16:05:06 +00:00
Tom Lane
1e68232b35 Quote database name properly when invoking pg_dump. Per report from
Christopher Kings-Lynne.
2002-11-22 03:09:59 +00:00
Tom Lane
5fe20771d5 TAS code originally written for s390 (32-bit) does not work for s390x
(64-bit).  Fix it.  Per report from Permaine Cheung.
2002-11-22 01:13:28 +00:00
Peter Eisentraut
f3fa6c6ba1 Fixups for man pages 2002-11-21 23:31:58 +00:00
Tom Lane
4dc8a0e4e1 Fix breakage in new-in-7.3 timetz_zone() function: was giving random
results due to doing arithmetic on uninitialized values.  Add some
documentation about the AT TIME ZONE construct.  Update some other
date/time documentation that seemed out of date for 7.3.
2002-11-21 23:31:37 +00:00
Peter Eisentraut
040d0ae95d Regenerate 2002-11-21 23:31:09 +00:00