Commit graph

3854 commits

Author SHA1 Message Date
Bruce Momjian
f1a24505bb 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:33 +00:00
Bruce Momjian
fb6f7dc88d Fix prototype for 64-bit platforms. 1998-12-12 21:31:20 +00:00
Bruce Momjian
489572f288 update pgaccess to 0.93. 1998-12-12 21:23:21 +00:00
Bruce Momjian
b827d786aa Add stdio for NULL define. 1998-12-12 19:58:13 +00:00
Tom Lane
a6aeaaba92 No complaints heard about the main branch, so I'm committing this
to REL6_4 as well...
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-12-05 23:09:06 +00:00
Tom Lane
48130c76e3 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
more readable layout.
1998-12-05 22:11:08 +00:00
Tom Lane
64cb864cb1 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:31:20 +00:00
Tom Lane
3be772cadc 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:59:00 +00:00
Tom Lane
594bee4844 Portability fix for old SunOS releases: realloc(NULL, ...)
doesn't work there.
1998-11-29 01:54:34 +00:00
Tom Lane
9fc69f5a67 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:52:32 +00:00
Tom Lane
932dbd1c30 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:48:42 +00:00
Thomas G. Lockhart
65a898b520 Additional fixes for mixed-case table names from Billy Allie.
Same changes I tried to commit last time.
 Hope the new version of cvs keeps it down...
1998-11-24 05:50:42 +00:00
Bruce Momjian
461c0ffc8f Vadim's OR fix. 1998-11-24 02:05:14 +00:00
Jan Wieck
0db829c494 Fixed bug in unknown module. Changed builtin function names
from SPI_* to spi_*.

