Vadim B. Mikheev
b41aa3903c
TransactionIdIsInProgress moved to shmem.c
1996-11-27 07:32:10 +00:00
Bryan Henderson
93f722536f
Whoops, redo Ultrix patch so the other ports still compile.
1996-11-26 07:39:11 +00:00
Bryan Henderson
46d58fba33
Make it compile on Ultrix. Thanks Erik Bertelson.
1996-11-26 03:20:35 +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
4a820de1f2
Include some macros that used to be -D options in Makefile.global.
1996-11-18 02:27:27 +00:00
Bruce Momjian
b3ce105b31
Add prototype for new datetime functions.
1996-11-16 04:59:10 +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
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
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
Bryan Henderson
200d4a4ec3
Include stdlib.h to gives its NULL, etc. definitions precedence over ours.
1996-11-14 06:06:39 +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
17befd6c69
Use new utils/version.c instead of backend/utils/init/magic.c.
1996-11-12 06:47:10 +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
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
5d9e25c5ff
Add USE_POSIX_TIME, HAVE_TZSET for Linux so backend compiles.
1996-11-10 00:50:54 +00:00
Bruce Momjian
1d0e308395
Added new include file.
1996-11-09 05:48:28 +00:00
Marc G. Fournier
757b829ea8
A few more sparc_solaris cleanups from keith parks
1996-11-09 01:48:32 +00:00
Bruce Momjian
c9c0e111b8
More compile cleanups
1996-11-08 20:46:33 +00:00
Marc G. Fournier
cecf081aba
Change includes from "" to <>
1996-11-08 06:43:28 +00:00
Bruce Momjian
4b2b8592a0
Compile and warning cleanup
1996-11-08 06:02:30 +00:00
Marc G. Fournier
026387013e
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>
1996-11-08 01:08:37 +00:00
Marc G. Fournier
b38d565fc3
D'Arcy's recent cleanups
1996-11-08 00:46:14 +00:00
Marc G. Fournier
1d0dd471fa
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.
1996-11-06 10:31:02 +00:00
Marc G. Fournier
b49d41884f
Add prototype for: int DebugFileOpen()
1996-11-06 10:15:25 +00:00
Marc G. Fournier
9f5eac1f97
...same...
1996-11-06 09:56:47 +00:00
Marc G. Fournier
be9197320a
One by one, file by file
1996-11-06 09:27:29 +00:00
Marc G. Fournier
3f07f6bab2
Another
1996-11-06 09:24:57 +00:00
Marc G. Fournier
7d5e795596
Getting there, one by one...
1996-11-06 09:21:42 +00:00
Marc G. Fournier
92ec7b5812
And another
1996-11-06 09:19:16 +00:00
Marc G. Fournier
8b6b4d063a
another one bites the dust
1996-11-06 09:17:31 +00:00
Marc G. Fournier
e0b772cc00
another gone
1996-11-06 08:52:04 +00:00
Marc G. Fournier
33a8df7edd
Another one cleaned up
1996-11-06 08:07:45 +00:00
Marc G. Fournier
98f72c28dc
Oops, two includes unrequired
1996-11-06 08:05:02 +00:00
Marc G. Fournier
08905a7406
Another one bite sthe dust
1996-11-06 08:02:40 +00:00
Marc G. Fournier
6508241acb
another include cleaned out
1996-11-06 07:50:12 +00:00
Marc G. Fournier
87b07a3974
Further include file cleanups
1996-11-06 07:44:18 +00:00
Marc G. Fournier
8544daf645
Another one bites the dust
1996-11-06 07:05:18 +00:00
Marc G. Fournier
90113e2847
another one quickly done up
1996-11-05 11:29:45 +00:00
Marc G. Fournier
dc0e256902
clean this one
1996-11-05 11:23:43 +00:00
Marc G. Fournier
6608278ea4
these ones have their dependencies cleaned up
1996-11-05 10:37:16 +00:00
Marc G. Fournier
d1e9a76131
Another run through.
...
This gets us a clean compile of 'common' and 'gist' with *clean* #include
files
1996-11-05 08:18:44 +00:00
Marc G. Fournier
efef619b83
And double check changes
1996-11-05 07:41:13 +00:00
Marc G. Fournier
6c8482c970
Make sure all changes commited
1996-11-05 07:38:17 +00:00
Marc G. Fournier
51716fdd8d
Another
1996-11-05 07:24:03 +00:00
Marc G. Fournier
9ec5e78613
And another one
1996-11-05 07:22:50 +00:00
Marc G. Fournier
bc711a3f54
Another one bits the dust...
1996-11-05 07:20:09 +00:00
Marc G. Fournier
54c2aa99bd
And another...
1996-11-05 07:18:05 +00:00
Marc G. Fournier
8202bce9ba
And another..
1996-11-05 07:15:58 +00:00
Marc G. Fournier
7585d25185
Another one cleaned out
1996-11-05 07:07:22 +00:00
Marc G. Fournier
d2125805d1
Another directory totally cleaned out
1996-11-05 06:11:08 +00:00
Marc G. Fournier
abf578ac6c
Fix c.h for sparc_solaris
...
Pointed out by Keith Parks
1996-11-05 05:28:20 +00:00
Marc G. Fournier
d2746c65b5
Make sure all the cleaned includes are commited
1996-11-04 12:12:52 +00:00
Marc G. Fournier
0e2822072c
Make sure all the cleaned up includes are commited
1996-11-04 12:11:44 +00:00
Marc G. Fournier
dc037969ad
Another one completely cleaned up
1996-11-04 12:07:05 +00:00
Marc G. Fournier
0b3cb80e03
finally, this directory is (should be!) totally clean
1996-11-04 11:51:27 +00:00
Marc G. Fournier
434201d8d7
another pass through.
...
Note. all include files that have been hit so far have had extraneous
include files cleaned out and are reduced to...the lowest common
"include file", based on 'cc -Wall -I. test.c', where test.c is:
#include "postgres.h"
#include "<top of branches>" (ie. top of branches this time was utils/fcache2.h)
1996-11-04 08:53:07 +00:00
Marc G. Fournier
63482946c7
More cleanups (this one will most likely break under Win32, if anyone is
...
working on it)
1996-11-04 08:14:05 +00:00
Marc G. Fournier
82400d4c50
Next, based on utils/catcache.h
1996-11-04 07:59:39 +00:00
Marc G. Fournier
5a5f9420e5
Another series started from utils/builtins.h
1996-11-04 07:46:06 +00:00
Marc G. Fournier
d93d3c843a
-Wall based cleanup of include files, based from acl.h, and everything
...
that it depends on
1996-11-04 07:18:46 +00:00
Marc G. Fournier
796aca3916
include utils/palloc.h as a default include, as its used more often then
...
not
1996-11-04 06:35:36 +00:00
Bruce Momjian
de3286ce3a
Remove AMERICAN STYLE. Not used.
1996-11-04 05:02:44 +00:00
Bruce Momjian
18bbad7696
Remove OPENLINK define
1996-11-04 04:53:51 +00:00
Bruce Momjian
0108fddf13
Remove NULL_PATCH define
1996-11-04 04:35:48 +00:00
Bruce Momjian
8edbc3bde4
Remove ARRAY_PATCH define
1996-11-04 04:19:55 +00:00
Bruce Momjian
e43dfad289
Remove ESCAPE_PATCH define
1996-11-04 04:05:16 +00:00
Bruce Momjian
7e42f4814d
Removed PORTNAME_. Use OS version only.
1996-11-04 04:00:56 +00:00
Marc G. Fournier
d46d53387f
Not sure if this is the right place, but add a prototype for
...
Bryan's superuser() function
1996-11-03 23:49:07 +00:00
Marc G. Fournier
ff36ebc922
More cleans of the inter-dependencies in the #include files
1996-11-03 12:13:35 +00:00
Marc G. Fournier
0c960e7fc0
More include file cleanups
1996-11-03 08:17:38 +00:00
Marc G. Fournier
3516eda61c
Okay, following Bryan's (and others) suggestions...cleaning up the
...
include files properly...yet, slowly...
1996-11-01 09:31:17 +00:00
Marc G. Fournier
f44acab12c
Include dependencies based on tupdesc.h, as:
...
access/tupdesc.h
catalog/pg_attribute.h
nodes/pg_list.h
nodes/nodes.h
access/attnum.h
1996-11-01 09:22:37 +00:00
Marc G. Fournier
6d4c760eb5
Include file cleanup:
...
Based on include files require by htup.h, as:
access/htup.h
storage/itemptr.h
storage/block.h
storage/off.h
utils/nabstime.h
<time.h>
1996-11-01 09:19:11 +00:00
Bruce Momjian
dd10d0de23
More chanes for bsdi_2_1 removal
1996-11-01 03:36:16 +00:00
Bruce Momjian
3a4c2888a1
Removal of bsdi_2_1 port.
1996-11-01 01:47:23 +00:00
Bruce Momjian
727c840754
typo fix on include file.
1996-10-31 18:33:09 +00:00
Bruce Momjian
69dfa71bc3
Fix prototype.
1996-10-31 18:27:54 +00:00
Marc G. Fournier
99412aef23
remove:
...
#include "postgres.h"
#include "c.h"
1996-10-31 09:51:30 +00:00
Marc G. Fournier
83311355d7
Add these files to ${SRCDIR}/include
1996-10-31 07:10:14 +00:00
Marc G. Fournier
5cbff9a020
USE of PORTNAME_* should be discouraged wherever possible. The code
...
*should* be intelligent enough that:
#if defined(__FreeBSD__) works, where __FreeBSD__ is actually defined
by the compiler itself.
Makefile.global used to have -DPORTNAME_<port> -D<port> as part of the flags
for gcc while all occurances of PORTNAME_<port> slowly get removed from
the source tree...
1996-10-31 06:55:15 +00:00
Bruce Momjian
3d7fe6c97c
Added needed include file.
1996-10-31 05:58:01 +00:00
Bruce Momjian
7a93da98af
Missing from parser patch.
...
Added needed include file.
1996-10-31 05:57:23 +00:00
Bruce Momjian
3eb6cc491d
changed define(port) to define(PORTNAME_port)
...
Added needed include file.
1996-10-31 05:56:27 +00:00
Bruce Momjian
f59a46a8c8
Parser Overhaul
1996-10-30 02:02:41 +00:00
Marc G. Fournier
87b48ff032
D'Arcy's cleanups
1996-10-26 04:15:05 +00:00
Marc G. Fournier
20b4c46e26
Fixes: Errors when PQexec() in backend creates temp
...
relations and transaction is aborted
Submitted by: wieck@sapserv.debis.de (Jan Wieck)
1996-10-24 07:55:54 +00:00
Marc G. Fournier
7f76072d81
Bruce...does this fix it once and for all? *grin*
1996-10-24 06:25:34 +00:00
Marc G. Fournier
f36b2560a4
Major code cleanups from D'arcy (-Wall -Werror)
1996-10-23 07:42:13 +00:00
Marc G. Fournier
8325d9fc3b
Define prototypes from giststrat.c required in gistscan.c
1996-10-21 05:05:42 +00:00
Marc G. Fournier
597a1de903
remove an #ifdef/#else/#endif that doesn't actually have anything inside
...
of it
1996-10-20 21:51:45 +00:00
Marc G. Fournier
2217b1ccd8
Make default HAVE_MEMMOVE defined, undef inside of definitions for sparc
1996-10-20 20:58:14 +00:00
Marc G. Fournier
331bb53b0f
change '#if defined(PORTNAME_sparc)' to '#if !defined(HAVE_MEMMOVE)'
1996-10-20 20:57:06 +00:00
Marc G. Fournier
925ea01ed6
Add #define HAVE_MEMMOVE for systems that do have it.
1996-10-20 20:40:17 +00:00
Marc G. Fournier
7b58bb0088
Clean up comments (-Wall -Werror)
1996-10-20 20:34:06 +00:00
Marc G. Fournier
2b5a8bc38b
More include files cleaned up
1996-10-20 06:35:27 +00:00
Marc G. Fournier
0eac5b0ed5
Welp, another subdirectory cleaned out of redundant/unused #include
...
files
1996-10-19 06:27:33 +00:00
Marc G. Fournier
f4ba64a0ac
Almost have access/common cleaned up...
1996-10-19 04:49:29 +00:00
Marc G. Fournier
23f444f64d
A few more yet...
1996-10-19 04:48:30 +00:00
Marc G. Fournier
6592bbaf08
wish there was an easier way to clean this up...
1996-10-19 04:46:28 +00:00
Marc G. Fournier
4c9309a8d5
another small one
1996-10-19 04:36:08 +00:00
Marc G. Fournier
42dd813494
Hopefully that cleans up the cruft from rel.h
1996-10-19 04:31:45 +00:00
Marc G. Fournier
1d5c3ec010
another...
1996-10-19 04:25:53 +00:00
Marc G. Fournier
c6979925ea
its coming...
1996-10-19 04:24:57 +00:00
Marc G. Fournier
7bb98fd618
step by step...file by file...
1996-10-19 04:16:04 +00:00
Marc G. Fournier
7260183685
...same
1996-10-19 04:09:32 +00:00
Marc G. Fournier
d0bfb6b78d
slow work...
1996-10-19 04:08:58 +00:00
Marc G. Fournier
f697bf3b85
and another
1996-10-19 04:06:48 +00:00
Marc G. Fournier
6fd191c899
another one cleaned up
1996-10-19 04:05:44 +00:00
Marc G. Fournier
9b6b82b91d
and another one..
1996-10-19 04:03:29 +00:00
Marc G. Fournier
f3671cc910
another another one
1996-10-19 04:02:39 +00:00
Marc G. Fournier
c2c618fada
anothre one reduced to its component parts
1996-10-19 04:01:41 +00:00
Marc G. Fournier
d9ebe7711f
clean out include files of including other includes files except those
...
absolutely required
1996-10-19 03:58:34 +00:00
Marc G. Fournier
1c5fa955cd
Add prototype for heap_getattr() to quiet compiler
1996-10-18 17:58:33 +00:00
Vadim B. Mikheev
c8fc4c9607
Reap deleted/unused tuples on page-base
1996-10-18 08:15:58 +00:00
Vadim B. Mikheev
57de92c648
Move definition of PageIsNew from hio.c to here
1996-10-18 07:39:07 +00:00
Marc G. Fournier
46606ab077
Document some more #ifdef's
1996-10-18 05:59:52 +00:00
Marc G. Fournier
6c3dff4245
Document #ifdef's from backend/access subdirs so that we know what
...
features(?) are available
1996-10-18 05:22:24 +00:00
Marc G. Fournier
1b6322a9c0
Moved more -D's out of the port specific Makefiles straight into the
...
config.h file
1996-10-18 04:45:54 +00:00
Marc G. Fournier
d16bc9ce37
Centralize more of the defines from backend/port under config.h
...
Further ports should *really* avoid backend/port and make use of
config.h
1996-10-18 00:33:41 +00:00
Marc G. Fournier
c39857925b
Add a HAVE_TZSET define to clean up defines in backend/utils/adt/nabstime.c
1996-10-17 23:55:27 +00:00
Bruce Momjian
d31909be6c
Fix structure member name from previous patch.
1996-10-13 17:13:58 +00:00
Bruce Momjian
abb1b3e770
I checked the alter table code, and started suspecting the relation
...
cache. I found if I manually added a line to flush the whole relation
cache, the assert error disappeared. Looking through the code, I found
that the relation cache is flushed at the end of each query if the
reference count is zero for the relation. However, printf's showed that
the rd_relcnt(reference count) for the accessed query was not returning
to zero after each query.
It turns out the parser was doing a heap_ropen in parser/analyze.c to
get information about the table's columns, but was not doing a
heap_close.
This was causing the query after the ALTER TABLE ADD to see the old
table structure, and the executor's assert was reporting the problem.
1996-10-13 04:26:39 +00:00
Bryan Henderson
6d70d550e6
Prepare for new host-based authentication
1996-10-11 09:12:18 +00:00
Marc G. Fournier
81cda65f74
Add a MIPS/NetBSD port...
1996-10-11 03:56:41 +00:00
Bruce Momjian
c306d06cf9
Change sh-style comments to C comments.
1996-10-08 22:23:19 +00:00
Marc G. Fournier
d6dfbecb07
Moved the following definitions to include/config.h from Makefile.global:
...
NAMEDATALEN
OIDDATALEN
EUROPEAN_DATES
HBA
DEADLOCK_TIMEOUT
OPENLINK_PATCHES
NULL_PATCH
ARRAY_PATCH
Attempting to document and centralize as many of the "defines" as possible...
kinda useless to have defines if nobody knows they exist, eh?
1996-10-08 00:09:05 +00:00
Marc G. Fournier
87bb8daab8
Move the NAMEDATALEN/OIDNAMELEN defines to include/config.h
1996-10-07 23:57:01 +00:00
Marc G. Fournier
50e708ef88
Stylistic cleanups...
1996-10-05 20:39:05 +00:00
Bruce Momjian
8999ce097f
Add comment about possible zero value.
1996-10-05 20:33:45 +00:00
Bruce Momjian
efac791640
Change shell-style comments to C-style.
1996-10-05 20:33:10 +00:00
Marc G. Fournier
ff25e44d03
Moved the define of SIGNAL_ARGS that D'Arcy just created to config.h so that
...
hopefully this sort of thing can eventually be determined using configure?
1996-10-04 20:20:57 +00:00
Marc G. Fournier
f8009e1786
The remainder of D'Arcy's changes, most notibly the usage of SIGNAL_ARGS
1996-10-04 20:17:11 +00:00
Bruce Momjian
dbc268ca15
Fixed file to properly do SEMUN for BSDI.
...
Grouped some PORTNAME's for SEMUN.
1996-10-03 01:14:37 +00:00
Marc G. Fournier
0fadfc00ad
Added NEED_UNION_SEMUN to config.h
1996-10-02 20:42:20 +00:00
Marc G. Fournier
22ef6d06fc
Moved whether to define union semun from include/storage/ipc.h to
...
a define in include/config.h
1996-10-02 20:40:17 +00:00
Marc G. Fournier
3bf2b361f0
Date: Sun, 22 Sep 1996 13:47:39 -0400 (EDT)
...
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Postgres95-development <pg95-dev@ki.net>
Subject: [PG95-DEV] 2.0 patch for fastgetattr
1996-09-23 08:36:39 +00:00
Marc G. Fournier
7efc8ef1a1
|For starters, here's a small patch that removes a compiler warning in that
...
|regex stuff on Linux.
|
|--
|Bryan Henderson Phone 408-227-6803
|San Jose, California
|
1996-09-21 06:31:13 +00:00
Marc G. Fournier
985acb8ea0
Add the regex include files to the repository...
...
In my cvs source tree, tihs directory existed, which is why it compiled
on my system, but nobody elses...
1996-09-20 05:29:31 +00:00
Marc G. Fournier
33dccad831
enable PQ_NOTIFY_PATCH in config.h
1996-09-16 05:52:51 +00:00
Marc G. Fournier
df6ca83a5b
Enable FUNC_UTIL_PATCH by default
1996-09-16 05:39:04 +00:00
Marc G. Fournier
475493130d
|Subject: Postgres patch: Assert attribute type match
...
|
|Here's a patch for Version 2 only. It just adds an Assert to catch some
|inconsistencies in the catalog classes.
|
|--
|Bryan Henderson Phone 408-227-6803
|San Jose, California
|
1996-09-16 05:33:20 +00:00
Marc G. Fournier
c5dd292007
Add use of INDEXSCAN_PATCH to config.h instead of putting it in Makefile.global
1996-09-10 06:51:28 +00:00
Marc G. Fournier
870be9fa8e
Clean up th ecompile process by centralizing the include files
...
- code compile tested, but due to a yet unresolved problem with
parse.h's creation, compile not completed...
1996-08-28 07:27:54 +00:00
Marc G. Fournier
1054097464
More cleanups of the include files
...
- centralizing to simplify the -I's required to compile
1996-08-28 01:59:28 +00:00
Marc G. Fournier
ad5a3141a2
c.h is included in postgres.h already
1996-08-28 01:23:59 +00:00
Marc G. Fournier
a88b72ea39
#ifndef the include file like the rest, so that it doesn't get pulled
...
in twice...
1996-08-27 22:09:10 +00:00
Marc G. Fournier
54223de000
Oops, win32 does have one more thing in its machine.h...move that
...
define to config.h
1996-08-27 22:07:59 +00:00
Marc G. Fournier
3a606407c7
We have a machine.h for each platform just because of BLCKSZ, and every
...
platform with a machine.h has the same BLCKSZ?
Consolidate machine.h into config.h
1996-08-27 22:06:30 +00:00
Marc G. Fournier
5a8820efcd
Moved from backend/access to include/access
1996-08-27 21:50:29 +00:00
Marc G. Fournier
e733befeed
One file at a time, one directory after the other...this is going
...
to be one helluva chore to clean up...
1996-08-27 07:30:55 +00:00
Marc G. Fournier
849292a188
first attempt at centralizing config information for ports
1996-08-27 06:56:08 +00:00
Marc G. Fournier
1da12ffb12
Its a start...
1996-08-27 06:14:29 +00:00