Tom Lane
bdadc9bf1c
Remove RelationGetBufferWithBuffer(), which is horribly confused about
...
appropriate pin-count manipulation, and instead use ReleaseAndReadBuffer.
Make use of the fact that the passed-in buffer (if there is one) must
be pinned to avoid grabbing the bufmgr spinlock when we are able to
return this same buffer. Eliminate unnecessary 'previous tuple' and
'next tuple' fields of HeapScanDesc and IndexScanDesc, thereby removing
a whole lot of bookkeeping from heap_getnext() and related routines.
2001-06-09 18:16:59 +00:00
Tom Lane
3043810d97
Updates to make GIST work with multi-key indexes (from Oleg Bartunov
...
and Teodor Sigaev). Declare key values as Datum where appropriate,
rather than char* (Tom Lane).
2001-05-31 18:16:55 +00:00
Tom Lane
f1d5d0905c
Tweak StrategyEvaluation data structure to eliminate hardwired limit on
...
number of strategies supported by an index AM. Add missing copyright
notices and CVS $Header$ markers to GIST source files.
2001-05-30 19:53:40 +00:00
Bruce Momjian
7cf952e7b4
Fix comments that were mis-wrapped, for Tom Lane.
2001-03-23 04:49:58 +00:00
Bruce Momjian
9e1552607a
pgindent run. Make it all clean.
2001-03-22 04:01:46 +00:00
Tom Lane
ff7b9f5541
I had overlooked the fact that some fmgr-callable functions return void
...
--- ie, they're only called for side-effects. Add a PG_RETURN_VOID()
macro and use it where appropriate. This probably doesn't change the
machine code by a single bit ... it's just for documentation.
2000-06-14 05:24:50 +00:00
Tom Lane
f2d1205322
Another batch of fmgr updates. I think I have gotten all old-style
...
functions that take pass-by-value datatypes. Should be ready for
port testing ...
2000-06-13 07:35:40 +00:00
Bruce Momjian
52f77df613
Ye-old pgindent run. Same 4-space tabs.
2000-04-12 17:17:23 +00:00
Peter Eisentraut
1cd4c14116
Fixed all elog related warnings, as well as a few others.
2000-01-15 02:59:43 +00:00
Bruce Momjian
3406901a29
Move some system includes into c.h, and remove duplicates.
1999-07-17 20:18:55 +00:00
Bruce Momjian
a71802e12e
Final cleanup.
1999-07-16 05:00:38 +00:00
Bruce Momjian
a9591ce66a
Change #include's to use <> and "" as appropriate.
1999-07-15 23:04:24 +00:00
Bruce Momjian
2e6b1e63a3
Remove unused #includes in *.c files.
1999-07-15 22:40:16 +00:00
Bruce Momjian
07842084fe
pgindent run over code.
1999-05-25 16:15:34 +00:00
Bruce Momjian
6724a50787
Change my-function-name-- to my_function_name, and optimizer renames.
1999-02-13 23:22:53 +00:00
Vadim B. Mikheev
3f7fbf85dc
Initial MVCC code.
...
New code for locking buffer' context.
1998-12-15 12:47:01 +00:00
Bruce Momjian
fa1a8d6a97
OK, folks, here is the pgindent output.
1998-09-01 04:40:42 +00:00
Bruce Momjian
af74855a60
Renaming cleanup, no pgindent yet.
1998-09-01 03:29:17 +00:00
Bruce Momjian
7971539020
heap_fetch requires buffer pointer, must be released; heap_getnext
...
no longer returns buffer pointer, can be gotten from scan;
descriptor; bootstrap can create multi-key indexes;
pg_procname index now is multi-key index; oidint2, oidint4, oidname
are gone (must be removed from regression tests); use System Cache
rather than sequential scan in many places; heap_modifytuple no
longer takes buffer parameter; remove unused buffer parameter in
a few other functions; oid8 is not index-able; remove some use of
single-character variable names; cleanup Buffer variables usage
and scan descriptor looping; cleaned up allocation and freeing of
tuples; 18k lines of diff;
1998-08-19 02:04:17 +00:00
Bruce Momjian
6bd323c6b3
Remove un-needed braces around single statements.
1998-06-15 19:30:31 +00:00
Bruce Momjian
679d39b9c8
Goodbye ABORT. Hello ERROR for all errors.
1998-01-07 21:07:04 +00:00
Bruce Momjian
0d9fc5afd6
Change elog(WARN) to elog(ERROR) and elog(ABORT).
1998-01-05 03:35:55 +00:00
Bruce Momjian
59f6a57e59
Used modified version of indent that understands over 100 typedefs.
1997-09-08 21:56:23 +00:00
Bruce Momjian
319dbfa736
Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.
1997-09-08 02:41:22 +00:00
Bruce Momjian
1ccd423235
Massive commit to run PGINDENT on all *.c and *.h files.
1997-09-07 05:04:48 +00:00
Vadim B. Mikheev
737ab85cc0
1. Pass GISTENTRYs to giststate->penaltyFn by pointers, not by vals.
...
2. Re-initialize keys in gistrescan (if gist used in inner scan).
1997-05-22 16:01:33 +00:00
Bruce Momjian
f8e02c192a
Unallocate opaque.
1996-11-15 18:36:31 +00:00
Bruce Momjian
aaeef4d17d
All external function definitions now have prototypes that are checked.
1996-11-10 03:06:38 +00:00
Marc G. Fournier
0cf60fb718
More cleaned out #include files
...
Makefile fixed for fmgr.h
1996-11-05 08:19:01 +00:00
Marc G. Fournier
71cd646a34
More include file cleanups
1996-11-03 12:11:19 +00:00
Marc G. Fournier
ea04818002
Add a couple of missing includes
1996-10-31 08:09:47 +00:00
Marc G. Fournier
0452227989
-Wall Cleanup of gist subdirectory
1996-10-21 05:14:02 +00:00
Marc G. Fournier
5a0b450c78
First pass at fixing my own mistakes
...
Mainly...fix up the includes I removed, as well as prototypes
Pointed out by D'Arcy
1996-10-20 08:32:11 +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
3c0f8ed4ae
Remove all traces of machine.h and redundant calls to c.h where
...
postgres.h already pulled in (postgres.h includes c.h)
1996-08-27 22:15:17 +00:00
Marc G. Fournier
e78fe652f4
Oops, thanks to Dan McGuirk for pointing out that I missed part of
...
the commit :(
Here's the rest of the GiST code thta was missing...
1996-08-26 20:02:12 +00:00