Commit Graph

749 Commits

Author SHA1 Message Date
Bryan Henderson
1d84088f50 Go back to $(postconfig...) from $(exec postconfig...) so it works on non-bash. 1996-11-25 05:51:50 +00:00
Bruce Momjian
6c2925b884 Prevent empty queries from crashing server. 1996-11-25 03:03:48 +00:00
Bryan Henderson
02db1f58cb Fix access through null pointer info->rule_action. Thanks Darren King. 1996-11-24 05:58:57 +00:00
Bryan Henderson
9602150a04 Fix syntax error: missing argument to elog(). Thanks Darren King. 1996-11-24 05:46:12 +00:00
Bryan Henderson
092c7a6be5 Typecasts, etc. to make compile work on AIX. Thanks Darren King.. 1996-11-24 04:44:24 +00:00
Bryan Henderson
d3f9d6ad4f Move include of signal.h inside pqsignal.h so it's always where it's needed. 1996-11-24 04:07:17 +00:00
Bryan Henderson
7e499bd112 Add dep: rule. 1996-11-24 03:55:19 +00:00
Bryan Henderson
5c410fa0b9 First pass at getting shared libraries on AIX properly built. 1996-11-23 09:51:57 +00:00
Bryan Henderson
45f1d32bf1 Eliminate pesky "postconfig not found" message. 1996-11-23 09:42:51 +00:00
Bruce Momjian
eda3771290 Fix for \g strdup error. 1996-11-22 06:45:14 +00:00
Bryan Henderson
25fe3c7098 Include ctype.h to fix Kurt Lidl's compile problem. 1996-11-22 04:43:48 +00:00
Bryan Henderson
4da9c597af Include stdio.h to fix Craig Anderson's compile problem. 1996-11-22 04:39:53 +00:00
Bryan Henderson
86ab9a5118 Fix bug: No -D option to postgres 1996-11-22 04:33:34 +00:00
Bryan Henderson
e67cc8a346 Fix bug: -D options implies -d option. 1996-11-22 04:32:41 +00:00
Vadim B. Mikheev
8c2f099ab5 Fix memory overhelding while forming index' result:
memory allocation for ItemPointerData of heap' tuple is useless
because of FormRetrieveIndexResult makes neccessary palloc.
1996-11-21 06:13:43 +00:00
Vadim B. Mikheev
5d7e44fc8e Fix memory overhelding while forming index' result:
memory allocation for ItemPointerData of heap' tuple is useless

because of FormRetrieveIndexResult makes neccessary palloc.
1996-11-21 06:06:52 +00:00
Vadim B. Mikheev
05b3b8613d Fix memory overhelding while forming index' result:
memory allocation for ItemPointerData of heap' tuple is useless
because of FormRetrieveIndexResult makes neccessary palloc.
1996-11-21 06:02:56 +00:00
Bruce Momjian
58802bf39a Can't add a keyword without making it a keyword. :-)
D'Arcy J.M. Cain                           |  Democracy is three wolves
1996-11-20 22:58:22 +00:00
Bruce Momjian
cd743f8388 Otherwise "gmake install" fails.
D'Arcy J.M. Cain                           |  Democracy is three wolves
1996-11-20 22:53:49 +00:00
Bruce Momjian
c4d6bda2c5 There is a bug in aclinsert3 in the code which update the acl arrays.
When an acl item is added or updated the new entry is deleted if it has no
permissions and the acl array is shrinked. This is is done by decrementing
the number of items without updating the corresponding array size.
The array with the incorrect size is later read by pg_aclcheck and the entry
count is used to allocate a new array while the array size is used to copy
the old one. This causes a memory corruption and a backend crash.
This happens only to normal user as the administrator bypasses acl checks.
Massimo Dal Zotto
1996-11-20 22:53:10 +00:00
Bruce Momjian
8299e75577 following is a little fix for libpq.
PQexec  handles  the possibility of multiple results from one
    query by simply submitting an empty  query  after  the  first
    result and waiting for an 'I' message.

    Rules  can  generate  errors with transaction abort after the
    first 'C' message was recieved (e.g. if a C-language function
    used  in  a rule calls elog(WARN, ...)). Thus we have to look
    for.

