Commit Graph

3973 Commits

Author SHA1 Message Date
Tom Lane
a7cdfdf022 Fix pg_upgrade to notice if psql fails to execute the given
script, and not proceed with the update if so.
Also add #!/bin/sh header line.
1998-10-24 20:09:46 +00:00
Bruce Momjian
ba63dcd6a6 Put back string instead of string.h in libpq++. 1998-10-23 21:54:56 +00:00
Bruce Momjian
54fd5f6cc4 Fix from Jan for vacuum statistics loss. 1998-10-23 16:49:24 +00:00
Bruce Momjian
3037aace73 Change string to string.h in libpq++. BSDI 3.0 complains. 1998-10-23 16:11:14 +00:00
Bruce Momjian
1115162c84 rename file. 1998-10-23 02:56:13 +00:00
Bruce Momjian
e7cbcf23c4 autoconf 1998-10-23 02:52:09 +00:00
Bruce Momjian
759b17f0f6 Fix for version guessing in configure. 1998-10-23 02:49:17 +00:00
Bruce Momjian
aeb277c405 Update for bsdi 3.0. 1998-10-23 01:02:10 +00:00
Bruce Momjian
33c4072dbc INET/CIDR cleanup from D'Arcy. 1998-10-22 20:40:50 +00:00
Bruce Momjian
002657f7ed Add LIMIT syntax for Jan. 1998-10-22 13:52:24 +00:00
Bruce Momjian
ca2995be7b Remove duplicate CIDR funcs by using coerce entries. 1998-10-22 13:51:07 +00:00
Bruce Momjian
9ac0c1e371 CIDR/INET fixes from D'Arcy. 1998-10-22 13:16:27 +00:00
Bruce Momjian
7787d75d78 Fix indexing for INET / CIDR. 1998-10-22 05:29:24 +00:00
Bruce Momjian
3fe6a77f91 Fix for funcs on INET/CIDR. 1998-10-22 04:58:11 +00:00
Bruce Momjian
2ba4ee74aa Fix function calls to INET/CIDR functions. Added cidr_out. 1998-10-22 00:35:28 +00:00
Bruce Momjian
f9ee08499f Cleanup of \df for INET/CIDR. 1998-10-21 21:14:20 +00:00
Bruce Momjian
524f4b2d10 The patch does 2 things:
Fixes  a  bug  in  the rule system that caused a crashing
        backend when a join-view with calculated column  is  used
        in subselect.

        Modifies  EXPLAIN to explain rewritten queries instead of
        the plain SeqScan on a view. Rules can produce very  deep
MORE

Jan.
1998-10-21 16:21:29 +00:00
Bruce Momjian
858a3b570a New CIDR type and fixed INET type, from D'Arcy. 1998-10-21 16:06:50 +00:00
Thomas G. Lockhart
56f96f56df Include new Makefile.shlib from top level
when constructing standalone tarball.
1998-10-21 05:39:19 +00:00
Thomas G. Lockhart
09128223be Arbitrary addition of a comment line to get ownership of file in the
cvs tree. Am trying to fix the permissions to allow file execution,
 since I had damaged the permissions when transferring in with ftp.
1998-10-21 05:23:36 +00:00
Bruce Momjian
89f01cd92f Add RIP notice for Paul. 1998-10-21 04:25:25 +00:00
Bruce Momjian
f8042120b6 INET fix from D'Arcy. 1998-10-21 02:48:22 +00:00
Bruce Momjian
a824add49a Remove unused INET functions for D'Arcy. 1998-10-20 23:03:20 +00:00
Bruce Momjian
d7fc00c20d Fix for rules system from Jan. 1998-10-20 17:21:44 +00:00
Tom Lane
6d98d3737a Centralized shared-library build knowledge in a new file,
src/Makefile.shlib.  Updated all the makefiles that try to build shlibs
to include that file instead of having duplicate (and mostly incomplete)
copies of shared-library options.  It works on HPUX, a lot better than it
did before in fact, but there's a chance I broke some other platforms.
At least now you only have to fix one place not six...
1998-10-19 00:00:51 +00:00
Bruce Momjian
6e13e0c684 cleanup of keywords.c 1998-10-18 23:30:17 +00:00
Bruce Momjian
07ed634c18 Resort keywords for Jan. 1998-10-18 23:29:27 +00:00
Tom Lane
acdf3c25f9 run autoconf 1998-10-18 19:42:31 +00:00
Tom Lane
e1942f5b9e Clean up shared makefile install procedures.
Get the permissions right, don't overwrite real files with symlinks, etc.
plpgsql and odbc still aren't fully up to speed, but at least they don't crash and burn...
1998-10-18 19:41:00 +00:00
Tom Lane
14f4ca009c run autoconf 1998-10-18 19:16:50 +00:00
Tom Lane
f0f1b628e3 Use AC_CONFIG_HEADER as documented by Autoconf manual: call it
only once at the top of the file.  I'm surprised include/config.h wasn't
being overwritten from interfaces/odbc/config.h.in ...
1998-10-18 19:16:09 +00:00
Bruce Momjian
a00dcabc6e autoconf 1998-10-18 04:19:05 +00:00
Bruce Momjian
f49cf6d094 The TCL/TK configuration cleanup patches I submitted have the following
problem:

    'tclsh' still had to be found even if --with-libs (or
--with-libraries) was
    specified to configure.

    --with-libs is really an overloaded option.  It really should only be used
    to specify additions directories to search in order to file needed
    libraries.  It was also being used to locate the *Config.sh files.

