Commit Graph

2853 Commits

Author SHA1 Message Date
Marc G. Fournier e4135ad17e From: Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>
The following patch is to src/interfaces/libpq of postgresql-6.3.
The purpose of the patch is to make the initialization of
const char *pgresStatus[] match the ExecStatusType enum.
1998-03-15 08:11:11 +00:00
Marc G. Fournier e4dccfdc6e From: t-ishii@sra.co.jp
6.3 postmaster is supposed to work with pre 6.3 protocol. This is true
for little endian architecture servers. But for big endian machines
such as Sparc the backward compatibility function do not work.
Attached are patches to fix the problem.
1998-03-15 08:09:37 +00:00
Marc G. Fournier b64a7549b4 From: "Thomas G. Lockhart" <lockhart@alumni.caltech.edu>
For substr() and substring() on the text data type, the relevant code is in
varlena.c. You are right, there is a problem. I have a patch which I will
apply to the source tree soon. The copy enclosed below probably does not
preserve tabs correctly so cannot be applied directly; the relevant change
is simply changing the ">=" to ">"...
1998-03-15 08:07:01 +00:00
Marc G. Fournier 6ac2528616 From: Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>
It is my hope that the following "patches" to libpgtcl get included
in the next release.

See the update to the README file to get a full description of the changes.
This version of libpgtcl is completely interpreter-safe, implements the
database connection handle as a channel (no events yet, but will make it
a lot easier to do fileevents on it in the future), and supports the SQL
"copy table to stdout" and "copy table from stdin" commands, with the
I/O being from and to the connection handle.  The connection and result
handles are formatted in a way to make access to the tables more efficient.
1998-03-15 08:03:00 +00:00
Marc G. Fournier 609026bb6b From: t-ishii@sra.co.jp
Included are patches intended for allowing PostgreSQL to handle
multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and
Mule internal code. With the MB patch you can use multi-byte character
sets in regexp and LIKE. The encoding system chosen is determined at
the compile time.

To enable the MB extension, you need to define a variable "MB" in
Makefile.global or in Makefile.custom. For further information please
take a look at README.mb under doc directory.