Jan 11/23/1998
1998-11-23 17:44:21 +00:00
Tom Lane
b51ea828af 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:44:22 +00:00
Thomas G. Lockhart
714f2c83c6 Additional fix for creating tables with constraints
when table name is mixed-case from Billy Allie.
1998-11-17 14:42:52 +00:00
Tom Lane
169ee404b5 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:11:29 +00:00
Thomas G. Lockhart
44ddb8cf4c Fix test for table existance to allow mixed-case and whitespace in
the table name. Problem reported by Billy Allie.
1998-11-12 15:34:30 +00:00
Tom Lane
555eadc904 Fix at least a few shared-library problems on Linux.
We have not seen the end of this issue :-(.
1998-11-12 05:25:05 +00:00
Tom Lane
ddb06e30e4 Back-patch EXPLAIN VERBOSE coredump fix into 6.4 1998-11-12 03:46:14 +00:00
Bruce Momjian
190cc6354f Fix for NOT in where clause causing crash. 1998-11-09 02:49:35 +00:00
Thomas G. Lockhart
8907230349 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:56:42 +00:00
Marc G. Fournier
055c1ebd76 Upgrade to 0.91 of pgaccess ... 1998-11-06 04:10:26 +00:00
Thomas G. Lockhart
30f35ef9c4 Test for and handle NULL arguments to mylog() print statements.
Include definition for _IN_ADDR_T if INADDR_NONE is not defined.
1998-11-04 16:24:32 +00:00
Thomas G. Lockhart
f47bd801e3 Somehow had the solaris template names reversed. Probably was something
fixed in src/configure.in a while ago.
1998-11-04 16:22:09 +00:00
Bruce Momjian
733ad60409 Fix for relname.data from SHIOZAKI Takehiko 1998-11-02 15:28:36 +00:00
Marc G. Fournier
c200938343 slight mods required for freebsd (elf vs aout stuff) 1998-11-02 05:30:10 +00:00
Marc G. Fournier
46fb81636c Remove various files that were moved to various subdirectories...
Requested by: Peter T Mount peter@retep.org.uk
1998-11-01 16:55:02 +00:00
Marc G. Fournier
585442154a oops, forgot one part of the patch...remove 'false' setting to ELF_SYS... 1998-10-31 04:07:00 +00:00
Marc G. Fournier
15d61bb439 Minor FreeBSD fixes put in place
From: SHIOZAKI Takehiko <takehi-s@ascii.co.jp>

I tried snapshot(Oct30) and made some patches.
# I think that it is confused to manage both Makefile.shlib and
# makefiles/Makefile.*, don't you?

* configure
        Now FreeBSD 2.X is not supported..., so I added its entry.
        If ELF_SYSTEM is set, gmake treat it defined even though
        it is "false".  So nothing should be set to use "ifdef".
        BSD_SHLIB etc. may have same problems.

* Makefile.shlib
        As you said, FreeBSD entry is much like BSD's.
        I only added ELF_SYSTEM code.

* makefiles/Makefile.freebsd
        Ifdef/else/endif can not be indented with TABs.
1998-10-31 03:58:55 +00:00
Bruce Momjian
2e18525dbe s_lock patch from Ryan. 1998-10-31 02:06:08 +00:00
Tom Lane
47ea32f7d4 Mention --without-CXX option in online help. 1998-10-30 22:36:00 +00:00
Tom Lane
54789138bd Behave reasonably on a system without shared libraries. 1998-10-30 15:05:23 +00:00
Marc G. Fournier
4283089d07 Okay, this shoudl provide a fix for the freebsd problem...
Added a ELF_SYS variable and check to configure.in...
1998-10-30 04:54:06 +00:00
Tom Lane
c6338530f6 oid8neq => oid8ne 1998-10-29 19:03:50 +00:00
Tom Lane
a91c019c06 Drat. Should test a few more cases before committing. 1998-10-29 18:15:28 +00:00
Thomas G. Lockhart
485a71a4ce Add tests for comparison operators. 1998-10-29 18:13:03 +00:00
Thomas G. Lockhart
d9a2be00ec Fix regression test now that code seems to work.
Add tests for comparison operators.
1998-10-29 18:12:50 +00:00
Thomas G. Lockhart
396571d79c Very minor cleanup of no-op code. 1998-10-29 18:11:28 +00:00
Thomas G. Lockhart
9b24e7fa40 Fix discrepency in "@" operator for point and path. 1998-10-29 18:10:23 +00:00
Bruce Momjian
1e7c7343c4 Add oid8neq. 1998-10-29 18:07:09 +00:00
Tom Lane
1145d007bf Run autoconf. 1998-10-29 17:58:21 +00:00
Tom Lane
579b72c5de Run AC_PROG_GCC_TRADITIONAL only when running AC_PROG_CC,
ie, not when user specifies --with-CC.  This corrects a scripting error
that I'm surprised hasn't been reported more often.  Moving the macro call
to the earlier point in the script is correct anyway: if -traditional is needed,
it should get added to CFLAGS before we start using the compiler for
other tests.
1998-10-29 17:57:52 +00:00
Tom Lane
9e38dcfd43 Re-fix test for negative-integer return code that should be
testing for null-pointer return code...
1998-10-29 16:13:07 +00:00
Bruce Momjian
374d9a1f2b D'Arcy INET fix. 1998-10-29 04:41:44 +00:00
Tom Lane
94e37a30da I suspect that there is no longer a need for a platform-
specific version of this result, now that tintervals actually sort
correctly.  We can always add it back if NetBSD really is different.
1998-10-29 04:32:57 +00:00
Tom Lane
99d3e27112 Update tinterval test to have correctly sorted results,
now that bugs in pg_operator that caused wrongly sorted results have
been corrected (I hope ... it works here, anyway).
1998-10-29 04:29:12 +00:00
Tom Lane
478d460f3b Add new regression test to catch some simple kinds of
mistakes in creating pg_operator table.  NOTE: right now, this will
fail because of conflicting definitions for point @ path operator.
I trust we're gonna fix that.
1998-10-29 04:27:11 +00:00
Tom Lane
de43a5e1bd Add new regression test to catch some simple kinds of
mistakes in creating pg_operator table.
1998-10-29 04:25:23 +00:00
Tom Lane
4038dc0ee2 Fix a veritable boatload of errors in oprcom, oprnegate,
oprlsortop and oprrsortop links.  There's still a bug involving
conflicting definitions for point @ path, but I'm not taking
responsibility for deciding which one is right...
1998-10-29 04:22:52 +00:00