Commit Graph

3029 Commits

Author SHA1 Message Date
Marc G. Fournier
7500a961f1 From: Michael Meskes <meskes@topsystem.de>
+ Thu Apr 23 09:27:16 CEST 1998
+
+       - Also allow call in whenever statement with the same functionality
+         as do.
+
+ Thu Apr 23 12:29:28 CEST 1998
+
+       - Also rewrote variable declaration part. It is now possible to
+         declare more than one variable per line.
+       - Set version to 2.1.0
+
+ Fri Apr 24 13:50:15 CEST 1998
+
+       - Fixed some bugs.
+       - Set version to 2.1.1
1998-04-24 12:10:20 +00:00
Marc G. Fournier
f2b64d3593 Clean up configure so that it properly (I hope?) GUESSes the template to
use, if not stipulated via --with-template
1998-04-24 01:19:00 +00:00
Bruce Momjian
2201d48ccd Add hpux patch for cpp. 1998-04-21 16:18:30 +00:00
Marc G. Fournier
64e35e1468 Upgrade ECPG to 2.0
Michael Meskes <meskes@topsystem.de>
1998-04-21 13:23:24 +00:00
Marc G. Fournier
5e6b0a574b Try for a LINUX_ELF fix (bandage?) 1998-04-21 12:38:46 +00:00
Marc G. Fournier
5bdda53f12 From: Bryan Henderson <bryanh@giraffe-data.com>
Here's a fix for a tiny memory leak in PQsetdb/PQfinish.

(Analysis of a running program indicates there are several others, but
this is the only obvious one I saw in the code).
1998-04-21 04:00:06 +00:00
Bruce Momjian
72098f3803 Try to find cpp failure and report it. 1998-04-20 18:11:42 +00:00
Marc G. Fournier
b542fa1a6e From: Peter T Mount <patches@maidast.demon.co.uk>
This fixes a problem in ResultSet.getDate() when the column is NULL
(reported by Vincent Partington <Vincent.Partington@nmg.nl>)

And fixes a problem with Field's (ResultSet.getObject() was proving to be
slow as it repetedly send queries for oid -> name mapping - fixed by
creating a cache. (reported by Mario Ellebrecht <ellebrec@nads.de>)
1998-04-18 18:32:44 +00:00
Bruce Momjian
323fefdb9d Update HISTORY/TODO. Disable HAVING. 1998-04-17 04:12:56 +00:00
Marc G. Fournier
83fd305f78 A few minor mods:
gram.c updated
	scan.c updated
	ecpg/Makefile added LDFLAGS
	configure requires sfio for those systems with it installed...
1998-04-17 03:06:35 +00:00
Marc G. Fournier
19d41d4438 From: Darren King <darrenk@insightdist.com>
This will force the aix compiler to insert trapping code to
check for division by zero for the 4.1 port.
1998-04-17 02:44:01 +00:00
Marc G. Fournier
2219c230ed Get rid of the TEMPLATE verbosity and make it so that --with-template is
documented in ./configure --help
1998-04-17 01:55:31 +00:00
Marc G. Fournier
8973192283 From: Brook Milligan <brook@trillium.NMSU.Edu>
Here is a pair of patches that (I hope) finish the configuration
issues with tcl/tk and make the recognition of the two packages
completely parallel in organization.  This should make future changes
easier to maintain.