Jan(wieck@sapserv.debis.de)
1996-11-20 22:35:19 +00:00
Bruce Momjian
6399c74f17 Fix \g filename. Free allocated memory and don't use memory that has
been freed.
1996-11-20 22:34:36 +00:00
Bruce Momjian
9d45f22e38 Here is the patch for pg_dump not handling NULL values in 'insert'
mode properly.  This will apply correctly to 1.09 & 2.0 sources.
From David H. Bennett
1996-11-20 22:32:55 +00:00
Bruce Momjian
bdb25dbad6 Fix for man Makefile. Added 'all'. 1996-11-20 01:54:13 +00:00
Bruce Momjian
9529238d78 Make install change for man files 1996-11-19 22:23:13 +00:00
Bruce Momjian
2abbf392bd Removed old Assert's used during development. 1996-11-19 05:06:39 +00:00
Bryan Henderson
81f5c669e9 This file has not been part of the regression test for many releases. 1996-11-19 02:57:10 +00:00
Bryan Henderson
13312a007d The routines in magic.c have moved to the more accessible version.c. 1996-11-19 02:55:37 +00:00
Bryan Henderson
b8eb6400de Eliminate mk/ directory. The tyranny of the included make file templates is
ended!
1996-11-19 02:52:21 +00:00
Bryan Henderson
be421b9b9a Build man/ instead of ../doc. Man pages have moved there. 1996-11-19 02:43:46 +00:00
Bruce Momjian
c6453ea75f Added DLSUFFIX to bsdi. 1996-11-18 16:32:53 +00:00
Bruce Momjian
317f375bb2 Rename SLSUFF to DLSUFFIX 1996-11-18 06:07:56 +00:00
Bryan Henderson
4a820de1f2 Include some macros that used to be -D options in Makefile.global. 1996-11-18 02:27:27 +00:00
Bryan Henderson
e2a8163c40 Remove linux define of __USE_POSIX, which doesn't appear to do anything. 1996-11-18 02:26:57 +00:00
Bryan Henderson
b55d49f5fe Add comments about the diversity of signal functionality. Came from
Makefile.global.
1996-11-18 02:25:09 +00:00
Bryan Henderson
87f5fda6b9 Make port-specific link libraries defined for linking backend more global
so you can also link pgtclsh.
1996-11-18 02:23:41 +00:00
Bryan Henderson
bd57c3afe5 Quiet compiler warnings about missing prototypes in Linux's bitops.h. 1996-11-18 01:45:44 +00:00
Bryan Henderson
435d4f4a79 Quiet compiler warnings, ignore the ones we can't. 1996-11-18 01:44:28 +00:00
Bryan Henderson
e780f0fef3 Ignore compiler warnings, because we can't escape "abstract declarator used
as declaration".
1996-11-18 01:43:55 +00:00
Bruce Momjian
529189f407 Renamed file. Restored SLSUFF to .so. 1996-11-17 20:30:32 +00:00
Bruce Momjian
99a4dc0598 Copy needed include files into standard directory. 1996-11-17 19:27:38 +00:00
Bruce Momjian
b715c3ad96 Change SLSUFF from .so to .o as default. 1996-11-17 19:26:44 +00:00
Bruce Momjian
75f58aef7c New backend directory description file. 1996-11-17 05:26:57 +00:00
Bruce Momjian
ca1a20eba4 Fix for -da option of pg_dump. 1996-11-17 04:56:16 +00:00
Bruce Momjian
cc7f032289 Fix for return code of psql in manual. 1996-11-17 04:27:34 +00:00
Bruce Momjian
003b76f9ac Fix for error when viewing group access privs. 1996-11-17 04:26:59 +00:00
Bruce Momjian
4b130b2209 Fix for Alter TABLE add column varchar(). Was causing zero length. 1996-11-17 04:23:10 +00:00
Bryan Henderson
620f014621 Fix syntax errors so it runs without error messages. 1996-11-17 03:55:07 +00:00
Bryan Henderson
aef6163388 Remove old GetPGData reference that causes warning. 1996-11-16 09:03:44 +00:00
Bryan Henderson
7bf3bae1a4 Add #include <sys/types.h> so it works with Ultrix's in.h 1996-11-16 08:09:16 +00:00
Bruce Momjian
5dd3c5620c Added documentation on new unique index capability. 1996-11-16 05:45:56 +00:00
Bruce Momjian
4024d43069 Added include file needed by memset(). 1996-11-16 05:18:58 +00:00
Bruce Momjian
b3ce105b31 Add prototype for new datetime functions. 1996-11-16 04:59:10 +00:00
Bruce Momjian
7085aba53c Remove quote removal. Moved to parser. 1996-11-15 18:38:55 +00:00
Bruce Momjian
36aaf2505d Correct permissions on lo_export(). Open up permissions. 1996-11-15 18:38:20 +00:00
Bruce Momjian
3f53311088 Fix quote/doublequote handling. 1996-11-15 18:37:37 +00:00
Bruce Momjian
b847d29785 Remove PERFECT_MEM
Unallocate opaque.
1996-11-15 18:37:10 +00:00
Bruce Momjian
f8e02c192a Unallocate opaque. 1996-11-15 18:36:31 +00:00
Bruce Momjian
a180738ddd Changed " to '. Removed bug section from psql. added reminder for log call
in built-in.  fixed backslases in source for libpq.
1996-11-15 17:55:31 +00:00
Marc G. Fournier
54c9905d6e Mulitple inclusion of sys/socket.h
Pointed out by: Erik Bertelsen <erik@sockdev.uni-c.dk>
1996-11-15 09:54:28 +00:00
Marc G. Fournier
8abc490181 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>
1996-11-14 21:39:14 +00:00
Marc G. Fournier
eedc75bfe1 Bring in Randy's NOROOT patch 1996-11-14 20:49:09 +00:00
Marc G. Fournier
2081153e69 Fix a comment...was going to fix the <sys/types.h> problem, but
Randy is submitting a more comprehensive patch :)
1996-11-14 20:27:06 +00:00
Marc G. Fournier
d84057db71 Couple of Ultrix4 related patches submited by:
Erik Bertelsen <erik@sockdev.uni-c.dk>
1996-11-14 20:08:58 +00:00
Marc G. Fournier
fb3b9d7661 Fix a comment that wasn't commente'd out
Pointed out by: Erik Bertelsen <erik@sockdev.uni-c.dk>
1996-11-14 20:06:39 +00:00
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
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