1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-23 14:01:44 +03:00
Commit Graph

31631 Commits

Author SHA1 Message Date
26a23e33db Add enable_plpgsql from Oliver. 1998-12-13 05:22:58 +00:00
2d11676999 Cleanup patch from Oleg. 1998-12-13 05:14:53 +00:00
afded8add3 Fix for lo_import crash. 1998-12-13 05:07:50 +00:00
31d825ba07 While investigating a user's complaint, I have found some memory
destructions in 6.4 source using purify.

(1) parser/gram.y:fmtId()

It writes n+3 bytes into n+1 byte-long memory area if mixed case or
non-ascii identifiers given.

(2) catalog/index.c:

ATTRIBUTE_TUPLE_SIZE bytes are allocated but
sizeof(FormData_pg_attribute) bytes are written. Note that
ATTRIBUTE_TUPLE_SIZE is smaller than
sizeof(FormData_pg_attribute). (for example, on solaris 2.6,

Tatsuo Ishii
1998-12-13 04:37:51 +00:00
589f5aa241 I have a simple patch about the treatment of functions.
But it may be self-satisfied.
Please check my patch at the end of this posting.

Case 1. executor evaluates functions twice

Hiroshi Inoue
Inoue@tpf.co.jp
1998-12-13 04:16:51 +00:00
b693983004 New ecpg man page. 1998-12-13 03:53:56 +00:00
0ad5d2a3a8 Change Size from unsigned int to size_t. 1998-12-13 03:44:38 +00:00
ecdf95f6d6 This patch fixes the undefined (according to C) and erroneous (under
Digital Uni x with both DEC cc and gcc) behaviour of modifying an
lvalue on the left side an d then using it on the right side of an
assignment. Since this code modifies the
 dbname parameter, it was changing, for example, "dbname=template1"
 into "dbname =emplate1".

David Smith Programmer P
1998-12-13 02:50:20 +00:00
5c431eb1f2 Included patches should fix following problems in the muti-byte
enabled PostgreSQL 6.4.

o binary cursor does not work
o pg_dumpall produces incorrect create database statemnt

Tatsuo Ishii
t-ishii@sra.co.jp
1998-12-12 22:04:09 +00:00
439ef85b0d Fix prototype for 64-bit platforms. 1998-12-12 21:30:57 +00:00
4c87f79854 Update to pgaccess 0.93. 1998-12-12 21:15:40 +00:00
0d5a08f769 Add stdio for NULL define. 1998-12-12 19:57:51 +00:00
053004a80b Clean up a few elog() messages for aggregates and functions. 1998-12-08 06:20:48 +00:00
53b476798a Define routines and catalog entries for string min()/max() functions.
Extend new type coersion techniques to aggregates.
Clean up a few elog() messages.
1998-12-08 06:19:15 +00:00
9470ab03c9 Define routines and catalog entries for string min()/max() functions.
Extend new type coersion techniques to aggregates.
1998-12-08 06:18:34 +00:00
84107b419e Fix coredumping bug in pg_dump -z; also eliminate memory leaks
in the ACL code, and spell "GRANT RULE" correctly.
Apply patch from Oliver Elphick to not dump inherited constraints.
Apply patch from Constantin Teodorescu to dump table definitions with a
readable layout.
1998-12-05 22:09:57 +00:00
6a7fdf2592 These data types were removed before the last release. 1998-12-04 15:52:45 +00:00
47e506fb8f Include test for CASE expression. 1998-12-04 15:36:51 +00:00
bedd04a551 Implement CASE expression. 1998-12-04 15:34:49 +00:00
19740e2fff Portability fixes found needed for SunOS 4.1.x:
SunOS has tas(), but not memmove or strerror, and its sprintf() doesn't
return int.  Also, older versions of GNU Make don't like rules with
empty left-hand sides...
1998-11-30 00:30:05 +00:00
b10a719777 Use autoconf to determine whether system has POSIX signals,
instead of relying on port's os.h to tell us.  (Needed for HPUX
where system major version is not enough info.)
configure unsets USE_TK if X libraries not found.
doc/Makefile uses gzcat or zcat as found by autoconf.
1998-11-29 05:30:25 +00:00
92eacaf523 Change exp() behavior to generate error on underflow rather
than silently returning zero on some machines.  Correct float8 regress test
to agree.  Also fix pow() overflow/underflow check to work correctly on
HPUX.
1998-11-29 01:57:59 +00:00
67531c42bd Portability fix for old SunOS releases: realloc(NULL, ...)
doesn't work there.
1998-11-29 01:53:54 +00:00
79fcde48b2 Portability fix for old SunOS releases: fflush(NULL)
doesn't work there.  Fortunately the postmaster only has stdout and
stderr to flush.
1998-11-29 01:51:56 +00:00
9e0e148a83 pq_getstr didn't handle buffer overrun correctly; it would
fail to consume the rest of the input string, and worse it would write
one more byte than it should into the buffer, probably resulting in coredump.
Fortunately there's a correct implementation next door in pqcomprim.c.
1998-11-29 01:47:42 +00:00
971175fa0c New HeapTuple structure/interface. 1998-11-27 20:09:56 +00:00
6beba218d7 New HeapTuple structure/interface. 1998-11-27 19:52:36 +00:00
2435c7d501 New HeapTuple structure/interface. 1998-11-27 19:33:35 +00:00
07ffc4628e Fixed bug in the unknown module. Module still tried to call
builtin SPI commands by their old SPI_* names. New names are spi_*.

