skidder
7c743fc291
Fix build warnings
2014-07-17 18:48:46 +00:00
dimitr
b17b5efccd
Fixed CORE-4419: Server crashes while sorting records longer than 128KB.
2014-05-14 09:22:16 +00:00
dimitr
c1cbd97163
Increased the sort record size limit to 1MB. I've kept this limit due to the possible performance implications, but it can be extended/removed any time.
2013-08-21 09:11:57 +00:00
dimitr
b7372ba47e
Front ported CORE-3989: Bad performance / slow response when many concurrent sorts are executed.
2013-08-06 09:37:44 +00:00
alexpeshkoff
4e795f4047
Include platform definitions file common.h in firebird.h. Use OS-specific ThreadId instead artificial FB_THREAD_ID, avoiding unneeded casts in the code. This should fix BSD and MAC ports.
2012-03-01 08:55:43 +00:00
dimitr
eb546d94ba
Front ported CORE-3547: Floating-point negative zero doesn't match positive zero in the index.
2011-07-13 15:15:34 +00:00
hvlad
fef1f49c94
Shared page cache implementation
2011-05-09 10:15:19 +00:00
alexpeshkoff
e05c1a825f
Moved some more .h-files to common from jrd as Vlad suggested
2010-10-13 10:39:52 +00:00
asfernandes
4763533669
Refactor jrd_req into JrdStatement (shared part) and jrd_req (execution of a statement).
...
Fixed some bugs found in the way.
2010-04-18 22:19:11 +00:00
dimitr
1c9adc5300
Cleanup.
2010-04-06 16:26:27 +00:00
dimitr
168032571e
Bring some consistency into the memory management.
...
Reduce number of casts for memory buffers.
Use UCHAR instead of confusing BLOB_PTR.
2010-03-19 10:54:53 +00:00
robocop
c9a344419e
Reverted to the old flag name.
2010-03-18 12:47:19 +00:00
asfernandes
cd0c292823
Misc
2010-03-17 02:12:39 +00:00
dimitr
63bedffa71
Refactored the sorter into a proper class.
...
Removed some dead code and unused files.
2010-03-16 11:19:29 +00:00
asfernandes
7fbee2c76b
Feature OVER (PARTITION BY ...) clause for window functions
2010-01-18 21:37:47 +00:00
robocop
d524952611
Comments, cleanup and eliminating gaps in flags.
2009-11-28 07:36:45 +00:00
dimitr
e6909de7f7
Wipe out the SCROLLABLE_CURSORS code + minor cleanup.
...
Also, surfaced scrollability for PSQL cursors (without internal support yet).
2009-10-31 06:25:01 +00:00
dimitr
8e36474f76
More explicit (and shorter) life-time for sort blocks. Now they belong to either requests (user sorts) or transactions (index sorts).
...
This also resolves CORE-2477: mon$memory_usage: Sorting memory should be reported as owned by the statement.
2009-09-04 06:11:55 +00:00
robocop
f66d4af571
Comments.
2009-08-24 10:33:02 +00:00
asfernandes
50102f6f4c
Misc
2009-08-23 01:27:46 +00:00
dimitr
5041c0c340
Cleanup the unused code.
2009-08-21 10:24:06 +00:00
asfernandes
f6f364da49
Trim trailling spaces
2009-04-04 16:39:31 +00:00
robocop
2fadc0e456
Style.
2008-12-22 09:00:05 +00:00
asfernandes
ff5f8745fb
Remove trailing spaces (.h files)
2008-12-05 00:56:15 +00:00
dimitr
f5659c0b70
1) Major cleanup of the old-style blk and allocator-based blk_type.
...
2) Added synchronization for the JRD locks.
2008-03-19 16:19:56 +00:00
dimitr
6666fd1e4a
The merge continued.
2008-01-16 09:48:41 +00:00
asfernandes
54b36766c0
Misc
2007-11-17 00:38:16 +00:00
paulbeach
7602a29b94
HPUX Port
2007-11-12 14:26:44 +00:00
hvlad
4ec502a7f6
a) Refactor sort module. All related sort_work_file management moved into TempSpace class now. Former sort_work_file is now TempSpace::Segment
...
b) Add parameter names to declarations of TempSpace methods. It make sources much more readable, i believe, and allow IntelliSense to make useful hints
c) Reworked sort module to use more memory for merge buffers. It significantly increased speed of large sorts. Memory mostly reused from TempSpace memory blocks
2007-04-03 12:57:32 +00:00
alexpeshkoff
af5cbf523e
Fixed problems with windows build and database restore - thanks to Dmitry and Vlad
2007-03-27 11:46:47 +00:00
alexpeshkoff
9068d7787f
Frontported alignment and endianess fixes from 2.0
2007-03-25 16:09:00 +00:00
robocop
409ff041dd
Misc and replaced "IB" by "FB" where it made sense to me.
2007-02-11 09:04:54 +00:00
dimitr
caa90ee94e
Support for 64bit I/O.
2006-06-05 14:39:33 +00:00
asfernandes
7c74b33873
Misc
2006-06-02 00:50:31 +00:00
dimitr
7cc12e8489
1) Reworked memory management in SORT. Now we're pools aware there.
...
2) Reworked error handling in SORT and its callers.
3) Replaced DLS+SortMem with the generic TempSpace class.
4) Replaced GDS temp file management with the TempFile class.
5) Various cleanup.
2006-05-31 08:53:00 +00:00
robocop
1f84bac700
Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc.
2006-02-23 05:08:26 +00:00
hvlad
13730a72a8
Fixed broken unique index creation found by Adriano dos Santos Fernandes (unique indices can be created with duplicate keys)
2004-11-01 07:51:55 +00:00
brodsom
0dbaf0453b
-Rollback
2004-06-09 18:11:27 +00:00
brodsom
e8a210e39d
-C++ struct declaration style.
2004-06-08 18:27:59 +00:00
brodsom
ee861d41ec
Corrections suggested by Claudio
2004-05-03 22:42:47 +00:00
brodsom
f10702fea7
Replace defines for constants
2004-04-29 11:16:31 +00:00
robocop
1824343930
Cleanup.
...
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
alexpeshkoff
7007d6f2a4
1. introduced Jrd and Ods namespaces
...
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 14:57:40 +00:00
robocop
958f9e31aa
Cleanup
...
A few new[] - delete[] pairs fixed.
2004-03-19 06:14:53 +00:00
robocop
f58c769c37
Cleanup. In geeky words:
...
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
robocop
2ab1f94dd2
Cleanup
...
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
dimitr
5a412409ee
Fixed server crashes in sort finilization. Thanks to Vlad Horsun and Oleg Loa.
2003-12-24 13:04:59 +00:00
robocop
ad0b5c4de3
General cleanup
2003-12-22 10:00:59 +00:00
robocop
d020ea5ca1
ping-pong cleanup: change one place and you have to change several others
2003-12-11 10:33:30 +00:00
brodsom
79e5ff02dd
Extern "C" cleaning
2003-11-06 17:57:01 +00:00