OSDN Git Service

pg-rex/syncrep.git
27 years agoChanged " to '. Removed bug section from psql. added reminder for log call
Bruce Momjian [Fri, 15 Nov 1996 17:55:31 +0000 (17:55 +0000)]
Changed " to '.  Removed bug section from psql.  added reminder for log call
in built-in.  fixed backslases in source for libpq.

27 years agoMulitple inclusion of sys/socket.h
Marc G. Fournier [Fri, 15 Nov 1996 09:54:28 +0000 (09:54 +0000)]
Mulitple inclusion of sys/socket.h

Pointed out by: Erik Bertelsen <erik@sockdev.uni-c.dk>

27 years agoFeatures added:
Marc G. Fournier [Thu, 14 Nov 1996 21:39:14 +0000 (21:39 +0000)]
Features added:

* Wrote max(date) and min(date) aggregates
* Wrote operator "-" for date; date - date yields number of days
  difference
* Wrote operator+(date,int) and operator-(date,int); the int is the
  number of days.  Each operator returns a new date.

By: Tom Tromey <tromey@creche.cygnus.com>

27 years agoBring in Randy's NOROOT patch
Marc G. Fournier [Thu, 14 Nov 1996 20:49:09 +0000 (20:49 +0000)]
Bring in Randy's NOROOT patch

27 years agoFix a comment...was going to fix the <sys/types.h> problem, but
Marc G. Fournier [Thu, 14 Nov 1996 20:27:06 +0000 (20:27 +0000)]
Fix a comment...was going to fix the <sys/types.h> problem, but
Randy is submitting a more comprehensive patch :)

27 years agoCouple of Ultrix4 related patches submited by:
Marc G. Fournier [Thu, 14 Nov 1996 20:08:58 +0000 (20:08 +0000)]
Couple of Ultrix4 related patches submited by:
Erik Bertelsen <erik@sockdev.uni-c.dk>

27 years agoFix a comment that wasn't commente'd out
Marc G. Fournier [Thu, 14 Nov 1996 20:06:39 +0000 (20:06 +0000)]
Fix a comment that wasn't commente'd out

Pointed out by: Erik Bertelsen <erik@sockdev.uni-c.dk>

27 years agoRemove comments psql was putting in output, typo's.
Bruce Momjian [Thu, 14 Nov 1996 16:09:28 +0000 (16:09 +0000)]
Remove comments psql was putting in output, typo's.
psql now returns error from queries and errors files, so ignore return code.

27 years agoOverhaul MainLoop input processing for quotes, comments, backslashes.
Bruce Momjian [Thu, 14 Nov 1996 16:08:05 +0000 (16:08 +0000)]
Overhaul MainLoop input processing for quotes, comments, backslashes.

27 years agoRemove most compile-time options, add a few runtime options to make up for it.
Bryan Henderson [Thu, 14 Nov 1996 10:25:54 +0000 (10:25 +0000)]
Remove most compile-time options, add a few runtime options to make up for it.
In particular, no more compiled-in default for PGDATA or LIBDIR.  Commands
that need them need either invocation options or environment variables.
PGPORT default is hardcoded as 5432, but overrideable with options or
environment variables.

27 years agomoved man pages here, as requested by Bryan
Marc G. Fournier [Thu, 14 Nov 1996 10:18:14 +0000 (10:18 +0000)]
moved man pages here, as requested by Bryan

27 years agoRemoved man pages...moved to src/man
Marc G. Fournier [Thu, 14 Nov 1996 10:15:16 +0000 (10:15 +0000)]
Removed man pages...moved to src/man

Requested by Bryan

27 years agoMissed this part when I eliminated $(srcdir); src/bin stuff won't compile.
Bryan Henderson [Thu, 14 Nov 1996 09:24:39 +0000 (09:24 +0000)]
Missed this part when I eliminated $(srcdir); src/bin stuff won't compile.

27 years agoUse port-protos.h instead of trying to declare random() and srandom()
Bryan Henderson [Thu, 14 Nov 1996 08:23:31 +0000 (08:23 +0000)]
Use port-protos.h instead of trying to declare random() and srandom()
explicitly.