Hope to see this in 6.2.2.
1998-04-17 01:30:21 +00:00
Marc G. Fournier
34299b4fac From: David Hartwig <daveh@insightdist.com>
Marc, I overlooked this file it should be included in the source.  Oops
Also the binary file is only 1.2 meg not 2.5 meg. Oops again.
1998-04-15 21:56:54 +00:00
Bruce Momjian
7d03bb460d pgintro now has a list of all manual pages. 1998-04-15 16:44:36 +00:00
Bruce Momjian
5529b783a8 Move HAVING function to proper file. 1998-04-15 15:29:57 +00:00
Edmund Mergl
11c091272a 1.7.3 1998-04-14 21:14:52 +00:00
Bruce Momjian
1957f2402c Update gram.c.nd *.h files. 1998-04-14 03:28:50 +00:00
Bruce Momjian
27c490bed0 Update gram.c scan.c. 1998-04-14 01:52:47 +00:00
Bruce Momjian
8eb08ae6b9 Cleanup up code. 1998-04-13 21:07:15 +00:00
Bruce Momjian
0435ecf5d5 What was LINUX_ELF doing in there? 1998-04-13 16:34:48 +00:00
Marc G. Fournier
9e3382dfc5 Replace old PostODBC driver with new one...
This one is based on an older PostODBC driver, rewritten and maintained by
InsightDist(?)
1998-04-13 15:02:05 +00:00
Marc G. Fournier
d4d26f9c33 From: Diab Jerius <dj@pelf.harvard.edu>
Fix for Solaris/cc problem
1998-04-13 14:46:48 +00:00
Bruce Momjian
66feaefa98 New book to FAQ. 1998-04-12 14:17:40 +00:00
Marc G. Fournier
07e3fb08be More work in the right direction on linux/alpha
From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>
1998-04-12 02:58:22 +00:00
Bruce Momjian
5da68b98cb Fix for PROFILE env. 1998-04-12 01:18:35 +00:00
Marc G. Fournier
a362212a17 linuxalpha patches from Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu> 1998-04-11 21:14:50 +00:00
Marc G. Fournier
afdc54ab15 Oops...I used Relation->rd_fd->relname exactly, instead of using the actual
variable name *blush* *grin*
1998-04-10 22:07:41 +00:00
Marc G. Fournier
57a40abd68 Okay, add relation name to the file generating the error... 1998-04-10 21:59:30 +00:00
Marc G. Fournier
0b746a7d05 See if I can determine where the BTP_CHAIN error is coming from... 1998-04-10 18:43:30 +00:00
Marc G. Fournier
b5bd8c3f08 make --with-libs == --with-libraries 1998-04-10 02:59:38 +00:00
Bruce Momjian
7e12122b40 Oops reverse patch. no need for it. 1998-04-09 04:42:56 +00:00
Bruce Momjian
fa785bac3b Allow -lib-dir to find libreadline.a 1998-04-09 04:24:52 +00:00
Thomas G. Lockhart
43cfa1a0ce Fix incorrect second argument type for dpow() declaration. 1998-04-08 06:40:09 +00:00
Thomas G. Lockhart
242b347877 Prepare the EXTRACT() clause for supporting TIMEZONE_HOUR
and TIMEZONE_MINUTE but don't introduce until v6.4.
Fix SET TIMEZONE LOCAL to pass null pointer
 rather than older "default" string.
Fix handling of NULL pointer returns from FOREIGN KEY clauses
 which are currently ignored.
Allow START as a table/column name.
1998-04-08 06:39:01 +00:00
Thomas G. Lockhart
31b9e3fc68 Temporarily back out fixes for unary minus parsing.
Will re-introduce for v6.4 but requires fixes for automatic type
 conversion beforehand.
