OSDN Git Service

pg-rex/syncrep.git
26 years agoHi,
Bruce Momjian [Mon, 6 Apr 1998 00:32:26 +0000 (00:32 +0000)]
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

26 years agoRemove DISTDIR.
Bruce Momjian [Sun, 5 Apr 1998 22:02:56 +0000 (22:02 +0000)]
Remove DISTDIR.

26 years agothis patch solve 2 problemes :
Bruce Momjian [Sun, 5 Apr 1998 21:29:49 +0000 (21:29 +0000)]
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

26 years agoconfigure cleanup.
Bruce Momjian [Sun, 5 Apr 1998 21:18:03 +0000 (21:18 +0000)]
configure cleanup.

26 years agoRemove GetDatabaseName/Path and use globals. Make consts later.
Bruce Momjian [Sun, 5 Apr 1998 21:04:50 +0000 (21:04 +0000)]
Remove GetDatabaseName/Path and use globals.  Make consts later.

26 years agoconfiugre.in cleanup.
Bruce Momjian [Sun, 5 Apr 1998 20:54:38 +0000 (20:54 +0000)]
confiugre.in cleanup.

26 years agoHere are 3 patches (all relative to the src directory) to help with
Bruce Momjian [Sun, 5 Apr 1998 20:28:23 +0000 (20:28 +0000)]
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

26 years agoInformation completely translated to the SGML/DocBook source files
Thomas G. Lockhart [Sun, 5 Apr 1998 17:10:41 +0000 (17:10 +0000)]
Information completely translated to the SGML/DocBook source files
 pgtcl.sgml, spi.sgml, trigger.sgml.
Online docs in html and postscript are the current versions.

26 years agoInclude complete Makefile.global if available,
Thomas G. Lockhart [Sun, 5 Apr 1998 17:07:32 +0000 (17:07 +0000)]
Include complete Makefile.global if available,
 rather than just Makefile.custom.

26 years agoFix for memory leak.
Bruce Momjian [Sun, 5 Apr 1998 05:52:10 +0000 (05:52 +0000)]
Fix for memory leak.

26 years agoClean up formatting.
Thomas G. Lockhart [Sat, 4 Apr 1998 16:35:22 +0000 (16:35 +0000)]
Clean up formatting.
Add more URL links for GiST information.

26 years agoInclude example of table loading using the COPY command.
Thomas G. Lockhart [Sat, 4 Apr 1998 16:34:23 +0000 (16:34 +0000)]
Include example of table loading using the COPY command.

26 years agoConvert body of chapter to SGML. Was embedded text from original doc.
Thomas G. Lockhart [Sat, 4 Apr 1998 16:32:01 +0000 (16:32 +0000)]
Convert body of chapter to SGML. Was embedded text from original doc.

26 years agoSmall corrections from Phil Thompson, the original author.
Thomas G. Lockhart [Sat, 4 Apr 1998 16:30:31 +0000 (16:30 +0000)]
Small corrections from Phil Thompson, the original author.

26 years agoInclude the stub docs for the rules system. Omission in original versions.
Thomas G. Lockhart [Sat, 4 Apr 1998 16:26:05 +0000 (16:26 +0000)]
Include the stub docs for the rules system. Omission in original versions.

26 years agoA couple of weeks ago I submitted a patch to fix configure --with-tcl.
Bruce Momjian [Fri, 3 Apr 1998 20:21:51 +0000 (20:21 +0000)]
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

26 years agoFix merging pathes of pruned rels ("indices are unused" problem).
Vadim B. Mikheev [Thu, 2 Apr 1998 07:27:15 +0000 (07:27 +0000)]
Fix merging pathes of pruned rels ("indices are unused" problem).

26 years agoresync configure
Marc G. Fournier [Wed, 1 Apr 1998 18:47:47 +0000 (18:47 +0000)]
resync configure

26 years agoFrom: Maurice Gittens <mgittens@david.gits.nl>
Marc G. Fournier [Wed, 1 Apr 1998 15:35:33 +0000 (15:35 +0000)]
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.