27 years agoUse -Wno-error option only if compiler is gcc.
Bryan Henderson [Thu, 14 Nov 1996 07:33:34 +0000 (07:33 +0000)]
Use -Wno-error option only if compiler is gcc.

27 years agoUse -W options only if compiler is gcc.
Bryan Henderson [Thu, 14 Nov 1996 07:19:26 +0000 (07:19 +0000)]
Use -W options only if compiler is gcc.

27 years agoInclude stdlib.h to gives its NULL, etc. definitions precedence over ours.
Bryan Henderson [Thu, 14 Nov 1996 06:06:39 +0000 (06:06 +0000)]
Include stdlib.h to gives its NULL, etc. definitions precedence over ours.

27 years agoAdded percentage to CASSERT comment.
Bruce Momjian [Thu, 14 Nov 1996 00:26:23 +0000 (00:26 +0000)]
Added percentage to CASSERT comment.

27 years agoCommit of a *MAJOR* patch from Dan McGuirk <djm@indirect.com>
Marc G. Fournier [Wed, 13 Nov 1996 20:56:15 +0000 (20:56 +0000)]
Commit of a *MAJOR* patch from Dan McGuirk <djm@indirect.com>

Changes:

        * Unique index capability works using the syntax 'create unique
          index'.

        * Duplicate OID's in the system tables are removed.  I put
          little scripts called 'duplicate_oids' and 'find_oid' in
          include/catalog that help to find and remove duplicate OID's.
          I also moved 'unused_oids' from backend/catalog to
          include/catalog, since it has to be in the same directory
          as the include files in order to work.

        * The backend tries converting the name of a function or aggregate
          to all lowercase if the original name given doesn't work (mostly
          for compatibility with ODBC).

        * You can 'SELECT NULL' to your heart's content.

        * I put my _bt_updateitem fix in instead, which uses
          _bt_insertonpg so that even if the new key is so big that
          the page has to be split, everything still works.

        * All literal references to system catalog OID's have been
          replaced with references to define'd constants from the catalog
          header files.

        * I added a couple of node copy functions.  I think this was a
          preliminary attempt to get rules to work.

27 years agoFix syntax error introduced in last update.
Bryan Henderson [Wed, 13 Nov 1996 11:43:04 +0000 (11:43 +0000)]
Fix syntax error introduced in last update.

27 years agoEliminate MKDIR, srcdir, objdir. Centralize setting of LIBPQDIR.
Bryan Henderson [Wed, 13 Nov 1996 10:36:36 +0000 (10:36 +0000)]
Eliminate MKDIR, srcdir, objdir.  Centralize setting of LIBPQDIR.

27 years agoMake shared library builds work for BSD44_derived.
Bryan Henderson [Wed, 13 Nov 1996 08:36:31 +0000 (08:36 +0000)]
Make shared library builds work for BSD44_derived.

27 years agoForgot in yesterday's make file blitz.
Bryan Henderson [Wed, 13 Nov 1996 06:36:38 +0000 (06:36 +0000)]
Forgot in yesterday's make file blitz.

27 years agoEnd of the make file simplifications.
Bryan Henderson [Tue, 12 Nov 1996 11:43:32 +0000 (11:43 +0000)]
End of the make file simplifications.

27 years agoPut shared libraries in main directory, not obj/
Bryan Henderson [Tue, 12 Nov 1996 11:41:27 +0000 (11:41 +0000)]
Put shared libraries in main directory, not obj/

27 years agoFix for finding the include files
Marc G. Fournier [Tue, 12 Nov 1996 11:16:44 +0000 (11:16 +0000)]
Fix for finding the include files

27 years agoQuiet compiler warnings.
Bryan Henderson [Tue, 12 Nov 1996 11:09:13 +0000 (11:09 +0000)]
Quiet compiler warnings.

27 years agoUse new utils/version.c instead of backend/utils/init/magic.c.
Bryan Henderson [Tue, 12 Nov 1996 06:47:10 +0000 (06:47 +0000)]
Use new utils/version.c instead of backend/utils/init/magic.c.

27 years agoAdd dependency for install.
Bryan Henderson [Tue, 12 Nov 1996 06:11:52 +0000 (06:11 +0000)]
Add dependency for install.