1998-04-08 06:35:02 +00:00
Bruce Momjian
45a0b4743a Remove name.* files. 1998-04-08 02:32:52 +00:00
Marc G. Fournier
4a7b30d126 From: Bruce Stephens <bruce@cenderis.demon.co.uk>
fix for the tk problem...
1998-04-08 02:06:37 +00:00
Bruce Momjian
bf7b72109f Re-add pg_dump fix. 1998-04-07 22:36:38 +00:00
Bruce Momjian
e83621aa13 Reverse out pg_dump changes. 1998-04-07 22:00:37 +00:00
Bruce Momjian
3da39b3fd2 Update configure. 1998-04-07 21:26:52 +00:00
Bruce Momjian
8e8116468b Update for 6.3.2 1998-04-07 21:01:28 +00:00
Bruce Momjian
db21523314 Back out char2-char16 removal. Add later. 1998-04-07 18:14:38 +00:00
Bruce Momjian
6a3c751448 Fix for ACL's from Thomas A. Szybist. 1998-04-07 16:41:11 +00:00
Bruce Momjian
1125bbf871 Assert fix 1998-04-06 17:52:35 +00:00
Bruce Momjian
2ffd727531 ASSERT fixes. 1998-04-06 17:27:54 +00:00
Bruce Momjian
d8077ab007 distclean cleanup 1998-04-06 17:02:13 +00:00
Bruce Momjian
471dbbc223 DESTDIR removed, again. 1998-04-06 16:53:15 +00:00
Bruce Momjian
cf1f24fbf0 destdir cleanup. 1998-04-06 04:57:32 +00:00
Bruce Momjian
c61846e53f Makefile cleanup./ 1998-04-06 03:23:01 +00:00
Bruce Momjian
041d2e1ca2 confiure cleanup 1998-04-06 03:10:32 +00:00
Bruce Momjian
645146260e Cleanup of compiler warnings. 1998-04-06 02:38:26 +00:00
Bruce Momjian
6d708c6900 Cleanup initdb 1998-04-06 02:10:49 +00:00
Bruce Momjian
bc40727042 cleanup and possible alpha-linux fix. 1998-04-06 02:03:08 +00:00
Bruce Momjian
066ee9a2e9 Make DESTDIR consistent, and verious Linux cleanups. 1998-04-06 01:36:41 +00:00
Bruce Momjian
5523beb949 Re-introduce $DISTDIR. 1998-04-06 01:16:55 +00:00
Bruce Momjian
47364f315b Move initdb.sh to initdb 1998-04-06 01:05:54 +00:00
Bruce Momjian
1e801a8f16 Hi,
Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
1998-04-06 00:32:26 +00:00
Bruce Momjian
2dfee93457 Remove DISTDIR. 1998-04-05 22:02:56 +00:00
Bruce Momjian
fdb37f073b this patch solve 2 problemes :
probleme number 1 :

- configure can find the library readline , but don't
  find the header file . so in this case we don't use lib readline
  .

probleme number 2 :

- when you have postgres 6.2.1 and readline installed
  with the same prefix( and generally all your software ) .  you
  can compile the version 6.3 .  I use this prefix , when configure
  ask me for "Additional directories to search for include files"
  .

  ( because there a conflict in the header when you
    compile psql.c ) In this case, you must permut the sequence of
  directive -I .

Erwan MAS
1998-04-05 21:29:49 +00:00
Bruce Momjian
34fec16198 configure cleanup. 1998-04-05 21:18:03 +00:00
Bruce Momjian
4b6fcc4459 Remove GetDatabaseName/Path and use globals. Make consts later. 1998-04-05 21:04:50 +00:00
Bruce Momjian
9e45687df5 confiugre.in cleanup. 1998-04-05 20:54:38 +00:00
Bruce Momjian
05102c7551 Here are 3 patches (all relative to the src directory) to help with
the configuration of v6.3.1.  I have replaced the queries for
include/lib directories with --with configuration options.  I have
also included a list of potential tcl/tk include directories directly
in the CPPFLAGS variable.  As new versions are needed, these should
be added to the list in reverse numerical order (libraries are in
a separate list near the end).  This greatly simplifies the later
checks if --with-tcl is set.  I hope this solution works for
everyone.

I also added a check to disable the perl support if postgres was
not already installed (as per the instructions in the directory).
By the way, why must there be an installed pgsql to compile perl
support? This seems odd, at best.

Finally, I changed the Makefile in the libpgtcl interface to place
the shared libraries at the end of the list of files, not at the
beginning.  With NetBSD at least, libraries are linked in order,
so the original sequence does not work.

Brook Milligan
1998-04-05 20:28:23 +00:00
Bruce Momjian
03a7cd1788 Fix for memory leak. 1998-04-05 05:52:10 +00:00
Bruce Momjian
6755026937 A couple of weeks ago I submitted a patch to fix configure --with-tcl.
However somebody else also applied a patch to the same part of
configure to fix a different problem. So part of my patch was not
applied or got reversed or ... whatever.