26 years agoremove the call to port-protos.h ...
Marc G. Fournier [Wed, 1 Apr 1998 03:13:37 +0000 (03:13 +0000)]
remove the call to port-protos.h ...

26 years agoSmall HAVING cleanup.
Bruce Momjian [Tue, 31 Mar 1998 23:31:10 +0000 (23:31 +0000)]
Small HAVING cleanup.

26 years agoFix macro read violation for Maurice.
Bruce Momjian [Tue, 31 Mar 1998 15:53:51 +0000 (15:53 +0000)]
Fix macro read violation for Maurice.

26 years agoMerge rename name page into alter table. Fix UNION with DISTINCT
Bruce Momjian [Tue, 31 Mar 1998 04:44:35 +0000 (04:44 +0000)]
Merge rename name page into alter table.  Fix UNION with DISTINCT
or ORDER BY bug.

26 years agoPointed out by: Doug Winterburn <dlw@seavme.xroads.com>
Marc G. Fournier [Tue, 31 Mar 1998 03:00:20 +0000 (03:00 +0000)]
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.

26 years agoPointed out by: Doug Winterburn <dlw@seavme.xroads.com>
Marc G. Fournier [Tue, 31 Mar 1998 02:59:07 +0000 (02:59 +0000)]
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.

26 years agodocumentation for HAVING, clean up UNION comment.
Bruce Momjian [Mon, 30 Mar 1998 19:05:10 +0000 (19:05 +0000)]
documentation for HAVING, clean up UNION comment.

26 years agoThis simple patch to catalog/pg_type.c fixes a buffer overrun. It
Bruce Momjian [Mon, 30 Mar 1998 17:46:45 +0000 (17:46 +0000)]
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

26 years agoThis problem had nothing to do with the upgrades I made. There
Bruce Momjian [Mon, 30 Mar 1998 17:39:16 +0000 (17:39 +0000)]
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>

26 years agoThe following uuencoded, gzip'd file will ...
Bruce Momjian [Mon, 30 Mar 1998 17:28:21 +0000 (17:28 +0000)]
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

26 years agoThe buffer overrun while creating sequences turns out to be a read
Bruce Momjian [Mon, 30 Mar 1998 17:15:26 +0000 (17:15 +0000)]
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

26 years agoThere's a patch attached to fix gcc 2.8.x warnings, except for the
Bruce Momjian [Mon, 30 Mar 1998 16:47:35 +0000 (16:47 +0000)]
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

26 years agoI started adding the Having Clause and it works quite fine for
Bruce Momjian [Mon, 30 Mar 1998 16:36:43 +0000 (16:36 +0000)]
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

26 years agoUpgrade to v0.86
Marc G. Fournier [Sun, 29 Mar 1998 21:52:54 +0000 (21:52 +0000)]
Upgrade to v0.86

26 years agoPrevent pgindent from being run on odbc in the future.
Bruce Momjian [Sat, 28 Mar 1998 02:24:49 +0000 (02:24 +0000)]
Prevent pgindent from being run on odbc in the future.

26 years agoI have been troubled by a segmentation fault when reloading from
Bruce Momjian [Thu, 26 Mar 1998 23:46:14 +0000 (23:46 +0000)]
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

26 years agoBETWEEN and LIKE patch from Thomas
Bruce Momjian [Thu, 26 Mar 1998 21:08:10 +0000 (21:08 +0000)]
BETWEEN and LIKE patch from Thomas

26 years agoUpdate manual
Bruce Momjian [Thu, 26 Mar 1998 21:01:47 +0000 (21:01 +0000)]
Update manual

26 years agoMention rollback instead of abort.
Bruce Momjian [Wed, 25 Mar 1998 01:54:53 +0000 (01:54 +0000)]
Mention rollback instead of abort.

26 years agoinstall cleanup
Bruce Momjian [Wed, 25 Mar 1998 01:45:33 +0000 (01:45 +0000)]
install cleanup

