]>
granicus.if.org Git - postgresql/log
Marc G. Fournier [Mon, 21 Oct 1996 05:14:02 +0000 (05:14 +0000)]
-Wall Cleanup of gist subdirectory
Marc G. Fournier [Mon, 21 Oct 1996 05:11:00 +0000 (05:11 +0000)]
-Wall cleanup of gist subdirectory:
- cleaned out unused variables
- added missing prototype headers
One outstanding -Werror failure:
/home/staff/scrappy/postgres/2.0/cvs/postgres95/src/backend/access/gist/giststra
t.c:117: warning: missing braces around initializer for `GISTEvaluationData.expr
ession'
Marc G. Fournier [Mon, 21 Oct 1996 05:05:42 +0000 (05:05 +0000)]
Define prototypes from giststrat.c required in gistscan.c
Marc G. Fournier [Sun, 20 Oct 1996 22:04:49 +0000 (22:04 +0000)]
Other then:
indextuple.c:159: warning: `bp' might be used uninitialized in this function
this directory passes -Wall -Werror under FreeBSD
Marc G. Fournier [Sun, 20 Oct 1996 21:51:45 +0000 (21:51 +0000)]
remove an #ifdef/#else/#endif that doesn't actually have anything inside
of it
Marc G. Fournier [Sun, 20 Oct 1996 20:58:14 +0000 (20:58 +0000)]
Make default HAVE_MEMMOVE defined, undef inside of definitions for sparc
Marc G. Fournier [Sun, 20 Oct 1996 20:57:06 +0000 (20:57 +0000)]
change '#if defined(PORTNAME_sparc)' to '#if !defined(HAVE_MEMMOVE)'
Marc G. Fournier [Sun, 20 Oct 1996 20:40:17 +0000 (20:40 +0000)]
Add #define HAVE_MEMMOVE for systems that do have it.
Marc G. Fournier [Sun, 20 Oct 1996 20:34:06 +0000 (20:34 +0000)]
Clean up comments (-Wall -Werror)
Marc G. Fournier [Sun, 20 Oct 1996 10:53:18 +0000 (10:53 +0000)]
#include file cleanup
Marc G. Fournier [Sun, 20 Oct 1996 09:27:24 +0000 (09:27 +0000)]
More #include cleanups
Once access/* is cleaned out, will redo using -Wall on compile to
make sure that all prototyping is correct
Marc G. Fournier [Sun, 20 Oct 1996 08:32:11 +0000 (08:32 +0000)]
First pass at fixing my own mistakes
Mainly...fix up the includes I removed, as well as prototypes
Pointed out by D'Arcy
Marc G. Fournier [Sun, 20 Oct 1996 06:56:04 +0000 (06:56 +0000)]
Another directory cleaned out
Marc G. Fournier [Sun, 20 Oct 1996 06:35:27 +0000 (06:35 +0000)]
More include files cleaned up
Marc G. Fournier [Sun, 20 Oct 1996 06:34:30 +0000 (06:34 +0000)]
Okay...another directory cleaned out and compilable
Marc G. Fournier [Sat, 19 Oct 1996 06:36:52 +0000 (06:36 +0000)]
Add HAVE_Cplusplus= true to BSD44_derived Makefile.inc, as I know that
FreeBSD/NetBSD both ship with gcc 2.7.x
Marc G. Fournier [Sat, 19 Oct 1996 06:33:55 +0000 (06:33 +0000)]
Not quite the cleanest way to do it, but add an option to Makefile.global
that allows one to compile libpq++
this should be set on a port-by-port basis
Marc G. Fournier [Sat, 19 Oct 1996 06:27:33 +0000 (06:27 +0000)]
Welp, another subdirectory cleaned out of redundant/unused #include
files
Marc G. Fournier [Sat, 19 Oct 1996 04:51:44 +0000 (04:51 +0000)]
There...that pretty much cleans up redundant/unused #includes in
access/common...how many more directories to go? :)
Marc G. Fournier [Sat, 19 Oct 1996 04:49:29 +0000 (04:49 +0000)]
Almost have access/common cleaned up...
Marc G. Fournier [Sat, 19 Oct 1996 04:48:30 +0000 (04:48 +0000)]
A few more yet...
Marc G. Fournier [Sat, 19 Oct 1996 04:46:28 +0000 (04:46 +0000)]
wish there was an easier way to clean this up...
Marc G. Fournier [Sat, 19 Oct 1996 04:36:08 +0000 (04:36 +0000)]
another small one
Marc G. Fournier [Sat, 19 Oct 1996 04:31:45 +0000 (04:31 +0000)]
Hopefully that cleans up the cruft from rel.h
Marc G. Fournier [Sat, 19 Oct 1996 04:25:53 +0000 (04:25 +0000)]
another...
Marc G. Fournier [Sat, 19 Oct 1996 04:24:57 +0000 (04:24 +0000)]
its coming...
Marc G. Fournier [Sat, 19 Oct 1996 04:16:04 +0000 (04:16 +0000)]
step by step...file by file...
Marc G. Fournier [Sat, 19 Oct 1996 04:09:32 +0000 (04:09 +0000)]
...same
Marc G. Fournier [Sat, 19 Oct 1996 04:08:58 +0000 (04:08 +0000)]
slow work...
Marc G. Fournier [Sat, 19 Oct 1996 04:06:48 +0000 (04:06 +0000)]
and another
Marc G. Fournier [Sat, 19 Oct 1996 04:05:44 +0000 (04:05 +0000)]
another one cleaned up
Marc G. Fournier [Sat, 19 Oct 1996 04:03:29 +0000 (04:03 +0000)]
and another one..
Marc G. Fournier [Sat, 19 Oct 1996 04:02:39 +0000 (04:02 +0000)]
another another one
Marc G. Fournier [Sat, 19 Oct 1996 04:01:41 +0000 (04:01 +0000)]
anothre one reduced to its component parts
Marc G. Fournier [Sat, 19 Oct 1996 03:58:34 +0000 (03:58 +0000)]
clean out include files of including other includes files except those
absolutely required
Marc G. Fournier [Sat, 19 Oct 1996 03:39:04 +0000 (03:39 +0000)]
Another cleaned up
Marc G. Fournier [Sat, 19 Oct 1996 03:28:20 +0000 (03:28 +0000)]
One at a time...another one is complete...
Marc G. Fournier [Sat, 19 Oct 1996 03:12:50 +0000 (03:12 +0000)]
another one with #include file clean'd up
Marc G. Fournier [Fri, 18 Oct 1996 19:01:16 +0000 (19:01 +0000)]
All #include's removed from *.h files, so cleaning up the .c #includes...
First file of, what...1000's?
Marc G. Fournier [Fri, 18 Oct 1996 18:28:33 +0000 (18:28 +0000)]
#include "postgres.h" is a standard include for all .c files, auto-including
config.h, c.h *and* elog.h...added elog.h
Marc G. Fournier [Fri, 18 Oct 1996 17:58:33 +0000 (17:58 +0000)]
Add prototype for heap_getattr() to quiet compiler
Vadim B. Mikheev [Fri, 18 Oct 1996 08:15:58 +0000 (08:15 +0000)]
Reap deleted/unused tuples on page-base
Vadim B. Mikheev [Fri, 18 Oct 1996 08:13:36 +0000 (08:13 +0000)]
1. Reap deleted/unused tuples on page-base
2. Reap unused tuples too
3. Reap empty pages
4. Check if a page is initialized, initialize it if not
and reap it
5. Binary search in list of reapped pages/tids to check
is the heap' tid pointed by a index' tuple on this list
(it's mu-u-uch faster)
Vadim B. Mikheev [Fri, 18 Oct 1996 07:43:43 +0000 (07:43 +0000)]
Move #define PageIsNew (true if page is not initialize) to bufpage.h
Vadim B. Mikheev [Fri, 18 Oct 1996 07:39:07 +0000 (07:39 +0000)]
Move definition of PageIsNew from hio.c to here
Marc G. Fournier [Fri, 18 Oct 1996 05:59:52 +0000 (05:59 +0000)]
Document some more #ifdef's
Marc G. Fournier [Fri, 18 Oct 1996 05:59:17 +0000 (05:59 +0000)]
Document more #ifdef's into config.h
Get rid of ESCAPE_PATCH ifdef, as its on by default, and there is no
apparent reason for turning it off...it fixes a bug
Marc G. Fournier [Fri, 18 Oct 1996 05:50:04 +0000 (05:50 +0000)]
Moved definition of MAXPATHLEN to config.h
Marc G. Fournier [Fri, 18 Oct 1996 05:47:12 +0000 (05:47 +0000)]
Added a #define NEED_SIG_JMP to config.h
Removed #ifdef's for OPENLINK_PATCH. We enable it by default, and nobody
*has* to enable the functionality, but no reason to retain the "old code"
Marc G. Fournier [Fri, 18 Oct 1996 05:22:24 +0000 (05:22 +0000)]
Document #ifdef's from backend/access subdirs so that we know what
features(?) are available
Marc G. Fournier [Fri, 18 Oct 1996 05:21:27 +0000 (05:21 +0000)]
Moved '#define *DEBUG' defines to config.h, and document where first
found.
Document any '#ifdef' segments found in config.h
Marc G. Fournier [Fri, 18 Oct 1996 05:21:09 +0000 (05:21 +0000)]
Moved '#define *DEBUG' defines to config.h, and document where first
found.
Document any '#ifdef' segments found in config.h
Remove gistold.c, since it was older copy of gist.c
Marc G. Fournier [Fri, 18 Oct 1996 04:54:47 +0000 (04:54 +0000)]
#define cleanup: moved #define IPORTAL_DEBUG to config.h
Marc G. Fournier [Fri, 18 Oct 1996 04:49:09 +0000 (04:49 +0000)]
Moved all the CFLAG -D's from the makefiles to config.h towards better
centralized configurations/porting...
Marc G. Fournier [Fri, 18 Oct 1996 04:45:54 +0000 (04:45 +0000)]
Moved more -D's out of the port specific Makefiles straight into the
config.h file
Marc G. Fournier [Fri, 18 Oct 1996 00:33:41 +0000 (00:33 +0000)]
Centralize more of the defines from backend/port under config.h
Further ports should *really* avoid backend/port and make use of
config.h
Marc G. Fournier [Thu, 17 Oct 1996 23:59:45 +0000 (23:59 +0000)]
Move "port specific" #ifdefs out of here and into config.h
- created a HAVE_TZSET define for this purpose
Marc G. Fournier [Thu, 17 Oct 1996 23:55:27 +0000 (23:55 +0000)]
Add a HAVE_TZSET define to clean up defines in backend/utils/adt/nabstime.c
Bryan Henderson [Wed, 16 Oct 1996 09:41:13 +0000 (09:41 +0000)]
Change treatment of sigaction structure again to include even more platforms.
Thanks D'Arcy.
Bryan Henderson [Tue, 15 Oct 1996 07:16:41 +0000 (07:16 +0000)]
Remove 4th element of sigaction structure so it works on more platforms.
Bruce Momjian [Mon, 14 Oct 1996 12:12:14 +0000 (12:12 +0000)]
New FAQ's.
Bruce Momjian [Mon, 14 Oct 1996 03:53:53 +0000 (03:53 +0000)]
More closing of relations left open by parser.
Bruce Momjian [Mon, 14 Oct 1996 00:33:47 +0000 (00:33 +0000)]
Change display of char(5) to (bp)char 5 so psql \d can
distinguish between char and char(1).
Bruce Momjian [Sun, 13 Oct 1996 18:39:41 +0000 (18:39 +0000)]
Removed const warning.
Bruce Momjian [Sun, 13 Oct 1996 18:38:51 +0000 (18:38 +0000)]
D'Arcy change.
Bruce Momjian [Sun, 13 Oct 1996 18:38:04 +0000 (18:38 +0000)]
Added include needed for recent addition.
I hope everyone has sys/socket.h.
Bruce Momjian [Sun, 13 Oct 1996 18:37:19 +0000 (18:37 +0000)]
Added include needed for recent addition.
Bruce Momjian [Sun, 13 Oct 1996 17:13:58 +0000 (17:13 +0000)]
Fix structure member name from previous patch.
Bruce Momjian [Sun, 13 Oct 1996 13:46:20 +0000 (13:46 +0000)]
Removed duplicate MAXNAMELEN define I accidentally added.
Bruce Momjian [Sun, 13 Oct 1996 04:50:27 +0000 (04:50 +0000)]
Added consistent include file handling for MAXHOSTNAMELEN.
If I have introduced any syntax errors with this, I will patch them in
the morning, and Marc will have a good laugh.
Bruce Momjian [Sun, 13 Oct 1996 04:26:39 +0000 (04:26 +0000)]
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.
Bryan Henderson [Sun, 13 Oct 1996 04:01:05 +0000 (04:01 +0000)]
Fix prototypes so postmaster.c will compile.
Bryan Henderson [Sat, 12 Oct 1996 07:49:56 +0000 (07:49 +0000)]
New host-based authentication -- set up pg_hba.conf instead of pg_hba
Bryan Henderson [Sat, 12 Oct 1996 07:48:49 +0000 (07:48 +0000)]
New host-based authentication -- send error message when authentication fails
Bryan Henderson [Sat, 12 Oct 1996 07:47:12 +0000 (07:47 +0000)]
New host-based authentication with ident
Bryan Henderson [Sat, 12 Oct 1996 07:44:39 +0000 (07:44 +0000)]
New host-based authentication -- install pg_hba.conf instead of pg_hba
Bryan Henderson [Fri, 11 Oct 1996 09:47:14 +0000 (09:47 +0000)]
Separate general purpose functions from portal functions so they may be
used in test drivers.
Bryan Henderson [Fri, 11 Oct 1996 09:12:18 +0000 (09:12 +0000)]
Prepare for new host-based authentication
Marc G. Fournier [Fri, 11 Oct 1996 03:56:41 +0000 (03:56 +0000)]
Add a MIPS/NetBSD port...
Marc G. Fournier [Fri, 11 Oct 1996 03:25:00 +0000 (03:25 +0000)]
This change should have no practical effect but it is the more
correct way to do this. Theoretically you could have a NULL
pointer that isn't represented internally as all 0 bits. This
guarantees that it convert correctly.
Submitted by: darcy@druid.com (D'Arcy J.M. Cain)
Marc G. Fournier [Fri, 11 Oct 1996 03:22:59 +0000 (03:22 +0000)]
I have written some patches to the postgres lock manager which allow the
use of long term cooperative locks managed by the user applications.
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
Marc G. Fournier [Fri, 11 Oct 1996 02:38:16 +0000 (02:38 +0000)]
Reinstituted NAMEDATALEN OIDNAMELEN in Makefile.global so that initdb
works again...
Bryan Henderson [Thu, 10 Oct 1996 08:20:11 +0000 (08:20 +0000)]
Add PGUSER environment variable for client to specify Postgres username.
Bruce Momjian [Thu, 10 Oct 1996 00:18:52 +0000 (00:18 +0000)]
Comment cleanup.
Bruce Momjian [Wed, 9 Oct 1996 00:15:44 +0000 (00:15 +0000)]
Changed psql \h command to print commands in three columns.
No more scrolling off the screen.
Bruce Momjian [Tue, 8 Oct 1996 22:23:19 +0000 (22:23 +0000)]
Change sh-style comments to C comments.
Bruce Momjian [Tue, 8 Oct 1996 04:09:50 +0000 (04:09 +0000)]
Add execute permission.
Bruce Momjian [Tue, 8 Oct 1996 04:04:38 +0000 (04:04 +0000)]
Add execute permits.
Bruce Momjian [Tue, 8 Oct 1996 03:53:10 +0000 (03:53 +0000)]
Add execute permission.
Marc G. Fournier [Tue, 8 Oct 1996 00:09:05 +0000 (00:09 +0000)]
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?
Marc G. Fournier [Mon, 7 Oct 1996 23:57:01 +0000 (23:57 +0000)]
Move the NAMEDATALEN/OIDNAMELEN defines to include/config.h
Marc G. Fournier [Mon, 7 Oct 1996 23:53:47 +0000 (23:53 +0000)]
Fix handling of no '../doc' directory in compile procedure...
Marc G. Fournier [Mon, 7 Oct 1996 21:19:09 +0000 (21:19 +0000)]
Well I haven't received any feedback pro or con re my suggested new Tcl
function so I am going to assume that it is such a good idea that no
one sees any point in discussing it. :-) I have made two changes -
I have merged this into pgtclCmds.c and I have taken out any code for
updating tuples after the loop body runs. See comments for discussion
of this.
I have also fixed up the error checking stuff so that break, continue
and syntax errors have the expected result.
Submitted by: D'Arcy Cain
Marc G. Fournier [Mon, 7 Oct 1996 21:17:01 +0000 (21:17 +0000)]
Fix a couple of small things from D'Arcy's last patch
Submitted by: D'Arcy Cain
Bruce Momjian [Mon, 7 Oct 1996 19:53:15 +0000 (19:53 +0000)]
Modified Assert to be more selective.
Marc G. Fournier [Mon, 7 Oct 1996 07:18:34 +0000 (07:18 +0000)]
Fixed a missed change from Carsten Heyl <heyl@nads.de>
Marc G. Fournier [Mon, 7 Oct 1996 03:30:40 +0000 (03:30 +0000)]
Mostly adding "const" keyword and making some functions static.
Submitted by: D'Arcy Cain
Bruce Momjian [Mon, 7 Oct 1996 02:50:19 +0000 (02:50 +0000)]
Change new assert so it generates assert message rather than SIGSEG.
Bruce Momjian [Mon, 7 Oct 1996 02:34:54 +0000 (02:34 +0000)]
add FROM to update page, clean up spelling error in select.
Bruce Momjian [Mon, 7 Oct 1996 02:33:25 +0000 (02:33 +0000)]
Remove sytax errors from file.