Jan - 11/23/1998
1998-11-23 16:50:54 +00:00
6fef1a26cc modify configure so that template/.similar entries can be
selected when they match a prefix of the  value.  The previous method,
which stripped all version data from  and then tried to match that
against .similar entries, was entirely useless when .similar contained
several entries for different version numbers of a single OS name.
1998-11-23 04:40:58 +00:00
34680930d5 Fix using indices in OR.
EXPLAIN all indices used.
1998-11-22 10:48:45 +00:00
1f00f0dc2e Added indxqualorig to IndexScan: fix for using indices in OR. 1998-11-22 10:45:09 +00:00
056ba12881 Updating and addign files... 1998-11-19 02:39:51 +00:00
fd0366e1b5 Performance improvement for libpq: avoid calling malloc separately
for each field of each tuple.  Makes more difference than you'd think...
1998-11-18 00:47:28 +00:00
643c7beddf Add text<->float8 and text<->float4 conversion functions.
This will fix the problem reported by Jose' Soares
 when trying to cast a float to text.
1998-11-17 14:36:51 +00:00
8d507c204b Additional fixes for mixed-case table names from Billy Allie. 1998-11-17 14:26:39 +00:00
91a62480f7 From: Taral <taral@cyberjunkie.com>
More COS Query Service support.
1998-11-17 03:10:36 +00:00
935a2e694e Start defining the Corba work...
From: Taral <taral@cyberjunkie.com>
1998-11-16 18:03:34 +00:00
0856cdf3f7 Fix a couple of bugs involving calling fmtID() twice in
a single printf() ... it'd work if fmtId() didn't use a static return area...
1998-11-15 07:09:13 +00:00
9f07f8f40f Add "vacuumdb" utility to make it easier to clean databases.
Also supports the "analyze" mode, with or without specifying tables
 and columns.
1998-11-14 01:58:15 +00:00
69ff5b9c7e Add "vacuumdb" utility. 1998-11-14 01:56:36 +00:00
2795fae5bf Fix test for table existance to allow mixed-case and whitespace in
the table name. Problem reported by Billy Allie.
1998-11-12 15:39:06 +00:00
c7d9aca135 Fix at least a few shared-library problems on Linux.
We have not seen the end of this issue :-(.
1998-11-12 05:27:01 +00:00
87225ca31d Update for version 06-40-0001 1998-11-11 21:54:01 +00:00
f03729c621 Fix for NOT in where clause causing crash. 1998-11-09 02:49:13 +00:00
39792e5b01 EXPLAIN VERBOSE had a very high probability of triggering
a backend core dump, because it was concatenating a potentially long
string onto another string that didn't necessarily have enough room.
Shame, shame.
1998-11-08 19:38:34 +00:00
8f5ff4cf1c Fix a potential infinite loop in appendStringInfo: would lock
up if first string to be appended to an empty StringInfo was longer
than the initial space allocation.
Also speed it up slightly.
1998-11-08 19:22:24 +00:00
680e4a2950 Add "-N" flag to force double quotes around identifiers.
This is the default, but the new flag will allow overriding an alias,
 for example. So psql -n -N will put in the double quotes,
 and psql -n can be an alias for psql.
Also, add a few braces around a nested single-line conditional construct
 to suppress compiler warnings about "an ambiguous else".
1998-11-06 15:54:47 +00:00
3d22596fe7 August version of docs superceded by sgml version from Jan. 1998-11-06 15:04:31 +00:00
a00c668139 Upgrade to 0.91 ... 1998-11-06 04:11:52 +00:00