26 years agoFAQ_Irix update
Bruce Momjian [Mon, 23 Mar 1998 17:54:47 +0000 (17:54 +0000)]
FAQ_Irix update

26 years agoupdate for 6.3.1
Bruce Momjian [Mon, 23 Mar 1998 16:14:50 +0000 (16:14 +0000)]
update for 6.3.1

26 years agoManual page fixes.
Bruce Momjian [Mon, 23 Mar 1998 15:09:43 +0000 (15:09 +0000)]
Manual page fixes.

26 years agoautoconf again.
Bruce Momjian [Mon, 23 Mar 1998 06:08:51 +0000 (06:08 +0000)]
autoconf again.

26 years agomore tcl/tk fixes
Bruce Momjian [Mon, 23 Mar 1998 06:03:04 +0000 (06:03 +0000)]
more tcl/tk fixes

26 years agoAnother tcl/tk fix.
Bruce Momjian [Mon, 23 Mar 1998 04:08:05 +0000 (04:08 +0000)]
Another tcl/tk fix.

26 years agooops, forgot to run autoconf.
Bruce Momjian [Mon, 23 Mar 1998 03:48:32 +0000 (03:48 +0000)]
oops, forgot to run autoconf.

26 years agoanother tcl/tk patch
Bruce Momjian [Mon, 23 Mar 1998 03:45:10 +0000 (03:45 +0000)]
another tcl/tk patch

another tcl/tk patch

26 years ago fix for tcl/tk in configure
Bruce Momjian [Mon, 23 Mar 1998 03:27:07 +0000 (03:27 +0000)]
fix for tcl/tk in configure

26 years agoAdd NetBSD specific expected files
Marc G. Fournier [Sun, 22 Mar 1998 19:46:45 +0000 (19:46 +0000)]
Add NetBSD specific expected files

26 years agoSlightly updated regression output for FreeBSD 3.0-CURRENT
Marc G. Fournier [Sun, 22 Mar 1998 19:40:33 +0000 (19:40 +0000)]
Slightly updated regression output for FreeBSD 3.0-CURRENT

26 years agoMade some changes to clean up how initdb works...just more made a 'PGSQL_OPTS'
Marc G. Fournier [Sun, 22 Mar 1998 19:35:30 +0000 (19:35 +0000)]
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...

26 years agoChange 2>$1 to -o /dev/null instead...
Marc G. Fournier [Sun, 22 Mar 1998 18:28:39 +0000 (18:28 +0000)]
Change 2>$1 to -o /dev/null instead...

From: Andreas Klemm <andreas@klemm.gtn.com>

26 years agoMoved sys/types.h to before netdb.h
Marc G. Fournier [Sun, 22 Mar 1998 04:18:17 +0000 (04:18 +0000)]
Moved sys/types.h to before netdb.h

From: Vince Vielhaber <vev@michvhf.com>

26 years agoCleanup for Thomas
Bruce Momjian [Sun, 22 Mar 1998 03:22:50 +0000 (03:22 +0000)]
Cleanup for Thomas

26 years agoContribution for logging Apache Web stats to PostgreSQL
Marc G. Fournier [Sun, 22 Mar 1998 02:03:00 +0000 (02:03 +0000)]
Contribution for logging Apache Web stats to PostgreSQL

From: Terry Mackintosh <terry@terrym.com>

26 years ago change in item person;
Bruce Momjian [Sat, 21 Mar 1998 15:17:30 +0000 (15:17 +0000)]
change in item person;

26 years agocleanup instructions for patch upgrade.
Bruce Momjian [Sat, 21 Mar 1998 15:01:32 +0000 (15:01 +0000)]
cleanup instructions for patch upgrade.

26 years agoUpdate for 6.3p1 release.
Bruce Momjian [Sat, 21 Mar 1998 05:28:27 +0000 (05:28 +0000)]
Update for 6.3p1 release.

26 years agoBetter identify tcl and tk.
Bruce Momjian [Sat, 21 Mar 1998 04:42:58 +0000 (04:42 +0000)]
Better identify tcl and tk.