The attached patch will restore configure --with-tcl to working
order and should remove a lot of the messages complaining about
tcl not working.

Alvin
1998-04-03 20:21:51 +00:00
Vadim B. Mikheev
bb80f8a918 Fix merging pathes of pruned rels ("indices are unused" problem). 1998-04-02 07:27:15 +00:00
Marc G. Fournier
91964bd984 resync configure 1998-04-01 18:47:47 +00:00
Marc G. Fournier
896a42a5a7 From: Maurice Gittens <mgittens@david.gits.nl>
After applying the following patch there remain two
probable buffer overruns detected by Electric Fence during
the regression test.
I'll try find out what causes the remain two ones.

This patch also corrects a typo in smgr.c.
1998-04-01 15:35:33 +00:00
Marc G. Fournier
0a0bd3d646 remove the call to port-protos.h ... 1998-04-01 03:13:37 +00:00
Bruce Momjian
8dc48ba877 Small HAVING cleanup. 1998-03-31 23:31:10 +00:00
Bruce Momjian
9fbdda039d Fix macro read violation for Maurice. 1998-03-31 15:53:51 +00:00
Bruce Momjian
d7050cb68c Merge rename name page into alter table. Fix UNION with DISTINCT
or ORDER BY bug.
1998-03-31 04:44:35 +00:00
Marc G. Fournier
62943bb76f Pointed out by: Doug Winterburn <dlw@seavme.xroads.com>
3) Add "#include "config.h" to src/interfaces/ecpg/preproc/pgc.l
   to correct "strings.h not found".  config.h has the proper define to
   make this work and should probably be near the top of pgc.l before
   the first include.
1998-03-31 03:00:20 +00:00
Marc G. Fournier
92c6bf9775 Pointed out by: Doug Winterburn <dlw@seavme.xroads.com>
2) Add "#define gettimeofday(a,b) gettimeofday(a) to src/include/config.h
        On the 88k SVR4, gettimeofday only has one argument.  This is
        checked for in a few other packages by configure, so there should
        be some examples of the configure test out there.
1998-03-31 02:59:07 +00:00
Bruce Momjian
01ecb2e3a0 documentation for HAVING, clean up UNION comment. 1998-03-30 19:05:10 +00:00
Bruce Momjian
ef0eecfa1f This simple patch to catalog/pg_type.c fixes a buffer overrun. It
was detected by Electric Fence and triggered by statements like:

	SELECT * into table t from pg_database;

The system would crash on a memmove call in DataFile() with arguments
like this:

	memmove(0x0, 0x0, 0);

Maurice Gittens
1998-03-30 17:46:45 +00:00
Bruce Momjian
dbf34c5c19 This problem had nothing to do with the upgrades I made. There
was a 2000 character buffer allocated for results, and the files
you refer to produce a 2765 byte column called formsource.  This
should not have worked with any version of libpgtcl.

Nevertheless, the limit is an artificial one, since there is no
need to use this intermediate buffer where it is being used and
abused.

Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>
1998-03-30 17:39:16 +00:00
Bruce Momjian
57b5966405 The following uuencoded, gzip'd file will ...
1. Remove the char2, char4, char8 and char16 types from postgresql
2. Change references of char16 to name in the regression tests.
3. Rename the char16.sql regression test to name.sql.  4. Modify
the regression test scripts and outputs to match up.

Might require new regression.{SYSTEM} files...

Darren King
1998-03-30 17:28:21 +00:00
Bruce Momjian
31c36102ca The buffer overrun while creating sequences turns out to be a read
access overrun. For the sake of doing things properly here is a
patch which fixes it.

This patch is for the file backend/commands/sequence.c.

Maurice Gittens
1998-03-30 17:15:26 +00:00
Bruce Momjian
9a0dd4fb18 There's a patch attached to fix gcc 2.8.x warnings, except for the
yyerror ones from bison. It also includes a few 'enhancements' to
the C programming style (which are, of course, personal).