27 years agoAdd install dependency.
Bryan Henderson [Tue, 12 Nov 1996 06:10:10 +0000 (06:10 +0000)]
Add install dependency.

27 years agoFix bug where it tries to do a cleardbdir when you make install.
Bryan Henderson [Tue, 12 Nov 1996 02:54:30 +0000 (02:54 +0000)]
Fix bug where it tries to do a cleardbdir when you make install.

27 years agoAdd include file postgres.h
Marc G. Fournier [Mon, 11 Nov 1996 16:33:12 +0000 (16:33 +0000)]
Add include file postgres.h

27 years agoAdd a blank install target so that 'make install' works
Marc G. Fournier [Mon, 11 Nov 1996 16:30:07 +0000 (16:30 +0000)]
Add a blank install target so that 'make install' works

27 years agofix 'conflicting types' errors
Marc G. Fournier [Mon, 11 Nov 1996 14:55:49 +0000 (14:55 +0000)]
fix 'conflicting types' errors

27 years agoAdd missing include errno.h
Marc G. Fournier [Mon, 11 Nov 1996 14:44:04 +0000 (14:44 +0000)]
Add missing include errno.h

27 years agoGoes with the recently added src/utils/version.c, will replace some stuff in
Bryan Henderson [Mon, 11 Nov 1996 14:24:38 +0000 (14:24 +0000)]
Goes with the recently added src/utils/version.c, will replace some stuff in
miscadmin.h.

27 years agoFixed double pfree on opaque.
Bruce Momjian [Mon, 11 Nov 1996 14:02:10 +0000 (14:02 +0000)]
Fixed double pfree on opaque.

27 years agoAdd utils directory for cross-subsystem tools to keep make files from having
Bryan Henderson [Mon, 11 Nov 1996 13:51:57 +0000 (13:51 +0000)]
Add utils directory for cross-subsystem tools to keep make files from having
to be sleazy and reach into other subsystems' directories.  First entry in
this directory is the PG_VERSION file interface, which must be used by the
backend and also the pg_version program (which is used by initdb).

27 years agoMakefile simplification: the "bin" chapter
Bryan Henderson [Mon, 11 Nov 1996 13:41:36 +0000 (13:41 +0000)]
Makefile simplification: the "bin" chapter

27 years agoAdd DASH_N, BACKSLASH_C variables, moved from postgres.shell.mk.
Bryan Henderson [Mon, 11 Nov 1996 13:24:43 +0000 (13:24 +0000)]
Add DASH_N, BACKSLASH_C variables, moved from postgres.shell.mk.

27 years ago-----
Marc G. Fournier [Mon, 11 Nov 1996 12:19:05 +0000 (12:19 +0000)]
-----
|After sending my previous changes I found one more thing in Makefile.global.
|Any tests should be done after including Makefile.custom or else there
|won't be anything, particularly the port name, to base the tests on.
|
-----

more changes to makefile.global from D'Arcy

27 years agoAs proposed,
Marc G. Fournier [Mon, 11 Nov 1996 12:16:57 +0000 (12:16 +0000)]
As proposed,

    following is the patch to libpq's large object interface that
    removes the requirement to  include  fmgr.h  into  fe-lobj.c.
    The  large object interface now ask's the backend to tell the
    OID's of all the required functions in pg_proc.

From: wieck@sapserv.debis.de (Jan Wieck)

27 years agoVarious cleanups from D'Arcy
Marc G. Fournier [Mon, 11 Nov 1996 12:14:45 +0000 (12:14 +0000)]
Various cleanups from D'Arcy

27 years agoAdd an abort() call to ExceptionalCondition so that is Assert is
Marc G. Fournier [Mon, 11 Nov 1996 11:49:40 +0000 (11:49 +0000)]
Add an abort() call to ExceptionalCondition so that is Assert is
called, it dumps core...

ABORT_ON_ASSERT must be defined, as I don't know if this is the correct
way to do this...

27 years agochange include c.h to postgres.h
Marc G. Fournier [Mon, 11 Nov 1996 11:29:15 +0000 (11:29 +0000)]
change include c.h to postgres.h