26 years agoThis patch fixes a couple of minor bugs:
Bruce Momjian [Fri, 20 Mar 1998 22:03:55 +0000 (22:03 +0000)]
This patch fixes a couple of minor bugs:

1) DatabaseMetaData.getPrimaryKeys() would fail saying that there
is no
   table t.

2) PreparedStatement.getObject() was missing some break statements,
which
   was causing updates not to work with JBuilder (supplied by Aaron
   Dunlop).

jdbc fixes from Peter.

26 years agoDisable -lbsd on alpha.
Bruce Momjian [Fri, 20 Mar 1998 18:47:15 +0000 (18:47 +0000)]
Disable -lbsd on alpha.

26 years agoAdd missing file.
Bruce Momjian [Fri, 20 Mar 1998 17:24:37 +0000 (17:24 +0000)]
Add missing file.

26 years agoOK...here is a patch that will cause the magnetic disk storage
Bruce Momjian [Fri, 20 Mar 1998 04:22:54 +0000 (04:22 +0000)]
OK...here is a patch that will cause the magnetic disk storage
manager to not try to split files in 2 gig chunks.  It will just
try to get another block.

If applied, everything is just as before. But if LET_OS_MANAGE_FILESIZE
is defined, the chaining disappears and the file just keeps on
going, and going, and going, til the OS barfs.

Darren King

26 years agoSorry. I made above mistakes. "__svr4" should be "__svr4__" or
Bruce Momjian [Fri, 20 Mar 1998 04:17:34 +0000 (04:17 +0000)]
Sorry. I made above mistakes. "__svr4" should be "__svr4__" or
"__SVR4" as you pointed out.  There is another file that has the
same mistakes.  Included is a patche for include/c.h.

t-ishii@sra.co.jp

26 years agoFix spelling of "including
Bruce Momjian [Fri, 20 Mar 1998 04:12:25 +0000 (04:12 +0000)]
Fix spelling of "including

Edward J. Huff

26 years agoHPUX build does not build shared lib versions of libpq and libpq++
Bruce Momjian [Fri, 20 Mar 1998 04:07:11 +0000 (04:07 +0000)]
HPUX build does not build shared lib versions of libpq and libpq++

--------------------------------------------------------------------------

Test Case:  ----------

--------------------------------------------------------------------------

Solution:  --------- Add this to the libpq and libpq++ Makefiles
to build shared libs:

Mike Ferrara

26 years agoIn libpq-fe.h: #if defined(sun) && defined(sparc) && !defined(__svr4)
Bruce Momjian [Fri, 20 Mar 1998 04:02:57 +0000 (04:02 +0000)]
In libpq-fe.h:  #if defined(sun) && defined(sparc) && !defined(__svr4)
extern char *sys_errlist[]; #define strerror(A) (sys_errlist[(A)])
#endif                                                  /* sunos4
*/

is picked up by Solaris when the above is intended only for SunOS.

Fix Solaris.  Albert Chin-A-Young

26 years agoThe real trick is to add -Dalpha to the CFLAGS setting. The changes
Bruce Momjian [Fri, 20 Mar 1998 03:55:52 +0000 (03:55 +0000)]
The real trick is to add -Dalpha to the CFLAGS setting.  The changes
to main.c are only to add some extra includes to support some code
that's suddenly being used.

The #define ASSEMBLER is to prevent most of the code of sys/proc.h
from being included, as it ends up conflicting with some of the
postgresql definitions.  This may or may not work on other versions
of Digital Unix.

Get alpha working.  Yea.  Dwayne Bailey

26 years ago> > I'm using text[] arrays. Some of my array elements have '"'
Bruce Momjian [Fri, 20 Mar 1998 03:44:19 +0000 (03:44 +0000)]
> > I'm using text[] arrays.  Some of my array elements have '"'
> > characters in them.  Dumping and reloading using pg_dumpall >
> doesn't work with this and dumping the entire array and > > then
trying to parse it is hopeless.

Doug Gibson