The other patch removes the compilation of backend/lib/qsort.c, as
qsort() is a standard function in stdlib.h and can be used any
where else (and it is). It was only used in
backend/optimizer/geqo/geqo_pool.c, backend/optimizer/path/predmig.c,
and backend/storage/page/bufpage.c

> > Some or all of these changes might not be appropriate for v6.3,
since we > > are in beta testing and since they do not affect the
current functionality.  > > For those cases, how about submitting
patches based on the final v6.3 > > release?

There's more to come. Please review these patches. I ran the
regression tests and they only failed where this was expected
(random, geo, etc).

Cheers,

Jeroen
1998-03-30 16:47:35 +00:00
Bruce Momjian
c579ce0fb0 I started adding the Having Clause and it works quite fine for
sequential scans! (I think it will also work with hash, index, etc
but I did not check it out! I made some High level changes which
should work for all access methods, but maybe I'm wrong. Please
let me know.)

Now it is possible to make queries like:

select s.sname, max(p.pid), min(p.pid) from part p, supplier s
where s.sid=p.sid group by s.sname having max(pid)=6 and min(pid)=1
or avg(pid)=4;

Having does not work yet for queries that contain a subselect
statement in the Having clause, I'll try to fix this in the next
days.

If there are some bugs, please let me know, I'll start to read the
mailinglists now!

Now here is the patch against the original 6.3 version (no snapshot!!):

Stefan
1998-03-30 16:36:43 +00:00
Marc G. Fournier
9c93fa2e4a Upgrade to v0.86 1998-03-29 21:52:54 +00:00
Bruce Momjian
748fab8d5d Prevent pgindent from being run on odbc in the future. 1998-03-28 02:24:49 +00:00
Bruce Momjian
f07c7bf4e7 I have been troubled by a segmentation fault when reloading from
a dumpall.  This has been happening when a second \connect is
encountered.

The faulty code was in fe-connect.c, where the memory for the user
password was freed, but the pointer itself was not set to NULL.
Later, the memory was reused and the password appeared not to be
empty, so that an attempt was made to reference it.

Oliver Elphick
1998-03-26 23:46:14 +00:00
Bruce Momjian
0d8a7dc6a4 BETWEEN and LIKE patch from Thomas 1998-03-26 21:08:10 +00:00
Bruce Momjian
3b40fd9ea9 Update manual 1998-03-26 21:01:47 +00:00
Bruce Momjian
b411e26a9a Mention rollback instead of abort. 1998-03-25 01:54:53 +00:00
Bruce Momjian
f74f2d39d8 update for 6.3.1 1998-03-23 16:14:50 +00:00
Bruce Momjian
817fc4b2ac Manual page fixes. 1998-03-23 15:09:43 +00:00
Bruce Momjian
137d3428de autoconf again. 1998-03-23 06:08:51 +00:00
Bruce Momjian
953ca76b8d more tcl/tk fixes 1998-03-23 06:03:04 +00:00
Bruce Momjian
97e461b101 Another tcl/tk fix. 1998-03-23 04:08:05 +00:00
Bruce Momjian
df18ece06c oops, forgot to run autoconf. 1998-03-23 03:48:32 +00:00
Bruce Momjian
c69e58f620 another tcl/tk patch
another tcl/tk patch
1998-03-23 03:45:10 +00:00
Bruce Momjian
4d09be4413 fix for tcl/tk in configure 1998-03-23 03:27:07 +00:00
Marc G. Fournier
9b381a69f6 Add NetBSD specific expected files 1998-03-22 19:46:45 +00:00
Marc G. Fournier
5191d5207f Slightly updated regression output for FreeBSD 3.0-CURRENT 1998-03-22 19:40:33 +00:00
Marc G. Fournier
0279d55eef Made some changes to clean up how initdb works...just more made a 'PGSQL_OPTS'
variable that can be set in one place to affect everything...
1998-03-22 19:35:30 +00:00
Marc G. Fournier
8dd692c8e3 Change 2>$1 to -o /dev/null instead...
From: Andreas Klemm <andreas@klemm.gtn.com>
1998-03-22 18:28:39 +00:00