Commit Graph

46076 Commits

Author SHA1 Message Date
Bruce Momjian
fdcf5ff79c Remove comments psql was putting in output, typo's.
psql now returns error from queries and errors files, so ignore return code.
1996-11-14 16:09:28 +00:00
Bruce Momjian
0365c51e30 Overhaul MainLoop input processing for quotes, comments, backslashes. 1996-11-14 16:08:05 +00:00
Bryan Henderson
f64b840387 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.
1996-11-14 10:25:54 +00:00
Marc G. Fournier
7ac541daf1 moved man pages here, as requested by Bryan 1996-11-14 10:18:14 +00:00
Marc G. Fournier
389fe48cbb Removed man pages...moved to src/man
Requested by Bryan
1996-11-14 10:15:16 +00:00
Bryan Henderson
65a10b1be6 Missed this part when I eliminated $(srcdir); src/bin stuff won't compile. 1996-11-14 09:24:39 +00:00
Bryan Henderson
6b135c9391 Use port-protos.h instead of trying to declare random() and srandom()
explicitly.
1996-11-14 08:23:31 +00:00
Bryan Henderson
902d2b8bac Use -Wno-error option only if compiler is gcc. 1996-11-14 07:33:34 +00:00
Bryan Henderson
b4d689070e Use -W options only if compiler is gcc. 1996-11-14 07:19:26 +00:00
Bryan Henderson
200d4a4ec3 Include stdlib.h to gives its NULL, etc. definitions precedence over ours. 1996-11-14 06:06:39 +00:00
Bruce Momjian
25b4ca4284 Added percentage to CASSERT comment. 1996-11-14 00:26:23 +00:00
Marc G. Fournier
07a65b2255 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.
1996-11-13 20:56:15 +00:00
Bryan Henderson
0cec8fe26c Fix syntax error introduced in last update. 1996-11-13 11:43:04 +00:00
Bryan Henderson
b20766ccc4 Eliminate MKDIR, srcdir, objdir. Centralize setting of LIBPQDIR. 1996-11-13 10:36:36 +00:00
Bryan Henderson
fdc1cf2434 Make shared library builds work for BSD44_derived. 1996-11-13 08:36:31 +00:00
Bryan Henderson
b269793975 Forgot in yesterday's make file blitz. 1996-11-13 06:36:38 +00:00
Bryan Henderson
d7dd9295b7 End of the make file simplifications. 1996-11-12 11:43:32 +00:00
Bryan Henderson
594525aec1 Put shared libraries in main directory, not obj/ 1996-11-12 11:41:27 +00:00
Marc G. Fournier
c8708c5f9b Fix for finding the include files 1996-11-12 11:16:44 +00:00
Bryan Henderson
b5499249e5 Quiet compiler warnings. 1996-11-12 11:09:13 +00:00
Bryan Henderson
17befd6c69 Use new utils/version.c instead of backend/utils/init/magic.c. 1996-11-12 06:47:10 +00:00
Bryan Henderson
bbe89089c8 Add dependency for install. 1996-11-12 06:11:52 +00:00
Bryan Henderson
f45b50cfe0 Add install dependency. 1996-11-12 06:10:10 +00:00
Bryan Henderson
4f1e59f72b Fix bug where it tries to do a cleardbdir when you make install. 1996-11-12 02:54:30 +00:00
Marc G. Fournier
c7ce63e04c Add include file postgres.h 1996-11-11 16:33:12 +00:00
Marc G. Fournier
39b4a0505f Add a blank install target so that 'make install' works 1996-11-11 16:30:07 +00:00
Marc G. Fournier
64f80c76d8 fix 'conflicting types' errors 1996-11-11 14:55:49 +00:00
Marc G. Fournier
b99e3b0ccc Add missing include errno.h 1996-11-11 14:44:04 +00:00
Bryan Henderson
b0961b3974 Goes with the recently added src/utils/version.c, will replace some stuff in
miscadmin.h.
1996-11-11 14:24:38 +00:00
Bruce Momjian
a157098f7c Fixed double pfree on opaque. 1996-11-11 14:02:10 +00:00
Bryan Henderson
bf80f41ec1 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).
1996-11-11 13:51:57 +00:00
Bryan Henderson
6f708e42d1 Makefile simplification: the "bin" chapter 1996-11-11 13:41:36 +00:00
Bryan Henderson
a7511908e1 Add DASH_N, BACKSLASH_C variables, moved from postgres.shell.mk. 1996-11-11 13:24:43 +00:00
Marc G. Fournier
58413fd9fc -----
|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
1996-11-11 12:19:05 +00:00
Marc G. Fournier
41b8c2c849 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)
1996-11-11 12:16:57 +00:00
Marc G. Fournier
2bdded3540 Various cleanups from D'Arcy 1996-11-11 12:14:45 +00:00
Marc G. Fournier
6913c8b4a4 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...
1996-11-11 11:49:40 +00:00
Marc G. Fournier
9fc64aefe1 change include c.h to postgres.h 1996-11-11 11:29:15 +00:00
Bruce Momjian
42a344683a Remove warnings when readline is not used. 1996-11-11 05:55:33 +00:00
Bruce Momjian
13d44b4aac Warning removal cleanup 1996-11-11 04:54:54 +00:00
Bruce Momjian
8d9be647dc Moved -Werror to COPT. 1996-11-11 03:12:00 +00:00
Bruce Momjian
1a5b4b9ffe Removed -Wmissing-declaration. 1996-11-10 17:35:58 +00:00
Bryan Henderson
60915ed2c2 Change gmake to $(MAKE) so backend compiles on system with no "gmake". 1996-11-10 04:09:51 +00:00
Bruce Momjian
77f8dff617 prototype cleanup 1996-11-10 03:30:46 +00:00
Bryan Henderson
08029facb3 Recognize dependencies more reliably. 1996-11-10 03:13:59 +00:00
Bruce Momjian
aaeef4d17d All external function definitions now have prototypes that are checked. 1996-11-10 03:06:38 +00:00
Bryan Henderson
bf5cbbf789 Quiet compiler warnings. 1996-11-10 02:27:15 +00:00
Bryan Henderson
2e21b7e4bc Add #include <ctype.h> to quiet compiler about missing declaration of isspace(). 1996-11-10 01:46:14 +00:00
Bryan Henderson
9f1b6bf7db Add #include <unistd.h> to quiet compiler warning about missing getopt() declaratoin. 1996-11-10 01:37:48 +00:00
Bryan Henderson
4e70c05979 Add #include <unistd.h> to quiet warning about missing getopt() declaration. 1996-11-10 01:35:39 +00:00