27 years agoRemove warnings when readline is not used.
Bruce Momjian [Mon, 11 Nov 1996 05:55:33 +0000 (05:55 +0000)]
Remove warnings when readline is not used.

27 years agoWarning removal cleanup
Bruce Momjian [Mon, 11 Nov 1996 04:54:54 +0000 (04:54 +0000)]
Warning removal cleanup

27 years agoMoved -Werror to COPT.
Bruce Momjian [Mon, 11 Nov 1996 03:12:00 +0000 (03:12 +0000)]
Moved -Werror to COPT.

27 years agoRemoved -Wmissing-declaration.
Bruce Momjian [Sun, 10 Nov 1996 17:35:58 +0000 (17:35 +0000)]
Removed -Wmissing-declaration.

27 years agoChange gmake to $(MAKE) so backend compiles on system with no "gmake".
Bryan Henderson [Sun, 10 Nov 1996 04:09:51 +0000 (04:09 +0000)]
Change gmake to $(MAKE) so backend compiles on system with no "gmake".

27 years agoprototype cleanup
Bruce Momjian [Sun, 10 Nov 1996 03:30:46 +0000 (03:30 +0000)]
prototype cleanup

27 years agoRecognize dependencies more reliably.
Bryan Henderson [Sun, 10 Nov 1996 03:13:59 +0000 (03:13 +0000)]
Recognize dependencies more reliably.

27 years agoAll external function definitions now have prototypes that are checked.
Bruce Momjian [Sun, 10 Nov 1996 03:06:38 +0000 (03:06 +0000)]
All external function definitions now have prototypes that are checked.

27 years agoQuiet compiler warnings.
Bryan Henderson [Sun, 10 Nov 1996 02:27:15 +0000 (02:27 +0000)]
Quiet compiler warnings.

27 years agoAdd #include <ctype.h> to quiet compiler about missing declaration of isspace().
Bryan Henderson [Sun, 10 Nov 1996 01:46:14 +0000 (01:46 +0000)]
Add #include <ctype.h> to quiet compiler about missing declaration of isspace().

27 years agoAdd #include <unistd.h> to quiet compiler warning about missing getopt() declaratoin.
Bryan Henderson [Sun, 10 Nov 1996 01:37:48 +0000 (01:37 +0000)]
Add #include <unistd.h> to quiet compiler warning about missing getopt() declaratoin.

27 years agoAdd #include <unistd.h> to quiet warning about missing getopt() declaration.
Bryan Henderson [Sun, 10 Nov 1996 01:35:39 +0000 (01:35 +0000)]
Add #include <unistd.h> to quiet warning about missing getopt() declaration.

27 years agoRemove #include <regex.h> so it compiles on systems with GNU regex library.
Bryan Henderson [Sun, 10 Nov 1996 01:20:44 +0000 (01:20 +0000)]
Remove #include <regex.h> so it compiles on systems with GNU regex library.

27 years agoAdd USE_POSIX_TIME, HAVE_TZSET for Linux so backend compiles.
Bryan Henderson [Sun, 10 Nov 1996 00:50:54 +0000 (00:50 +0000)]
Add USE_POSIX_TIME, HAVE_TZSET for Linux so backend compiles.

27 years agoMake it find inet_aton.h so backend compiles on Solaris.
Bryan Henderson [Sun, 10 Nov 1996 00:38:38 +0000 (00:38 +0000)]
Make it find inet_aton.h so backend compiles on Solaris.

27 years agoAdded in PQconnectdb() function
Marc G. Fournier [Sat, 9 Nov 1996 10:39:54 +0000 (10:39 +0000)]
Added in PQconnectdb() function

Submitted by: wieck@sapserv.debis.de (Jan Wieck)

27 years agovarious docs changes requested by Bryan
Marc G. Fournier [Sat, 9 Nov 1996 10:29:50 +0000 (10:29 +0000)]
various docs changes requested by Bryan

27 years agoMakefile cleanup after reorganization
Bruce Momjian [Sat, 9 Nov 1996 06:24:51 +0000 (06:24 +0000)]
Makefile cleanup after reorganization

27 years agoAdded new include file.
Bruce Momjian [Sat, 9 Nov 1996 05:48:28 +0000 (05:48 +0000)]
Added new include file.