(Note that unlike "jp patch" I do not use modified GNU regexp any
more. I changed Henry Spencer's regexp coming with PostgreSQL.)
1998-03-15 07:53:03 +00:00
Marc G. Fournier 661ecf3c48 From: t-ishii@sra.co.jp
Included are patches intended for allowing PostgreSQL to handle
multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and
Mule internal code. With the MB patch you can use multi-byte character
sets in regexp and LIKE. The encoding system chosen is determined at
the compile time.

To enable the MB extension, you need to define a variable "MB" in
Makefile.global or in Makefile.custom. For further information please
take a look at README.mb under doc directory.

(Note that unlike "jp patch" I do not use modified GNU regexp any
more. I changed Henry Spencer's regexp coming with PostgreSQL.)
1998-03-15 07:39:04 +00:00
Marc G. Fournier 31a925c4d0 From: Peter T Mount <patches@maidast.demon.co.uk>
Ok, this fixes three things:

1. It seems (from tests submitted by two people with JBuilder) that
   JBuilder expects a responce from ResultSetMetaData.getPrecision() &
   getScale() when used on non numeric types. This patch makes these
   methods return 0, instead of throwing an exception.

2. Fixes a small bug where getting the postgresql type name returns null.

3. Fixes a problem with ResultSet.getObject() where getting it's string
   value returns null if you case the object as (PGobject), but returns
   the value if you case it as it's self.
1998-03-15 07:12:07 +00:00
Bruce Momjian 7eddadee87 CLUSTER cleanup 1998-03-15 02:13:23 +00:00
Bruce Momjian 006fd9253f Cluster fixup. 1998-03-14 22:55:21 +00:00
Bruce Momjian 3674ccdf95 Change Postgres95 to PostgreSQL. Update CLUSTER manual page. 1998-03-14 21:58:09 +00:00
Bruce Momjian 12429af027 Remove postgres95. 1998-03-14 04:15:49 +00:00
Marc G. Fournier 8175eb3485 Update Pgaccess to 0.83 1998-03-12 13:09:46 +00:00
Marc G. Fournier c24ed70193 Get the ultrix4 ports back in sync... 1998-03-10 05:24:33 +00:00
Thomas G. Lockhart 2d87654aeb Repair "LIKE" behavior with two adjacent wildcard characters ("_").
Was ignoring second wildcard.
1998-03-07 06:04:59 +00:00
Thomas G. Lockhart a540f78668 Add one-line fix to allow redefining built-in functions.
Bug introduced in mid-January.
1998-03-07 06:03:28 +00:00
Bruce Momjian 8ecc01cf8a Fix bad oid in table. 1998-03-07 04:49:57 +00:00
Bruce Momjian c0cd1edfe2 xinv fix for tclsh 1998-03-06 22:49:58 +00:00
Bruce Momjian ba1d990cf7 pg_user cleanup. 1998-03-06 18:03:38 +00:00
Bruce Momjian ea89acc4d7 Rename pg_user to pg_shadow. 1998-03-06 17:25:51 +00:00
Marc G. Fournier 0bad7c1198 Add ecpg back in again 1998-03-05 13:18:51 +00:00
Bruce Momjian a8de40df53 Get rid of those pesky long constants, 'l'. Has no affect. 1998-03-04 18:41:08 +00:00
Marc G. Fournier b1c7c31e07 One last change to configure for 'non-gcc' compiler 1998-03-02 14:54:59 +00:00
Marc G. Fournier 9bc57c6665 From: Darren King <darrenk@insightdist.com>
Patch1:

Postgres thinks dist_pl (dist of a point to a line) is expecting a box (603)
for the right arg, but it really should be a line (628).

Otherwise the left & right args match those of dist_pb (dist of a point to a
box) two lines further down.


Patch2:

Anyways, these two functions take a path (602) whereas in pg_proc.h they are
listed as taking a lseg (601).
1998-03-02 06:12:15 +00:00
Bruce Momjian d45dfd0d65 Reminder for next time. 1998-03-02 05:52:57 +00:00
Marc G. Fournier 6a9627e792 Last minute clean up for SunOS...
From: t-ishii@sra.co.jp
1998-03-02 05:42:15 +00:00
Marc G. Fournier 86d1343987 Change configure to reflect v6.3 vs v6.2 :) 1998-03-02 05:33:14 +00:00
Marc G. Fournier bb01e98d48 Bring pgaccess up to 0.82 - last update before release 1998-03-02 03:04:26 +00:00
Thomas G. Lockhart 77ac40d73e Fix money type USE_LOCALE support at least for default "C" locale.
Still has questionable code for some locale-specific strings.
1998-03-02 00:13:36 +00:00
Bruce Momjian 09b187598c Install new 0.81 pgaccess release. 1998-03-01 21:13:30 +00:00
Thomas G. Lockhart 9ed7a21ba6 Fix boolean operator declarations for path to return boolean, not float8. 1998-03-01 08:10:34 +00:00
Marc G. Fournier 22d79d0ef1 From: "Billy G. Allie" <Bill.Allie@mug.org>
The following patch will change the meaning of the isinf function in the
HAVE_FPCLASS section from "not finite" to "is infinity".
1998-03-01 04:53:54 +00:00
Marc G. Fournier 207acd86d7 From: Darren King <darrenk@insightdist.com>
1. Make 'all' works without complaint.  Don't have to add the .exp
   files to the files list.  They are made automagically when
   making the respective shared lib file.

   Only port that actually uses EXPSUFF (from makefiles/Makefile.*)
   is Aix, so if this breaks anybody else, let me know, asap.

2. Make 'clean' actually cleans up correctly.  Previously, it would
   leave the .o files in C-code directory.

3. Changed references to reflect new location of .c files.

4. Added DELETE statements to complex.source so that it tidies up
   when done.  Previously, it would leave things in pg_amop,
   pg_amproc and pg_opclass.  Only possible to do this with the
   new SUBSELECT code in 6.3.  Nice work, fellas...

   Not deleting the index entries would cause a non-fatal error if
   complex.sql was run again on the same database.  Much tidier now.

5. Corrected the README.  obj directory hasn't existed since Bryan
   redid the make way back when.  Also changed the snipet from psql
   to match the current version. POSTGRES95?!?  I don't think so. :)
1998-03-01 04:52:59 +00:00
Marc G. Fournier f3f7712675 Move around files before applying Darren's second patch 1998-03-01 04:51:16 +00:00
Marc G. Fournier 56b3182241 From: "Billy G. Allie" <Bill.Allie@mug.org>
The following patches will allow postgreSQL 6.3 to compile and run on a
UNIXWARE 2.1.2 system with the native C compiler with the following library
change:

        The alloca function must be copied from the libucb.a archive and added
        to the libgen.a archive.

Also, the GNU flex program is needed to successfully build postgreSQL.
1998-03-01 04:47:38 +00:00
Marc G. Fournier 5b3e78afe3 From: Darren King <darrenk@insightdist.com>
Seem to remember someone posting to one of the lists a while back
that the tutorial code wouldn't compile and/or run.  Found four
problems with it that will let it run.

1. Tutorial makefile had a recursive use of DLOBJS.

2. Some tutorial needed semi-colons added to many statements.

3. Complex tutorial didn't clean up after itself.

4. Advanced had a time-travel example.  Commented it out and
   put a line pointing the user to contrib/spi/README.
1998-02-28 23:37:10 +00:00
Marc G. Fournier bc58c5867d Further updated regression output for FreeBSD 1998-02-28 21:28:30 +00:00
Marc G. Fournier 4a7447e032 Convert the -enable/-with options to use proper m4 macros and provide
-help messages

Suggested by: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
1998-02-28 20:05:09 +00:00
Vadim B. Mikheev 4af1e537d6 Fix scan adjusting for marked index tuples. 1998-02-28 13:53:18 +00:00
Marc G. Fournier 9ceaa677ad Add for port hppa-??-hpux... 1998-02-27 21:55:22 +00:00
Marc G. Fournier 794fedc735 From: Darren King <darrenk@insightdist.com>
Two incorrect printf formats in parser/parse_type.c.  Prolly done
by me a long time ago when I cleaned up int's and Oid's...

Format flag is really just %u, not %ud.  Harmless, but results in
"type id lookup of 25d failed" instead of only "...25 failed"
1998-02-27 19:44:51 +00:00
Vadim B. Mikheev 9986d9a404 ExecReScan for MergeJoin. 1998-02-27 16:12:09 +00:00
Vadim B. Mikheev 0a1e28494e ExecReScan for MergeJoin.
Marked inner tuple now is copied into mergestate->mj_MarkedTupleSlot -
no more tricks arround ttc_shouldfree.
1998-02-27 16:11:28 +00:00
Vadim B. Mikheev b0571ebf65 In '(a,b,...) Op [ANY|ALL] (SubSelect)' Op is restricted to
'=' and '<>'.
1998-02-27 16:07:02 +00:00
Marc G. Fournier 96ac738269 From: Michael Meskes <meskes@topsystem.de>
No more shift/reduce conflicts. Also all other bugs I know about are fixed.
1998-02-27 12:59:33 +00:00
Vadim B. Mikheev 1a6de0760d Check SELECT permissions in subqueries. 1998-02-27 08:43:53 +00:00
Marc G. Fournier 472d802ced Update regression output for FreeBSD 1998-02-27 03:25:43 +00:00
Marc G. Fournier 29cdd1204a New regression test output for Aix from Darren 1998-02-27 03:17:54 +00:00
Marc G. Fournier c37be81cdf Add <sys/types.h> for SunOS
From: t-ishii@sra.co.jp
1998-02-27 03:07:35 +00:00
Marc G. Fournier 296a942b56 From: Darren King <darrenk@insightdist.com>
This patch will...

1. Remove the "-Wall" option from the ecpg/lib and ecpg/preproc Makefile.

2. Remove the addition of $(SRCDIR)/include and-or $(SRCDIR)/backend from
   ecpg/lib, ecpg/preproc, libpq and utils Makefiles. Already in CFLAGS...

3. Set MK_NO_LORDER and RANLIB in Makefile.aix to avoid a couple of extra
   steps taken care of by the 'ld' command anyways.
1998-02-27 02:41:21 +00:00
Marc G. Fournier 877224154d From: Jan Wieck <jwieck@debis.com>
I thought it would be a good idea to ensure that the new view
    permission  model  will  not   get   broken   by   subsequent
    fixes/changes. So I wrote a little regression test for it.

    There  is  an  ugly thing in this regression test. It creates
    temporary a test user that is required  for  the  tests.  The
    user  is removed at the end of the test, but if sometimes the
    regression suite is aborted or crashes exactly here, the test
    user will lay around in the pg_shadow.  Don't have a clue how
    to get around.
1998-02-27 02:38:15 +00:00