1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-28 11:44:57 +03:00
Commit Graph

5382 Commits

Author SHA1 Message Date
Bruce Momjian
8ca66703e2 > > This patch improves the documentation for the shared_buffers GUC param.
>
> I'd suggest that the runtime.sgml description explicitly say "values of
> at least a few thousand are recommended for production installations".

Neil Conway
2003-01-11 05:04:27 +00:00
Bruce Momjian
4a9588f671 Fix indenting of log_min_error_statement. 2003-01-09 05:19:18 +00:00
Tom Lane
9ecfdbcae1 Repair inconsistent rounding behavior for timestamp, time, interval,
per gripe from Csaba Nagy.  There is still potential for platform-specific
behavior for values that are exactly halfway between integers, but at
least we now get the expected answer for all other cases.
2003-01-09 01:07:18 +00:00
Bruce Momjian
9260e79d11 Remove 'const' from secure_write, to prevent compiler warning. 2003-01-08 23:34:37 +00:00
Bruce Momjian
ce83fc68aa The second was that renegotiation was just plain broken. I can't
believe I didn't notice this before -- once 64k was sent to/from the
server the client would crash.  Basicly, in 7.3 the server SSL code set
the initial state to "about to renegotiate" without actually starting
the renegotiation.  In addition, the server and client didn't properly
handle the SSL_ERROR_WANT_(READ|WRITE) error.  This is fixed in the
second patch.

Nathan Mueller
2003-01-08 23:18:35 +00:00
Bruce Momjian
671231f588 I was playing around with 7.3.1 and found some more SSL problems. The
first, that I missed when checking over 7.3.1, was that the client
method was switched to SSLv23 along with the server.  The SSLv23 client
method does SSLv2 by default, but can also understand SSLv3.  In our
situation the SSLv2 backwords compatibility is really only needed on the
server.  This is the first patch.

The last thing is that I found a way for the server to understand SSLv2
HELLO messages (sent by pre-7.3 clients) but then get them to talk
SSLv3.  This is the last one.

Nathan Mueller
2003-01-08 22:57:05 +00:00
Bruce Momjian
fdb1c80747 Fix dumping of DEFERRABLE/INITIALLY DEFERRED:
> The big problem is that while pg_dump's dump_trigger() looks at
> tginitdeferred and dumps accordingly, pg_get_constraintdef doesn't look
> at tginitdeferred, and therefore doesn't record the requirement as part
> of ALTER TABLE ADD CONSTRAINT.

pg_get_constraintdef should probably be looking at condeferrable and
condeferred in the pg_constraint row it's looking at.  Maybe something
like the attached.

(Added, output only non-default values.)