26 years agoHere's my next patch to bring ecpg to version 1.1. It now correctly
Bruce Momjian [Fri, 20 Mar 1998 03:08:11 +0000 (03:08 +0000)]
Here's my next patch to bring ecpg to version 1.1. It now correctly
handles all transaction commands and the exec sql include command.

Michael Meskes

26 years agoAllow parsing expressions with ") -" (scan.l, scan.c only).
Thomas G. Lockhart [Wed, 18 Mar 1998 16:50:25 +0000 (16:50 +0000)]
Allow parsing expressions with ") -" (scan.l, scan.c only).
Make "TABLE" optional in "LOCK TABLE" command
 and "... INTO TABLE..." clause.
Explicitly parse CREATE SEQUENCE options to allow a negative integer
 as an argument; this is an artifact of unary minus handling in scan.l.
Add "PASSWORD" as an allowed column identifier.
These fixes will require a "make clean install" but not a dump/reload.

26 years agoAdd checks for UNION target fields, and add optional TABLE to LOCK
Bruce Momjian [Wed, 18 Mar 1998 15:49:08 +0000 (15:49 +0000)]
Add checks for UNION target fields, and add optional TABLE to LOCK
and SELECT manual pages and psql help.

26 years agoSunOS .similar cleanup.
Bruce Momjian [Mon, 16 Mar 1998 15:14:50 +0000 (15:14 +0000)]
SunOS .similar cleanup.

26 years agoAdd SunOS entries.
Bruce Momjian [Mon, 16 Mar 1998 14:46:37 +0000 (14:46 +0000)]
Add SunOS entries.

26 years agoPrevent \do from wrapping.
Bruce Momjian [Mon, 16 Mar 1998 14:27:38 +0000 (14:27 +0000)]
Prevent \do from wrapping.

26 years agoMake pg_user /xpg_user change complete.
Bruce Momjian [Mon, 16 Mar 1998 05:58:46 +0000 (05:58 +0000)]
Make pg_user /xpg_user change complete.

26 years agoRemove duplicates
Bruce Momjian [Mon, 16 Mar 1998 05:52:23 +0000 (05:52 +0000)]
Remove duplicates

26 years agoFix for Datasize = 0 error, from Vadim.
Bruce Momjian [Mon, 16 Mar 1998 05:49:32 +0000 (05:49 +0000)]
Fix for Datasize = 0 error, from Vadim.

26 years agoFix for pg_dump of large objects, from alvin@camberlo.demon.co.uk.
Bruce Momjian [Mon, 16 Mar 1998 05:41:39 +0000 (05:41 +0000)]
Fix for pg_dump of large objects, from alvin@camberlo.demon.co.uk.

26 years agosubselect notes from Vadim.
Bruce Momjian [Mon, 16 Mar 1998 05:37:16 +0000 (05:37 +0000)]
subselect notes from Vadim.

26 years agoFrom: Jeroen van Vianen <jeroenv@design.nl>
Marc G. Fournier [Sun, 15 Mar 1998 08:33:59 +0000 (08:33 +0000)]
From: Jeroen van Vianen <jeroenv@design.nl>

tools.patch patches tools/find_static (use indices to increase
performance) and tools/ccsym (no hardcoded paths).

26 years agoFrom: hankin <hankin@consultco.com>
Marc G. Fournier [Sun, 15 Mar 1998 08:18:03 +0000 (08:18 +0000)]
From: hankin <hankin@consultco.com>

a while back I posted a patch for pg_ident, the patch worked but I didn't
diagnose the problem properly.
on my compiler(gcc2.7.2) this compiles with no errors...