Billy G. Allie
1998-10-18 04:16:08 +00:00
Tom Lane
8ccf86bf32 Still another round of Perl-module installation tweaks.
Now, src/interfaces/perl5/Makefile.PL is pretty simple, and instead we
work a little harder in src/interfaces/Makefile.
1998-10-18 02:36:48 +00:00
Tom Lane
164510289e Still another round of Perl-module installation tweaks.
This time, src/interfaces/perl5/Makefile.PL no longer needs to be autoconf'd.
1998-10-18 02:34:34 +00:00
Tom Lane
f2ca34dfb3 Add code to pltcl's Makefile to cope with the situation where
libtcl has been installed as a non-shared library.  pltcl cannot be
built in that situation; we want to do nothing and let the overall Postgres
build complete, rather than failing.
1998-10-17 23:33:23 +00:00
Bruce Momjian
71a5da47d2 Disable inet. 1998-10-17 04:08:40 +00:00
Bruce Momjian
0c430306fe Re-enable inet code. 1998-10-17 03:59:14 +00:00
Bruce Momjian
f4389d5262 Fix for GNUmakefile and distclean. 1998-10-17 03:49:59 +00:00
Bruce Momjian
8333387dec Fix for GNUmakefile. 1998-10-17 03:48:54 +00:00
Bruce Momjian
4aa8376505 Remove Makefile.PL. 1998-10-17 03:37:04 +00:00
Bruce Momjian
2bb38b5e2d Fix for GNUmakefile and stupid cruft I forgot in there. 1998-10-17 02:36:13 +00:00
Bruce Momjian
af8df21b7e Add missing tcl *.in files. 1998-10-16 17:00:44 +00:00
Bruce Momjian
f731abe635 interfaces/Makefile fix. 1998-10-16 15:31:04 +00:00
Bruce Momjian
8fa2742ddf The problem is that read_pg_options needs DataDir to read its file but
DataDir is set after read_pg_options if postgres is called
interactively.  If postgres is forked by postgres DataDir is read from
the PGDATA enviromnent variable set by the postmaster and this explains
while the bug disappears.  I have written this patch but I don't like
it. Any better idea?

Massimo Dal Zotto
1998-10-16 06:05:18 +00:00
Bruce Momjian
9f69aa0831 add missing file for perl. 1998-10-16 05:58:22 +00:00
Bruce Momjian
7483856772 autoconf 1998-10-16 04:46:37 +00:00
Bruce Momjian
06edbafd4b Here's a patch. It also includes the latest parser changes.
Michael
1998-10-16 04:40:39 +00:00
Bruce Momjian
baa2f9998c Perl fixes from Brook Milligan 1998-10-16 04:37:38 +00:00
Bruce Momjian
e7663e34b8 LAtest cvs has a little bug in src/interfaces/ecpg/lib/Makefile.in
$(LD) $(LDFLAGS_SL) -o $@ ecpglib.sho typename.sho.o

must be
        $(LD) $(LDFLAGS_SL) -o $@ ecpglib.sho.o typename.sho.o
                                             ^^

        Regards,

        Oleg
1998-10-15 16:17:33 +00:00
Bruce Momjian
3f20878791 autoconf 1998-10-15 16:01:45 +00:00
Bruce Momjian
01cdd04731 TCL/TK fixes from Billy G. Allie. 1998-10-15 15:58:16 +00:00
Bruce Momjian
31bca4540e I have included a couple of patches that will make postgres
compile out of the tar file on Solaris with the SUN 5.0 compilers.
These compilers will be needed if you wan to compile the libpg++
interface without using the gcc/g++. The SC4.2 compilers do not
understand the string class.

The first patch changes the ecpg intermediate shared library
name from *.sho to *.sho.o so that the SUN compiler will
allow it to be used in conjunction with the -o option.

Matthew C. Aycock
1998-10-14 17:59:22 +00:00
Thomas G. Lockhart
9b895d0658 Clean up library names and installation paths.
Include soft links in the installation directory for major version number.
Use the existing $(DLSUFFIX) parameter to name shared library.
1998-10-14 16:13:03 +00:00
Thomas G. Lockhart
bbf4dae028 Remove $(DESTDIR) as a path prefix. $(POSTGRESDIR) is sufficient now. 1998-10-14 16:09:32 +00:00
Thomas G. Lockhart
624eb9ee24 Allow auto-detection of cpp and required flags. 1998-10-14 16:06:14 +00:00
Thomas G. Lockhart
b48edd74d1 Make genbki.sh a configureable shell program to allow auto-detection
of the proper cpp program.
1998-10-14 16:05:01 +00:00
Thomas G. Lockhart
fe6d19f15f Add Taral's test for flags required by the detected cpp program to read
from stdin. Necessary at least for systems missing cpp but having gcc -E.
Include new configured file backend/catalog/genbki.sh.
1998-10-14 16:02:11 +00:00
Thomas G. Lockhart
56792f3729 Allow TIMESTAMP as a column name or general identifier.
timestamp had become a token a while ago, but had been omitted from the
 keywords.c until recently. This uncovered the omission in the ColId decl.
1998-10-14 15:57:25 +00:00
Tom Lane
acc9c38471 Fix another memory leak in pg_select --- pointed out by teo@flex.ro 1998-10-14 15:17:51 +00:00
Bruce Momjian
aa3a1f46df New PGQUERY_LIMIT environment variable, and doc changes. 1998-10-14 05:31:50 +00:00
Bruce Momjian
8cec4cf91b New QUERY_LIMIT set command. 1998-10-14 05:10:12 +00:00
Bruce Momjian
39f2ec55d7 No more pgintro. 1998-10-14 02:54:39 +00:00
Bruce Momjian
103959a3df No more pgbuiltin. 1998-10-14 02:36:45 +00:00
Marc G. Fournier
f9649012d3 Updated regression.diffs file for Solaris x86... 1998-10-13 22:42:43 +00:00
Marc G. Fournier
4fff1dada7 From: Peter Gucwa <pg@softcomputer.com>
Here are patches needed to complie under AIX 4.2.
I changed configure.in, pqcomm.c, config.h.in, and fe-connect.c.
Also I had to install flex because lex did not want to translate pgc.l.
1998-10-13 20:44:49 +00:00
Marc G. Fournier
5dc94a1b5a New regression results for Solaris-Sparc 2.6 w/ gcc 2.8.1 1998-10-13 20:37:20 +00:00
Marc G. Fournier
6edea913be This is plain wrong, but check to see if DataDir was set *before* running
read_pg_options ... read_pg_options should probably be moved to after the
getopt() instead?
1998-10-13 20:05:44 +00:00
Marc G. Fournier
37f90d82ab case statement in select call was missing a break... 1998-10-13 19:51:50 +00:00
Marc G. Fournier
cd3a8e232c change configure so that if postgresql isn't being installed as root,
do not configure in the perl5 interface.

