Commit Graph

170 Commits

Author SHA1 Message Date
Marc G. Fournier dd007d4c39 Another directory cleaned out 1996-10-20 06:56:04 +00:00
Marc G. Fournier 3cb7ff8db2 Okay...another directory cleaned out and compilable 1996-10-20 06:34:30 +00:00
Marc G. Fournier 5eee45ea05 Add HAVE_Cplusplus= true to BSD44_derived Makefile.inc, as I know that
FreeBSD/NetBSD both ship with gcc 2.7.x
1996-10-19 06:36:52 +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 e77f64af62 There...that pretty much cleans up redundant/unused #includes in
access/common...how many more directories to go? :)
1996-10-19 04:51:44 +00:00
Marc G. Fournier d7dd05db55 Another cleaned up 1996-10-19 03:39:04 +00:00
Marc G. Fournier 5dedad99a1 One at a time...another one is complete... 1996-10-19 03:28:20 +00:00
Marc G. Fournier 69b42eb1a3 another one with #include file clean'd up 1996-10-19 03:12:50 +00:00
Marc G. Fournier 9834913cd0 All #include's removed from *.h files, so cleaning up the .c #includes...
First file of, what...1000's?
1996-10-18 19:01:16 +00:00
Marc G. Fournier 9caf84bc00 #include "postgres.h" is a standard include for all .c files, auto-including
config.h, c.h *and* elog.h...added elog.h
1996-10-18 18:28:33 +00:00
Vadim B. Mikheev bc50067426 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)
1996-10-18 08:13:36 +00:00
Vadim B. Mikheev 327d900b51 Move #define PageIsNew (true if page is not initialize) to bufpage.h 1996-10-18 07:43:43 +00:00
Marc G. Fournier 94e825145d 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
1996-10-18 05:59:17 +00:00
Marc G. Fournier 1c00e68fad Moved definition of MAXPATHLEN to config.h 1996-10-18 05:50:04 +00:00
Marc G. Fournier 927e5887a0 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"
1996-10-18 05:47:12 +00:00
Marc G. Fournier 2ecb7e5e2c Moved '#define *DEBUG' defines to config.h, and document where first
found.

Document any '#ifdef' segments found in config.h
1996-10-18 05:21:27 +00:00
Marc G. Fournier 6e420677dd 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
1996-10-18 05:21:09 +00:00
Marc G. Fournier 6c8465f69b #define cleanup: moved #define IPORTAL_DEBUG to config.h 1996-10-18 04:54:47 +00:00
Marc G. Fournier 2d8ffead24 Moved all the CFLAG -D's from the makefiles to config.h towards better
centralized configurations/porting...
1996-10-18 04:49:09 +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 a839456c41 Move "port specific" #ifdefs out of here and into config.h
- created a HAVE_TZSET define for this purpose
1996-10-17 23:59:45 +00:00
Bruce Momjian 83cb729887 More closing of relations left open by parser. 1996-10-14 03:53:53 +00:00
Bruce Momjian 81f2f81960 Removed const warning. 1996-10-13 18:39:41 +00:00
Bruce Momjian 54612f5141 D'Arcy change. 1996-10-13 18:38:51 +00:00
Bruce Momjian baf9a6e24c Added include needed for recent addition.
I hope everyone has sys/socket.h.
1996-10-13 18:38:04 +00:00
Bruce Momjian e6cacf9211 Added include needed for recent addition. 1996-10-13 18:37:19 +00:00
Bruce Momjian 86be8677a9 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.
1996-10-13 04:50:27 +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 bef3c89a1c Fix prototypes so postmaster.c will compile. 1996-10-13 04:01:05 +00:00
Bryan Henderson 785234d6ca New host-based authentication -- send error message when authentication fails 1996-10-12 07:48:49 +00:00
Bryan Henderson 4b5c977782 New host-based authentication with ident 1996-10-12 07:47:12 +00:00
Bryan Henderson 57026d6009 New host-based authentication -- install pg_hba.conf instead of pg_hba 1996-10-12 07:44:39 +00:00
Bryan Henderson 09bb369d23 Separate general purpose functions from portal functions so they may be
used in test drivers.
1996-10-11 09:47:14 +00:00
Marc G. Fournier 81cda65f74 Add a MIPS/NetBSD port... 1996-10-11 03:56:41 +00:00
Marc G. Fournier b7559f94cd 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)
1996-10-11 03:25:00 +00:00
Marc G. Fournier 2663dfd94e 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>
1996-10-11 03:22:59 +00:00
Bruce Momjian ca5f6dba0f Comment cleanup. 1996-10-10 00:18:52 +00:00
Bruce Momjian a409f40ea8 Modified Assert to be more selective. 1996-10-07 19:53:15 +00:00
Marc G. Fournier 3dc0c8e4e5 Fixed a missed change from Carsten Heyl <heyl@nads.de> 1996-10-07 07:18:34 +00:00
Marc G. Fournier de466eb8f4 Mostly adding "const" keyword and making some functions static.
Submitted by: D'Arcy Cain
1996-10-07 03:30:40 +00:00
Bruce Momjian 257b4d090c Change new assert so it generates assert message rather than SIGSEG. 1996-10-07 02:50:19 +00:00
Bruce Momjian 47279960a0 Fix assert to allow zero. OK'ed by Bryan. 1996-10-05 20:31:38 +00:00
Bruce Momjian a433f22c24 Fix args to match prototype. 1996-10-05 20:30:31 +00:00
Marc G. Fournier 4feb696be7 Here the fix for the first assertion failure I had which killed
my postmaster 1.07.
It's really simple, the loop dealing with all sockets
can't handle more than one ready socket :-)
A simple logic error dealing with lists.
OR IS THERE ANY REASON FOR SETTING curr TO 0?

Submitted by:  Carsten Heyl <Heyl@nads.de>
1996-10-04 20:32:07 +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
Marc G. Fournier c61d606a15 Added dlfcn.h to dl.c in BSD44_derived port 1996-10-03 22:41:42 +00:00
Bruce Momjian aefb294e13 Added restriction to tables vacuum'able.
Added NOTICE messages for bad table names.
1996-10-03 20:11:41 +00:00
Bruce Momjian f5316239b8 Moved them. 1996-10-03 17:27:01 +00:00
Bruce Momjian 267ef0a642 Allow vacuum to run for only one table. Fixes allocation bug. 1996-10-03 04:19:29 +00:00
Bruce Momjian 8f7756d796 palloc() finfo memory. From Kurt. 1996-09-26 16:29:05 +00:00