char buf[1000]; if(buf != '\0') {

...but it doesn't compare '\0' with the first char of buf.

26 years agoReply-To: Jordi MacDonald <jordi@spartanmedia.com>
Marc G. Fournier [Sun, 15 Mar 1998 08:15:46 +0000 (08:15 +0000)]
Reply-To: Jordi MacDonald <jordi@spartanmedia.com>

There is an error in the configure script when using
--with-pgport= that will cause the compiled version of
PostgreSQL to no longer allow connections to the
new port and to treat shared memory improperly.

What happens is that if the port is changed, the configure
script defines DEF_PGPORT as "", which atoi() will return
as 0, which makes the IPC_KEY value 0. This then causes
semaphores to be allocated, but never released. Postgres
eventually returns from semget() with
"no space left on device". The source of this error could
easily be overlooked in version 6.3 since it is possible
to connect via UNIX domain sockets, and having DEF_PGPORT
defined as "0" would not be noticed until TCP was used.

26 years agoFrom: Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>
Marc G. Fournier [Sun, 15 Mar 1998 08:11:11 +0000 (08:11 +0000)]
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.

26 years agoFrom: t-ishii@sra.co.jp
Marc G. Fournier [Sun, 15 Mar 1998 08:09:37 +0000 (08:09 +0000)]
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.

26 years agoFrom: "Thomas G. Lockhart" <lockhart@alumni.caltech.edu>
Marc G. Fournier [Sun, 15 Mar 1998 08:07:01 +0000 (08:07 +0000)]
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 ">"...

26 years agoFrom: Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>
Marc G. Fournier [Sun, 15 Mar 1998 08:03:00 +0000 (08:03 +0000)]
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.

26 years agoFrom: t-ishii@sra.co.jp
Marc G. Fournier [Sun, 15 Mar 1998 07:53:03 +0000 (07:53 +0000)]
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.)

26 years agoFrom: t-ishii@sra.co.jp
Marc G. Fournier [Sun, 15 Mar 1998 07:39:04 +0000 (07:39 +0000)]
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.)

26 years agoFrom: Peter T Mount <patches@maidast.demon.co.uk>
Marc G. Fournier [Sun, 15 Mar 1998 07:12:07 +0000 (07:12 +0000)]
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.

26 years ago CLUSTER cleanup
Bruce Momjian [Sun, 15 Mar 1998 02:13:23 +0000 (02:13 +0000)]
CLUSTER cleanup

26 years agoCluster fixup.
Bruce Momjian [Sat, 14 Mar 1998 22:55:21 +0000 (22:55 +0000)]
Cluster  fixup.

26 years agoChange Postgres95 to PostgreSQL. Update CLUSTER manual page.
Bruce Momjian [Sat, 14 Mar 1998 21:58:09 +0000 (21:58 +0000)]
Change Postgres95 to PostgreSQL.  Update CLUSTER manual page.

26 years agoRemove postgres95.
Bruce Momjian [Sat, 14 Mar 1998 04:15:49 +0000 (04:15 +0000)]
Remove postgres95.

26 years agoUpdate Pgaccess to 0.83
Marc G. Fournier [Thu, 12 Mar 1998 13:09:46 +0000 (13:09 +0000)]
Update Pgaccess to 0.83

26 years agoGet the ultrix4 ports back in sync...
Marc G. Fournier [Tue, 10 Mar 1998 05:24:33 +0000 (05:24 +0000)]
Get the ultrix4 ports back in sync...

26 years agoRepair "LIKE" behavior with two adjacent wildcard characters ("_").
Thomas G. Lockhart [Sat, 7 Mar 1998 06:04:59 +0000 (06:04 +0000)]
Repair "LIKE" behavior with two adjacent wildcard characters ("_").
 Was ignoring second wildcard.

26 years agoAdd one-line fix to allow redefining built-in functions.
Thomas G. Lockhart [Sat, 7 Mar 1998 06:03:28 +0000 (06:03 +0000)]
Add one-line fix to allow redefining built-in functions.
 Bug introduced in mid-January.

26 years agoFix bad oid in table.
Bruce Momjian [Sat, 7 Mar 1998 04:49:57 +0000 (04:49 +0000)]
Fix bad oid in table.

26 years agoxinv fix for tclsh
Bruce Momjian [Fri, 6 Mar 1998 22:49:58 +0000 (22:49 +0000)]
xinv fix for tclsh