the perl5 interface needs to be installed under /usr/local/lib/perl5/*, which
is generally owned by root.  This allows a non-root build/install with the
only root requirement being the make/install of hte perl5 stuff...
1998-10-13 17:26:50 +00:00
Bruce Momjian
8c586b2a2a auytoconf 1998-10-13 16:34:01 +00:00
Bruce Momjian
ecf145f492 Remove TCL_LIB,TCL_INCDIR,TK_LIB,TK_INCDIR. 1998-10-13 16:30:49 +00:00
Marc G. Fournier
97f5547297 Remove the -soname ${SHLIB} from solaris_{sparc,x86} as they conflict
with the -o $@ used in the ${SHLIB} directive, causing a failure for
*at least* gcc2.8.1 + Solaris 2.6 under both hardware platforms...
1998-10-13 14:12:22 +00:00
Bruce Momjian
fbcda7b4a7 autoconf 1998-10-12 19:56:24 +00:00
Bruce Momjian
e33a23fccd TCL_LIB/TCL_INCDIR cleanup. 1998-10-12 19:47:25 +00:00
Bruce Momjian
882158a4db TCL_LIB. 1998-10-12 19:45:03 +00:00
Bruce Momjian
a643d97f29 Fix for inet from Tom H. 1998-10-12 15:56:34 +00:00
Bruce Momjian
5d79f26e5b No more TCL_LIB> 1998-10-12 15:01:40 +00:00
Bruce Momjian
af7e03997b autoconf 1998-10-12 14:44:46 +00:00
Bruce Momjian
c94323d1f5 Fix for Solaris/i386. 1998-10-12 14:41:45 +00:00
Bruce Momjian
b1f3293b8b Fix for version.c warning. 1998-10-12 05:09:55 +00:00
Bruce Momjian
7d6eee24da distclean fixup 1998-10-12 05:07:53 +00:00
Bruce Momjian
c743b8cecd Add mklang.sh.in to plpgsql. 1998-10-12 04:55:03 +00:00
Bruce Momjian
0f78649ccc Cleanup from Billy. 1998-10-12 04:45:22 +00:00
Bruce Momjian
2facf5460f TCL_LIB, TCL_INC not used. 1998-10-12 04:40:48 +00:00
Bruce Momjian
d2d919f7b7 tcl cleanup. 1998-10-12 04:32:24 +00:00
Bruce Momjian
51fd8dd36a autoconf 1998-10-12 04:11:03 +00:00
Bruce Momjian
eb3e640ea2 New INET functions from D'Arcy J.M. Cain 1998-10-12 04:07:53 +00:00
Bruce Momjian
03ab5f0174 This patch updates the ImageViewer example to use Multiple Threading.
When importing an image into the database, the example now fires off a
new
Thread, which imports the image in the background. This also means that
the application doesn't freeze on the user, and they can still browse
the
images in the database, while the upload is running.

This now makes the ImageViewer a true example on how to use Threads (the
threadtest class is just that - a test).

Peter
1998-10-12 02:45:45 +00:00
Bruce Momjian
d32c89bbb8 plpgsql fixes from Billy G. Allie 1998-10-12 02:44:10 +00:00
Bruce Momjian
4c64bb7d97 add new file. 1998-10-12 02:42:22 +00:00
Bruce Momjian
7a9312b422 Tcl fixes from Billy G. Allie 1998-10-12 02:41:01 +00:00
Bruce Momjian
b0dfc47794 2) Can't dump/restore varchar fields (See attached bug report/patch)
Cary B. O'Brien
1998-10-12 02:05:42 +00:00
Bruce Momjian
8a7bec3d45 autoconf 1998-10-12 02:01:41 +00:00
Bruce Momjian
0453f4d0f2 Cleanup. 1998-10-12 01:58:14 +00:00
Bruce Momjian
377b5fa3a4 Fix for inet_net_pton() from Tom. 1998-10-12 01:30:26 +00:00
Bruce Momjian
e48623ce87 More Solaris fixes. 1998-10-12 01:23:29 +00:00
Bruce Momjian
e16634386a Add SVr4 shared libraries. 1998-10-12 01:10:09 +00:00
Bruce Momjian
66f893f3fe Solaris shared library fixes. 1998-10-12 01:04:02 +00:00
Bruce Momjian
beac8c1c46 Fix for vacuum and cache use. Fix for BSDI 4.0. 1998-10-12 00:53:42 +00:00
Thomas G. Lockhart
03cb232a1f Move documentation to sgml sources, so remove man page installation. 1998-10-10 17:08:11 +00:00
Thomas G. Lockhart
f5da9422be Move documentation to sgml sources. 1998-10-10 17:07:16 +00:00
Bruce Momjian
6799af7d80 Reverse out vacuum change. 1998-10-09 21:31:34 +00:00
Bruce Momjian
2ac3173d75 major/minor shared name cleanup 1998-10-09 21:28:50 +00:00
Bruce Momjian
878f9dbb66 autoconf 1998-10-09 17:34:57 +00:00
Bruce Momjian
ada4cfce29 configure cleanup 1998-10-09 17:31:39 +00:00
Bruce Momjian
edcf5a7eba autoconf 1998-10-09 16:59:43 +00:00
Bruce Momjian
40703f282a There where a few more problems fixed by the patch below.
o configure.in

Jan.
1998-10-09 16:57:10 +00:00
Bruce Momjian
1483456418 Fix for version() string overwrite. 1998-10-09 16:42:32 +00:00
Thomas G. Lockhart
d12d4c78e5 Add wildcard asterisk to the UNLISTEN syntax. 1998-10-09 07:06:37 +00:00
Thomas G. Lockhart
4c9239173a Changes to support standalone installation. 1998-10-09 07:04:53 +00:00
Thomas G. Lockhart
25f90202f7 Adjustments for standalone and integrated ODBC. 1998-10-09 07:01:26 +00:00
Bruce Momjian
a8428c9e3f More bsdi 4.0 cleanups for shared libraries. 1998-10-09 04:50:12 +00:00
Bruce Momjian
765dd1b3f2 More bsdi 4.0 fixes. 1998-10-09 04:22:49 +00:00
Bruce Momjian
4b86cabcb4 Cleanup of distclean. 1998-10-09 04:07:49 +00:00
Bruce Momjian
af45dab6d7 Fix for BSDI shared libraries. 1998-10-09 03:08:00 +00:00
Bruce Momjian
76392f8cc4 Autoconf 1998-10-09 00:51:50 +00:00
Bruce Momjian
db882f6a18 Cleanup of pl files. 1998-10-09 00:41:28 +00:00
Tom Lane
5524a85172 Clean up minor gcc warning about lack of reset_r_plans prototype. 1998-10-08 23:50:28 +00:00
Bruce Momjian
23815260a3 I have had a few problems with the PL stuff recently committed. The
following patches fix the problems (i.e., all regression tests pass)
in what I hope to be a platform-independent fashion.  The accomplish
the following:

Brook Milligan
1998-10-08 23:45:19 +00:00
Tom Lane
60fee725b8 Do not enable TCL_ARRAYS feature by default, because it
is wrong and dangerous unless you are using contrib/string.  We really
need a thorough look at the issue of making the backend and the FE/BE
protocols completely 8-bit-clean for string data, but that's a task
for some future release.
1998-10-08 23:31:20 +00:00
Bruce Momjian
2133276ecc Update to pgaccess 0.90. 1998-10-08 22:50:20 +00:00
Bruce Momjian
681343ab6c No need compile command/version.c anymore. 1998-10-08 18:37:14 +00:00
Bruce Momjian
173c555948 Make functions static or ifdef NOT_USED. Prevent pg_version creation. 1998-10-08 18:30:52 +00:00
Bruce Momjian
deaaf96975 Fix for INET type addition. 1998-10-08 02:08:47 +00:00
Tom Lane
af5d6b4ef6 I'm too short of time to make these man pages look like the
newly-updated SGML reference pages, so I just inserted a comment that they
are obsolete.  If you want to transcribe the newer info into these pages,
be my guest.
1998-10-08 01:16:18 +00:00
Tom Lane
976625c54a I continue my quest to eliminate documentation that claims
a listen/notify condition name is a class or table name, 'cause it ain't.
1998-10-08 01:10:28 +00:00
Bruce Momjian
ba0a1ae721 Add changelog. 1998-10-08 00:41:36 +00:00
Bruce Momjian
5d8d65e8b3 remove unused file. 1998-10-08 00:39:11 +00:00
Bruce Momjian
25b5faa7cd Just a quick patch. This makes the JDBC driver thread safe, which is an
important step towards making the driver compliant, and means that for
some Java applications and servlets, only a single database connection
is
needed, so in a sence this is a nice little show stopper for 6.4 (and
should still be backward compatible to 6.3.2).

Peter
1998-10-08 00:38:21 +00:00
Bruce Momjian
9042e9d757 Cleanup for snprintf for long long's. 1998-10-08 00:34:47 +00:00
Bruce Momjian
8849655d24 I agree. I think, though, that the best argument presented in the
debate was from Paul Vixie, who wanted INET to be the name covering
both IPV4 and IPV6.  The following kit makes the needed changes:

Tom Ivar Helbekkmo
1998-10-08 00:19:47 +00:00
Bruce Momjian
30debec6e5 Hello!
Here are two new patches for the Win32 support.

1) The patch based on the one from Hiroshi Inoue [Inoue@tpf.co.jp], to
load
Winsock.dll from libpq.dll.
2) A patch for psql.c to remove the call to WSAStartup(), since it is
not
required when it's done in libpq.dll.

I'm still looking for the possibility of having a crypt() function in
libpq.dll too, the same way getopt was included. Any chance of getting
this
before 6.4, or should we wait for the next one?


//Magnus
1998-10-08 00:10:49 +00:00
Bruce Momjian
cb4292ea64 vacuum cleanups 1998-10-07 22:31:50 +00:00
Bruce Momjian
9549a8cd7d Fix snprintf.c for machines that don't have long long, like some Irix. 1998-10-07 17:12:52 +00:00
Thomas G. Lockhart
7d4b59f024 Use the $(LN_S) substitution for "ln -s" since configure tests for it. 1998-10-07 06:50:37 +00:00
Thomas G. Lockhart
ed24461ca1 Clean up for configuration from the Postgres main configure script.
Use @top-srcdir@ to find the right Makefile.global and use ODBCSRCDIR
 to point to this local directory.
Move non-platform-specific stuff to outside the if clauses.
Still need to move all platform-specific stuff to the templates.
1998-10-07 06:49:22 +00:00
Thomas G. Lockhart
fca4519d5b Add conditional compilation of the ODBC directory.
Requires --with-odbc specified in the standalone configure.
1998-10-07 06:41:40 +00:00
Thomas G. Lockhart
effb32c307 Add a few items to support an integrated build of the ODBC interface. 1998-10-07 06:39:30 +00:00
Thomas G. Lockhart
608dbb1b3e Separate out the lextest so that it is run by "make" and "make install".
Before, "make install" did not run the lextest.
Fix up the ODBC make from this main configure.
Include configure test for "ln -s" in Makefile.global.in.
 Was always in configure, just not carried through to here for use.
1998-10-07 06:38:29 +00:00
Bruce Momjian
3e66e2b17b make lock variable only used with fcntl 1998-10-07 03:45:12 +00:00
Bruce Momjian
252568dc11 Update pg_dump sgml and manuals to remove rule restriction. 1998-10-07 02:49:10 +00:00
Bruce Momjian
803204bd1e Playing around with pg_dump for a while resulted in some
fixes,  enhancements and some found bugs not yet fixed. After
    all I was able to get useful results  when  dumping/reloading
    the regression database.

Jan
1998-10-06 22:14:21 +00:00
Tom Lane
57d57d9500 Took it on myself to change libpq's sharedlib version number from
1.1 to 2.0 for this release.  The other frontend shlibs need version
number bumps too, but I think a minor version number change will do for them.
1998-10-06 14:22:12 +00:00
Tom Lane
fe91cd41ea If we're going to offer a default definition of PQmblen,
it probably ought to actually work.
1998-10-06 14:16:50 +00:00
Tom Lane
a4fd4cdc0d Re-apply fix stomped on by someone else's patch. Tsk, tsk. 1998-10-06 14:05:02 +00:00
Thomas G. Lockhart
1eab86e26d Update source code to Byron's v6.30.0250 sources plus minor cleanup
to get rid of unused variables.
Get clean compile on Linux (Thomas and Gerald).
Implement autoconf/configure for standalone builds and use the existing
 autoconf/configure system when in the Postgres source tree.
Code tests and functions with ApplixWare-4.4.1beta on a Linux box.
Changes should be backward compatible with WIN32 but still needs testing.
1998-10-06 05:58:41 +00:00
Thomas G. Lockhart
72129e98ce Try to configure interfaces/odbc using the --with-odbc switch.
Suppress installing man pages from here; do it from the doc/Makefile now.
1998-10-06 05:42:58 +00:00
Thomas G. Lockhart
b53d36618f Forgot to initialize double quote option to be enabled. 1998-10-06 05:35:42 +00:00
Thomas G. Lockhart
fe9bf46bd4 Add mention of the new "suppress double quotes" command line option "-n". 1998-10-06 05:05:48 +00:00
Bruce Momjian
237e0a6306 Fix for double free from Tatsuo Ishii 1998-10-06 03:55:43 +00:00
Bruce Momjian
b7ed6f8512 Hi all
Is it too late to add a feature to pg_dump for 6.4??

I just spent most of the day learning pg_dump and modifing it so it
would
dump views also.

This is the first time I have ever contributed any code changes, so I'm
not sure of how to submit it.

The diff's and a readme as a tgz file are attached.

Thanks
Terry Mackintosh <terry@terrym.com>          http://www.terrym.com
1998-10-06 03:09:02 +00:00
Bruce Momjian
e1ebac319d Here are the patches against the current source tree. I have run the
regression test on a FreeBSD box with both non-MULTIBYTE and
MULTIBYTE-enabled, and confirmed that the results are same.

However I do not tested on PCs(I don't have access to win). Please let
me know if the patches break anything on PCs.

Also please note that the patch for varchar.c is a fix for a nasty bug
of char(n) types that I introduced and I believe at least this should
be applied.

Tatsuo Ishii
1998-10-06 03:02:29 +00:00
Tom Lane
c77a29a14e Substantial rewrite of async.c to avoid problems with non-reentrant stdio
and possibly other problems.  Minor changes in xact.c and postgres.c's
main loop to support new handling of async NOTIFY.
1998-10-06 02:40:09 +00:00
Tom Lane
e7e027a6c9 Add configure test to make sure fcntl(SETLK) is available. 1998-10-06 02:32:28 +00:00
Tom Lane
9e23ab9b5c Add configure test to make sure fcntl(SETLK) is available,
and make backend/libpq/pqcomm.c only try to lock the socket file when
the call exists.  Also, change open-RDONLY to open-WRONLY; at least
on my platform, you can't get a write lock on a file you didn't open
for writing.
1998-10-06 02:31:42 +00:00
Thomas G. Lockhart
445ce6954f Information is now in the chapter on syntax in the User's Guide. 1998-10-05 02:55:58 +00:00
Thomas G. Lockhart
a54ba52101 Properly interpret environment variables passed as the input location. 1998-10-05 02:51:21 +00:00
Thomas G. Lockhart
86234a0965 Fix up warning and error messages to use single-quotes around strings. 1998-10-05 02:49:36 +00:00
Thomas G. Lockhart
60ed8bbe75 Fix up warning and error messages to use single-quotes aroun strings. 1998-10-05 02:48:49 +00:00
Tom Lane
22da903a48 Disable doubling of backslashes in PQprint, per discussion
on pgsql-interfaces a couple months ago.
1998-10-04 20:46:39 +00:00
Tom Lane
280acf0904 hash.h's use of BSHIFT conflicts with <sys/param.h> on my
system.  Finally got tired of looking at the compiler warning messages.
BSHIFT isn't all that useful, so I just took out the macro.
1998-10-04 20:19:08 +00:00
Tom Lane
3512284bda Our 'install-sh' script is BSD-style, therefore requires -c
to behave sanely.  configure was not treating it as BSD...
1998-10-04 18:28:10 +00:00
Bruce Momjian
10d987c709 Add includes for prototypes for new IP type. 1998-10-04 16:24:32 +00:00
Bruce Momjian
18af384bb7 Unixware patches from Billy G. Allie. 1998-10-04 15:38:58 +00:00
Bruce Momjian
a593107d9e Add prototype include to inet types. 1998-10-04 15:35:12 +00:00
Bruce Momjian
f5a219204b Remove u_int32_t 1998-10-04 15:31:09 +00:00
Bruce Momjian
3f8bc47d6a cnf'ify cleanup 1998-10-04 03:30:56 +00:00
Bruce Momjian
2d69fd90b9 Integrate new IP type from Tom Ivar Helbekkmo. 1998-10-03 05:41:01 +00:00
Thomas G. Lockhart
607cd930d5 Changes from Michael Meskes:
Check strdup calls for out of memory.
Set library version to 2.6.2
Synced preproc.y and keywords.c with gram.y and keywords.c yet again.
Set version to 2.4.3
1998-10-03 02:33:51 +00:00
Thomas G. Lockhart
cbfc9ec6ca Update for newest changes. 1998-10-03 02:30:47 +00:00
Bruce Momjian
e5a8da02c2 Please apply the patch at the end. Disables use of system
columns of views at all (not only oid, cmin etc. too).
    pgsql=> select cmin from pg_rules;
    ERROR:  system column cmin not available - pg_rules is a view
    pgsql=> select * from pg_rules where pg_rules.oid = pg_class.oid;
    ERROR:  system column oid not available - pg_rules is a view
    pgsql=>

Jan
1998-10-02 21:53:39 +00:00
Thomas G. Lockhart
2da5e598e6 Obsolete information completely superceded by the sgml sources.
These weren't really "man page"-ish anyway, and I've verified that
 all information in them has moved to the newer sources.
1998-10-02 16:46:34 +00:00
Thomas G. Lockhart
9601964773 Surround all identifiers with double quotes.
Formerly did so only for those which clearly required it, but that
 would still miss things like reserved key words which also require it.
Implement the "-n" switch to revert the double quote behavior
 to put DQs only where there is more than lower-case, digits,
 and underscores.
1998-10-02 16:43:41 +00:00
Bruce Momjian
f93b6974f9 Here's a combination of all the patches I'm currently waiting
for against a just updated CVS tree. It contains

        Partial new rewrite system that handles subselects,  view
        aggregate  columns, insert into select from view, updates
        with set col = view-value and select rules restriction to
        view definition.

        Updates  for  rule/view  backparsing utility functions to
        handle subselects correct.


        New system views pg_tables and pg_indexes (where you  can
        see the complete index definition in the latter one).

        Enabling array references on query parameters.

        Bugfix for functional index.

        Little changes to system views pg_rules and pg_views.


    The rule system isn't a release-stopper any longer.

    But  another  stopper  is  that  I  don't  know if the latest
    changes to PL/pgSQL (not already in CVS) made it  compile  on
    AIX. Still wait for some response from Dave.

Jan
1998-10-02 16:28:04 +00:00
Bruce Momjian
9b21a18cee the following little patch adds array references to query
parameters. With it applied a function like

    CREATE FUNCTION getname(oid8, int4) RETURNS name AS
        'SELECT typname FROM pg_type WHERE oid = $1[$2]'
        LANGUAGE 'sql';

    is possible. Mainly I need this to enable array references in
    expressions for PL/pgSQL. Complete regression test ran O.K.

Jan
1998-10-02 16:23:07 +00:00
Bruce Momjian
772a596ed2 Summary
The ident() function in src/backend/libpq/hba.c doesn't cope when
postmaster is contacted on an IP alias. This patch fixes it.

 Malcolm Beattie
1998-10-02 16:18:20 +00:00
Bruce Momjian
9b7c6ee00b Fixes for Irix from Robert Bruccoleri 1998-10-02 15:38:04 +00:00
Bruce Momjian
731ea8076f Here's the new diff for getting the NS32K assembly code into the
spin-locks.  Notice that it's now inline assembler in s_lock.h,
rather than seperate code in s_lock.c.  It also shrank a little
bit...  Just rip out the S_LOCK() define and insert the tas() inline
function.  Please let me know if there are any problems with it.

Jon Buller
1998-10-02 15:23:08 +00:00
Bruce Momjian
744c3cd271 regproc cleanups 1998-10-02 05:31:28 +00:00
Bruce Momjian
290428dd30 Fix for regproc so proc name can be supplied if unique, if not, oid. 1998-10-02 05:10:11 +00:00
Tom Lane
820f9f8be8 Fix potential coredump in pg_conndefaults (assigning constant string
to a field that will get free'd).  Also make it robust in cases where
values contain Tcl special characters.
1998-10-02 01:37:17 +00:00
Bruce Momjian
3f2fff5c5d Search contrib/tcl for tcl startup. 1998-10-02 01:22:43 +00:00
Tom Lane
e12f4162c3 Clean up some minor bugs concerning what was inside the main loop
and what wasn't.  Also try to improve the comments so that doesn't happen
again.  Changed SIGPIPE handling to SIG_IGN so that if frontend quits,
we will finish out the current command and return to main loop before
quitting.  This seems much safer than a forced abort mid-command.
1998-10-02 01:14:14 +00:00
Bruce Momjian
c17b2d1b16 Fix for constbyval. 1998-10-01 22:51:22 +00:00
Bruce Momjian
33572dd7ed Fix for constbyval . 1998-10-01 22:45:32 +00:00
Marc G. Fournier
2074b5f1ad failed to add some of Jan's files :( 1998-10-01 03:38:45 +00:00
Tom Lane
d33bbb5b1f Get rid of some long-dead code that thinks NOTIFY is passed to the
planner/optimizer/executor.  It isn't.
Besides, most of the removed code consists of comments about how
it's not right.
1998-10-01 02:04:01 +00:00
Tom Lane
92edd4233e Make HP-PA S_UNLOCK a little faster and less dependent on unspecified compiler codegen details.
Make default S_LOCK macro more robust against syntax mistakes.
(I cleared these changes with David Gould a few days ago.)
1998-10-01 01:53:50 +00:00
Tom Lane
0d1aa5ac52 pg_dump -z was careless about ownership of indexes.
Now it's a little less so.
1998-10-01 01:49:12 +00:00
Tom Lane
f447344003 Simplify pg_result by using new libpq PQresultErrorMessage;
fix some memory leaks in pg_select.
1998-10-01 01:45:38 +00:00
Tom Lane
6428074e27 Update libpq to store an error message in PGresult, per pgsq-interfaces discussion of 21-Sep. 1998-10-01 01:40:26 +00:00
Tom Lane
502769d0de Change HPUX loader flags to trap null pointer derefs 1998-10-01 01:26:45 +00:00
Thomas G. Lockhart
9bb7096bcd Update to track newest gram.y. 1998-09-30 05:48:28 +00:00
Thomas G. Lockhart
c683abb1f0 Add as many keywords as possible to column identifier or label lists.
Add "timestamp" to list of tokens in keywords.c.
 Before, TIMESTAMP WITH TIME ZONE did not actually parser.
Reorder token lists to be more alphabetical.
Remove ARCHIVE keyword which was deprecated in v6.3.
1998-09-30 05:47:57 +00:00
Thomas G. Lockhart
96273049e9 Message changed slightly since "rename" is now allowed as a column name. 1998-09-30 05:43:23 +00:00
Marc G. Fournier
44e01bf992 From: Jan Wieck <jwieck@debis.com>
here  is  the  patch  that  includes  PL/pgSQL into the build
    (currently with make errors ignored) and  adds  a  regression
    test for it. A clean build and regression ran fine here.

    Can you please apply it?

    The  tar  should  be  extracted  in  /usr/local/src/pgsql and
    creates the following files:

    src/pl/Makefile
            called by toplevel GNUmakefile and for now only calls
            src/pl/plpgsql/Makefile

    src/pl/plpgsql/Makefile
            calls  src/pl/plpgsql/src/Makefile  (here the call to
            make ignores build errors  -  this  must  be  changed
            later for the final release).

    src/test/regress/input/install_plpgsql.source
            SQL script installing PL/pgSQL language in regression
            database. Will be modified by  .../input/Makefile  to
            point  to  correct  PGLIB  directory where plpgsql.so
            gets installed.

    src/test/regress/output/install_plpgsql.source
            expected output for installation script.

    src/test/regress/sql/plpgsql.sql
            the main regression  test.  It  tests  functions  and
            triggers written in PL/pgSQL including views that use
            supportfunctions in this language.

    src/test/regress/expected/plpgsql.out
            the expected output for the above regression test.

    make_plpgsql.diff
            patch that adds some lines to

            src/GNUmakefile.in
            src/test/regress/expected/Makefile
            src/test/regress/input/Makefile
            src/test/regress/output/Makefile
            src/test/regress/sql/Makefile
            src/test/regress/sql/tests
1998-09-29 12:43:05 +00:00
Edmund Mergl
376fbadbd2 pgsql_perl5-1.8.0 1998-09-27 19:12:35 +00:00
Bruce Momjian
bd041d82bf multi-byte fix from Tatsuo Ishii 1998-09-25 15:51:02 +00:00
Bruce Momjian
d73f73af6e Add new Makefile from Jan. 1998-09-25 15:50:02 +00:00
Thomas G. Lockhart
734d44988a Bracket filename in LOAD error message with single quotes
to clarify actual path used.
1998-09-25 13:47:27 +00:00
Thomas G. Lockhart
d76b4069ad Update to track gram.y.
Had removed PARSEDEBUG statements...
1998-09-25 13:45:12 +00:00
Thomas G. Lockhart
4327a3675f Clean up existing debugging print statements.
Modify comment blocks to insulate from pgindent.
1998-09-25 13:38:32 +00:00
Thomas G. Lockhart
ee88006cf2 Clean up code in analyze.c for SERIAL data type.
Remove _all_ PARSEDEBUG print statements.
1998-09-25 13:36:08 +00:00
Bruce Momjian
2df1465757 Fix comment for regproc. 1998-09-25 03:36:33 +00:00
Bruce Momjian
f52e7346ea MB patches from Tatsuo Ishii 1998-09-25 01:46:25 +00:00
Bruce Momjian
31fea9777f Fix for datetime from Tatsuo Ishii 1998-09-23 17:51:46 +00:00
Bruce Momjian
b9f16535a4 Fix for oidArray from Christopher Oliver. 1998-09-23 17:50:12 +00:00
Bruce Momjian
b932b1b1c4 Allow 8-key indexes. 1998-09-23 04:22:14 +00:00
Marc G. Fournier
747e19aa6c Add in, I think, support for %lld in snprintf(), specifically with
Irix in mind...
1998-09-23 03:11:24 +00:00
Bruce Momjian
3ce8a1b4ba Fix for SELECT NOT boolfield FROM table 1998-09-22 21:48:27 +00:00
Bruce Momjian
a3c5a3cb2f Cleanup for oid8[] from Tatsuo Ishii. 1998-09-22 20:28:15 +00:00
Bruce Momjian
738dc876ed Here are some patches to fix up the regression tests so that the union
test passes.  Interestingly, the fix involves no changes or special
cases in the union test and actually removes a special case for the
numerology test.  Thus, following the strategy outlined below is a
definite improvement over the previous situation.

Cheers,
Brook
1998-09-22 16:52:59 +00:00
Bruce Momjian
ba0abfdecc Add .h to string include. 1998-09-22 16:41:19 +00:00
Bruce Momjian
748e300317 Fix for AND/OR handling. 1998-09-21 15:41:28 +00:00
Marc G. Fournier
bf395e895b From: Michael Meskes <meskes@usa.net>
+ Mon Aug 31 09:40:04 CEST 1998
+
+       - Minor patch to Makefile
+       - Put pgc.l in sync with scan.l
+
+ Tue Sep  1 11:31:05 CEST 1998
+
+       - Fixed another bug in preproc.y
+
+ Thu Sep  3 12:21:16 CEST 1998
+
+       - Sync preproc.y with gram.y
+
+ Mon Sep 14 09:21:02 CEST 1998
+
+       - Sync preproc.y with gram.y yet again
+
+ Thu Sep 17 08:55:33 CEST 1998
+
+       - Synced preproc.y and gram.y one more time
+
+ Thu Sep 17 19:23:24 CEST 1998
+
+       - Added missing ´;´ in preproc.y
+       - Set version to 2.4.2
1998-09-21 05:52:55 +00:00
Bruce Momjian
25a64f7519 Fix for \z formatting from Tom Lane. 1998-09-21 02:25:29 +00:00
Bruce Momjian
4b048fbfaa This patch covers several to-do items that I had for libpgtcl:
* It works under both Tcl 7.6 and Tcl 8.0 now.  (The code claims to
  work under Tcl 7.5 as well, but I have no way to test that ---
  if anyone still cares, please check it with 7.5.)

* pg_listen suppresses extra LISTEN commands and correctly sends an
  UNLISTEN when the last listen request for a relation is cancelled.
  (Note this means it will not work with pre-6.4 backends, but that
  was true already because it depends on the current libpq, which
  only speaks protocol 2.0.)

* Added -error option to pg_result so that there's some way to find
  out what you did wrong ;-)

* Miscellaneous cleanups of code comments and overenthusiastic #includes.

BTW, I bumped the package version number from 1.2 to 1.3.  Is this
premature?  Does someone run around and do that routinely before
each pgsql release?

			regards, tom lane
1998-09-21 01:02:04 +00:00
Bruce Momjian
b0297d806b autoconf 1998-09-20 05:01:04 +00:00
Bruce Momjian
a186b57bff Fix for memory leak, configure path fix, from Tom Lane. 1998-09-20 04:57:40 +00:00
Bruce Momjian
aa158a746c Fix memory leak from Tom Lane. 1998-09-20 04:51:12 +00:00
Bruce Momjian
3ac9688ae8 I also noticed that pg_dump contains a copy of the same
prompt_for_password code that psql does.  We fixed psql a month or
two back to permit usernames and passwords longer than 8 characters.
I propagated the same fix into pg_dump.

Tom Lane
1998-09-20 03:18:43 +00:00
Bruce Momjian
087eb4cd1a Regression test cleanup. 1998-09-18 21:47:27 +00:00
Bruce Momjian
4a9da7e5c4 NS32K lock patch reversed. 1998-09-18 17:18:41 +00:00
Bruce Momjian
1202ab259a Fixes for VC and libpq.
Magnus Hagander
1998-09-18 16:46:07 +00:00
Bruce Momjian
33554989c0 Fix for NS32K machine. 1998-09-18 05:36:24 +00:00
Bruce Momjian
0498b6a487 fix for aix snprintf 1998-09-18 05:20:22 +00:00
Bruce Momjian
62bc4de45b Remove /usr/local/* from templates. 1998-09-18 05:00:52 +00:00
Bruce Momjian
0fc8bce760 Fix for \df. 1998-09-18 04:43:20 +00:00
Bruce Momjian
b68d690dd3 New gram.c 1998-09-18 03:02:47 +00:00
Thomas G. Lockhart
5a68fd56cd Consolidate Jan's rules test into one file.
Remove dependency on a specific Postgres user name in the results
 (Check result against CURRENT_USER with a boolean instead).
1998-09-16 14:35:37 +00:00
Thomas G. Lockhart
20693de474 Support specifying PRIMARY KEY for the SERIAL type.
Change DEFAULT NULL to send back a NULL pointer
 rather than a string "NULL". This seems to work, where sending
 the string led to type conversion problems (and probably the wrong
 thing anyway).
1998-09-16 14:29:35 +00:00
Thomas G. Lockhart
7c30ac961f Support specifying PRIMARY KEY for the SERIAL type.
Check for a constraint if is_sequence is set and omit making
 a UNIQUE index if so, since the primary key will cover that for us.
1998-09-16 14:25:37 +00:00
Thomas G. Lockhart
198bcef025 Use oper_select_candidate() for unary operators
rather than func_select_candidate().
Fix oper_select_candidate() to work with a single operator argument.
Repair left operator checking for null return from candidate list.
1998-09-16 14:22:22 +00:00
Marc G. Fournier
672bc164ce Forgot to remove README-1ST from the repository ... 1998-09-15 02:25:09 +00:00
Marc G. Fournier
b97a227777 Change order of install...installing interfaces is the last to be done,
as, if not installing as root (which nobody *should* be doing, of course),
the perl install fails, which means that both bin and man directories
are not installed :(

This way, only thing that doesn't get installed is perl interface...
1998-09-14 04:17:40 +00:00
Bruce Momjian
3700981108 Add new make_oidjoin_check utility and template1_check.sql. Fix some
pg_operator problems.
1998-09-14 01:14:49 +00:00
Thomas G. Lockhart
f1bcb171e8 Remove remnant from obsolete char16 data type. 1998-09-13 14:29:06 +00:00
Thomas G. Lockhart
8ee1c1936c Update to new DECLARE and FETCH features in gram.y. 1998-09-13 04:20:16 +00:00
Thomas G. Lockhart
f16f35a0f8 Support SQL92-ish DECLARE and FETCH commands.
Adds a few new keywords, but all are allowed as column names etc.
1998-09-13 04:19:33 +00:00
Bruce Momjian
af8e2760ba Here are some additional patches needed to get the UnixWare 7 C++
compiler to
attempt to compile libpq++.  The patches address the following problems:

1.  In my first pass at changing the libpq++ makefile, I forgot to
include the
    PORTNAME in the Makefile.in file.

2.  The UnixWare 7 C++ compiler did not like the '-K alloca' option in
CXXFLAGS.

Billy G. Allie
1998-09-13 04:00:44 +00:00
Bruce Momjian
bcb51fc916 rename java file for Peter. 1998-09-12 17:26:04 +00:00
Bruce Momjian
6ee06b0fd3 Irix lock fix from Robert Bruccoleri 1998-09-12 16:07:53 +00:00
Bruce Momjian
786b1802c8 The pg_atoi() function uses strtol() to convert the string to numbers. Some
implementations of strtol() treat empty strings ("") as invalid arguments
while others convert this (erroneously, IHMO) to zero (0).  Assuming that the
expected behaviour of pg_atoi() is to return 0 if it is passed an empty
string, I am supplying the following patch to explictly check for an empty
string in pg_atoi() and return 0 if the string is empty.  The patch will also
trap a NULL character pointer being passed to pg_atoi() and will use elog() to
print out an error message if the input char pointer is NULL.


Billy G. Allie
1998-09-12 16:04:35 +00:00
Bruce Momjian
5f7fb67789 autoconf 1998-09-11 17:21:20 +00:00
Bruce Momjian
4fc3b068ab Remove lld from LONG LONG name 1998-09-11 17:16:11 +00:00
Bruce Momjian
b3e72e518e autoconf 1998-09-11 17:08:22 +00:00
Bruce Momjian
f1ab71ec5f The attached patches fix the following problems:
1.  The UnixWare tas macro was reformatted (by indent or it like?) which caused
    it to break.  The asm macro construct is very particular about the %mem
    construct -- it has to start in column 1.

2.  When compiling libpq++, g++ was used even if configure found the C++ com-
    piler to be CC.

3.  When compiling libpq++, '-Wno-error' was added to CXXFLAGS, even if the
    compiler wasn't g++.

Billy G. Allie
1998-09-11 16:56:24 +00:00
Bruce Momjian
339d2769a1 autoconf 1998-09-11 16:50:20 +00:00
Bruce Momjian
28834b7226 Remove %qd. 1998-09-11 16:43:26 +00:00