27 years agoA few more sparc_solaris cleanups from keith parks
Marc G. Fournier [Sat, 9 Nov 1996 01:48:32 +0000 (01:48 +0000)]
A few more sparc_solaris cleanups from keith parks

27 years agoFix typo in file name found during install.
Bruce Momjian [Fri, 8 Nov 1996 21:40:11 +0000 (21:40 +0000)]
Fix typo in file name found during install.

27 years agoMore compile cleanups
Bruce Momjian [Fri, 8 Nov 1996 20:46:33 +0000 (20:46 +0000)]
More compile cleanups

27 years agoSomehow PORTNAME keeps getting changed to BSD44_derived :(
Marc G. Fournier [Fri, 8 Nov 1996 07:47:52 +0000 (07:47 +0000)]
Somehow PORTNAME keeps getting changed to BSD44_derived :(

27 years agoChange includes from "" to <>
Marc G. Fournier [Fri, 8 Nov 1996 06:43:28 +0000 (06:43 +0000)]
Change includes from "" to <>

27 years agoFix perbyte_cpu thing
Bryan Henderson [Fri, 8 Nov 1996 06:24:58 +0000 (06:24 +0000)]
Fix perbyte_cpu thing

27 years agoCompile and warning cleanup
Bruce Momjian [Fri, 8 Nov 1996 06:02:30 +0000 (06:02 +0000)]
Compile and warning cleanup

27 years agoquick doc cleanup for libpgtcl from D'Arcy
Marc G. Fournier [Fri, 8 Nov 1996 01:10:15 +0000 (01:10 +0000)]
quick doc cleanup for libpgtcl from D'Arcy

27 years agoSecondly, small problem when trying to create a MAX/MIN aggregate in 1.09.
Marc G. Fournier [Fri, 8 Nov 1996 01:08:37 +0000 (01:08 +0000)]
Secondly, small problem when trying to create a MAX/MIN aggregate in 1.09.

>From the create_aggregate man page...

"The arguments to state-transition-function-1 must be
(stype1,basetype), and its return value must be stype1."

create aggregate MIN (sfunc1 = int2smaller,
                      basetype = int2,
                      stype1 = int2);

will fail becase int2smaller and int2larger are in pg_proc
as returning an int4.  Can't happen since both args have to
be int2.

From: Darren King <aixssd!ceodev!darrenk@abs.net>

27 years agoAnother patch to quiet the compiler from D'Arcy
Marc G. Fournier [Fri, 8 Nov 1996 00:59:10 +0000 (00:59 +0000)]
Another patch to quiet the compiler from D'Arcy

27 years agoThere is a problem in the Makefile of libpgtcl on linux (and maybe also on
Marc G. Fournier [Fri, 8 Nov 1996 00:58:07 +0000 (00:58 +0000)]
There is a problem in the Makefile of libpgtcl on linux (and maybe also on
other platforms).  If I do the standard make + make install the shared library
is not linked with the the libpq library and when I try to load it in the
standard Tcl or Tk shell I get a lot of unresolved symbols.  The bug doesn't
affect pgtclsh because it is linked also with libpq. The problem exists only
when using the dynamic load feature of Tcl7.5.

From: Massimo Dal Zotto <dz@cs.unitn.it>

27 years agoAdd some missing includes
Marc G. Fournier [Fri, 8 Nov 1996 00:56:17 +0000 (00:56 +0000)]
Add some missing includes

From: Randy Terbush <randy@zyzzyva.com>

27 years agoD'Arcy's recent cleanups
Marc G. Fournier [Fri, 8 Nov 1996 00:46:14 +0000 (00:46 +0000)]
D'Arcy's recent cleanups

27 years agoCleanup initdb for 1.*.
Bruce Momjian [Thu, 7 Nov 1996 15:24:27 +0000 (15:24 +0000)]
Cleanup initdb for 1.*.

27 years agoTry to fix mode.
Bryan Henderson [Thu, 7 Nov 1996 05:15:31 +0000 (05:15 +0000)]
Try to fix mode.

27 years agoTry to fix mode.
Bryan Henderson [Thu, 7 Nov 1996 05:10:17 +0000 (05:10 +0000)]
Try to fix mode.

27 years agoUpdate initdb instructions for a 1.* database.
Bruce Momjian [Wed, 6 Nov 1996 22:34:18 +0000 (22:34 +0000)]
Update initdb instructions for a 1.* database.

27 years agoChange instructions for 1.*.
Bruce Momjian [Wed, 6 Nov 1996 22:32:18 +0000 (22:32 +0000)]
Change instructions for 1.*.

27 years agoAnother directory that compiles with no errors, and few warnings
Marc G. Fournier [Wed, 6 Nov 1996 10:32:10 +0000 (10:32 +0000)]
Another directory that compiles with no errors, and few warnings

27 years agoOkay...this pretty much cleans out the include files.
Marc G. Fournier [Wed, 6 Nov 1996 10:31:02 +0000 (10:31 +0000)]
Okay...this pretty much cleans out the include files.

I'm able to get through a 'make' of the backend with no errors except
the occasional 'might not be initialized error', which is nothing major,
just annoying.

Have a few patches from D'Arcy to incorporate, but am waiting until I can
get a clean compile first, which I'm hoping to have before bed, or sometime
tomorrow.

27 years agoMake sure that #include <postgres.h> is included in fmgrtab.c
Marc G. Fournier [Wed, 6 Nov 1996 10:22:13 +0000 (10:22 +0000)]
Make sure that #include <postgres.h> is included in fmgrtab.c

27 years agoAdd prototype for: int DebugFileOpen()
Marc G. Fournier [Wed, 6 Nov 1996 10:15:25 +0000 (10:15 +0000)]
Add prototype for: int DebugFileOpen()

27 years ago...same...
Marc G. Fournier [Wed, 6 Nov 1996 09:56:47 +0000 (09:56 +0000)]
...same...

27 years agoMore files cleaned out
Marc G. Fournier [Wed, 6 Nov 1996 09:29:26 +0000 (09:29 +0000)]
More files cleaned out

27 years agoOne by one, file by file
Marc G. Fournier [Wed, 6 Nov 1996 09:27:29 +0000 (09:27 +0000)]
One by one, file by file

27 years agoAnother
Marc G. Fournier [Wed, 6 Nov 1996 09:24:57 +0000 (09:24 +0000)]
Another

27 years agoGetting there, one by one...
Marc G. Fournier [Wed, 6 Nov 1996 09:21:42 +0000 (09:21 +0000)]
Getting there, one by one...

27 years agoAnd another
Marc G. Fournier [Wed, 6 Nov 1996 09:19:16 +0000 (09:19 +0000)]
And another

27 years agoanother one bites the dust
Marc G. Fournier [Wed, 6 Nov 1996 09:17:31 +0000 (09:17 +0000)]
another one bites the dust

27 years agoJust a couple of small mods
Marc G. Fournier [Wed, 6 Nov 1996 08:54:17 +0000 (08:54 +0000)]
Just a couple of small mods

27 years agoanother gone
Marc G. Fournier [Wed, 6 Nov 1996 08:52:04 +0000 (08:52 +0000)]
another gone

27 years agoI'm getting there, slowly :)
Marc G. Fournier [Wed, 6 Nov 1996 08:48:33 +0000 (08:48 +0000)]
I'm getting there, slowly :)

27 years agoSlowly getting faster to make sure it compiles...still needs cleaning
Marc G. Fournier [Wed, 6 Nov 1996 08:27:16 +0000 (08:27 +0000)]
Slowly getting faster to make sure it compiles...still needs cleaning
up, but one thing at a time :)

27 years agoClean it up so that it compiles
Marc G. Fournier [Wed, 6 Nov 1996 08:21:43 +0000 (08:21 +0000)]
Clean it up so that it compiles

27 years agoAnother one cleaned up
Marc G. Fournier [Wed, 6 Nov 1996 08:07:45 +0000 (08:07 +0000)]
Another one cleaned up

27 years agoOops, two includes unrequired
Marc G. Fournier [Wed, 6 Nov 1996 08:05:02 +0000 (08:05 +0000)]
Oops, two includes unrequired