Stephan Szabo
2003-01-08 22:54:36 +00:00
Tom Lane
a899179c8c Repair bug noticed by Deepak Bhole: a shell type should have a dependency
on its namespace, so that it will go away if the schema is dropped.
2003-01-08 21:40:49 +00:00
Tom Lane
40cb1361a6 Fix for bug #866. 7.3 contains new logic for avoiding redundant calls to
the index AM when we know we are fetching a unique row.  However, this
logic did not consider the possibility that it would be asked to fetch
backwards.  Also fix mark/restore to work correctly in this scenario.
2003-01-08 19:41:57 +00:00
Tom Lane
2e0e101b42 Fix inherited UPDATE for cases where child column numbering doesn't
match parent table.  This used to work, but was broken in 7.3 by
rearrangement of code that handles targetlist sorting.  Add a regression
test to catch future breakage.
2003-01-05 00:56:56 +00:00
Tom Lane
f159bce09f Add missing include --- seems include file references are different in
CVS tip than in this branch.
2003-01-05 00:49:59 +00:00
Peter Eisentraut
b19a0c70d2 Translation updates 2003-01-04 10:26:28 +00:00
Tom Lane
573fe25203 fastpath code neglected to check whether user has privileges to call the
target function.  Also, move SetQuerySnapshot() call to avoid assert
failure when a fastpath call is attempted in an aborted transaction.
2003-01-01 21:57:18 +00:00
Tom Lane
5271e60ff3 Point does not return a center of lseg.
Kenji Sugita
2002-12-30 02:18:39 +00:00
Tom Lane
629df5f489 Adjust hash table sizing algorithm to avoid integer overflow in
ExecHashJoinGetBatch().  Fixes core dump on large hash joins, as in
example from Rae Stiening.
2002-12-29 22:29:03 +00:00
Tom Lane
b37d6373f0 Deliver better error message when a relation name is used in an expression.
Per report from Ian Barwick.
2002-12-27 20:06:28 +00:00
Bruce Momjian
31f7f574bd Trivial patch to increase max_fsm_pages as per earlier discussion.
Philip Warner
2002-12-27 14:07:14 +00:00
Bruce Momjian
7c3e3cd96a Update SSL error message for improper permissions. Backpatch to 7.3.X. 2002-12-23 22:19:26 +00:00
PostgreSQL Daemon
d2f0761b82 From the SSL_CTX_new man page:
"SSLv23_method(void), SSLv23_server_method(void), SSLv23_client_method(void)

 A TLS/SSL connection established with these methods will understand the SSLv2,
 SSLv3, and TLSv1 protocol. A client will send out SSLv2 client hello messages
 and will indicate that it also understands SSLv3 and TLSv1. A server will
 understand SSLv2, SSLv3, and TLSv1 client hello messages. This is the best
 choice when compatibility is a concern."

This will maintain backwards compatibility for those us that don't use
TLS connections ...
2002-12-18 13:20:03 +00:00
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
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
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
Peter Eisentraut
ac3534f973 Translation updates 2002-12-10 20:00:27 +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
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
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
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
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
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
Tatsuo Ishii
d59f12daee Guard against 0 length string encoding conversion case. 2002-11-26 02:37:13 +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
Tom Lane
eda8dd8b2d Code review for superuser_reserved_connections patch. Don't try to do
database access outside a transaction; revert bogus performance improvement
in SIBackendInit(); improve comments; add documentation (this part courtesy
Neil Conway).
2002-11-21 06:36:27 +00:00
Tom Lane
77c94aca72 Put back error test for DECLARE CURSOR outside a transaction block ...
but do it correctly now.
2002-11-18 01:17:50 +00:00
Tom Lane
779eb54142 Push qual clauses containing subplans to the back of the qual list
at each plan node.  Per gripe from Ross Reedstrom.
2002-11-15 02:37:08 +00:00
Peter Eisentraut
f2ec243389 Update German translations. 2002-11-13 21:30:39 +00:00
Tom Lane
b455344112 Allow +1300 as a numeric timezone specifier; we already accept FJST as meaning +1300. 2002-11-13 17:24:11 +00:00
Tatsuo Ishii
07a51acac6 Fix broken GB18030 <--> UTF-8 conversion map 2002-11-12 11:30:50 +00:00
Tom Lane
400013ceec Remove NO_MKTIME_BEFORE_1970. I had speculated that it was not needed
anymore given the mktime() workaround now done in DetermineLocalTimeZone.
This has now been confirmed by Robert Bruccoleri for Irix, and I'm going
to extrapolate to AIX as well.
2002-11-12 00:39:36 +00:00
Tom Lane
4e7721fdfe Add cast to suppress compile warning on Alphas. 2002-11-11 03:33:44 +00:00
Tom Lane
f2b5ed92e2 Remove inappropriate inclusions of OpenSSL internal header e_os.h,
as well as unnecessary (and incorrect on Windows) assignments to
errno/SOCK_ERRNO.
2002-11-07 18:47:08 +00:00
Peter Eisentraut
2e28ef3663 Translation updates 2002-11-05 23:37:47 +00:00
Tom Lane
7f660090e5 Remove unnecessary inclusion, per Andreas. 2002-11-04 14:25:42 +00:00