8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00
Commit Graph

51359 Commits

Author SHA1 Message Date
AlexPeshkoff
76483b1871 Fixed #7762: Crash on "Operating system call pthread_mutex_destroy failed. Error code 16" in log
(cherry picked from commit 7adea662ff)
2023-10-09 15:55:46 +03:00
GitHub Action
d4eca393b7 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-06 20:13:40 +00:00
GitHub Action
28dc0aa899 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-05 20:13:39 +00:00
AlexPeshkoff
24d4b86065 Minor security measure - avoid sending of authentication block over the wire (from ExtDS)
(cherry picked from commit e7e4a776ed)
2023-10-05 16:03:11 +03:00
GitHub Action
e8367a99ee increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-04 20:13:46 +00:00
Vlad Khorsun
be22e3d9ac Avoid parsing same metadata for every message when executing batch statement.
While it is not direct fix for #7770 (restore takes 25% more time vs 4.0.0), it should improve performance in this case too.
2023-10-04 00:22:45 +03:00
GitHub Action
f721024c01 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-03 20:14:12 +00:00
Adriano dos Santos Fernandes
d621ffbe0c Fix #7759 - Routine calling overhead increased by factor 6 vs Firebird 4.0.0. 2023-10-03 07:27:30 -03:00
GitHub Action
ea4914a6dc increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-01 20:12:31 +00:00
Vlad Khorsun
eb9bcb3e42 Fixed bug #7772 : Blob corruption in FB4.0.3 (embedded) 2023-10-01 10:52:46 +03:00
GitHub Action
3afd116d5f increment build number 2023-09-29 20:13:52 +00:00
GitHub Action
a7f9413845 increment build number 2023-09-28 20:12:57 +00:00
GitHub Action
42b3b76c53 increment build number 2023-09-27 20:13:51 +00:00
GitHub Action
1f92362c2b increment build number 2023-09-26 20:14:19 +00:00
Dmitry Yemanov
f457282e64 This should fix #7760: Parameters inside the IN list may cause a string truncation error 2023-09-26 13:59:16 +03:00
Adriano dos Santos Fernandes
2ca8e1fc16 Fix #7761 - Regression when displaying line number of errors in ISQL scripts. 2023-09-25 21:29:24 -03:00
GitHub Action
ec3b787d45 increment build number 2023-09-25 20:13:46 +00:00
GitHub Action
b16e04e84b increment build number 2023-09-21 20:12:47 +00:00
Adriano dos Santos Fernandes
b8da1b0ea2 Fix problem with statements and plan segments larger than 64K in the profiler plugin. 2023-09-21 08:41:20 -03:00
GitHub Action
e0994f6fb8 increment build number 2023-09-20 20:14:13 +00:00
GitHub Action
4e3171ee2e increment build number 2023-09-19 20:13:30 +00:00
Adriano dos Santos Fernandes
d78ec1ce9f Improvement #7752 - The access path information is truncated to 255
characters in the PLG$PROF_RECORD_SOURCES table.
2023-09-18 22:30:26 -03:00
GitHub Action
ed9602c542 increment build number 2023-09-18 20:14:07 +00:00
Dmitry Yemanov
aeb23610fc Ensure a correct format number for system tables in a newly created database. Some code unification. More paranoid assertions. 2023-09-18 16:56:34 +03:00
GitHub Action
4f47587a72 increment build number 2023-09-16 20:12:14 +00:00
Adriano dos Santos Fernandes
2de7e723f5
Fix problem with client-only build requiring btyacc's generated files present (#7445)
This also fixes annoying problem of incorrect dependencies build of parser.y with parallel make.
2023-09-15 22:27:52 -03:00
GitHub Action
999002268b increment build number 2023-09-15 20:13:52 +00:00
Adriano dos Santos Fernandes
11e1fd1900 Fix warnings. 2023-09-14 23:12:58 -03:00
GitHub Action
58e4691f77 increment build number 2023-09-14 20:13:34 +00:00
Dmitry Yemanov
90d0e34adf Prepare for RC1 release 2023-09-14 21:27:56 +03:00
Ilya Eremin
e9f399ea13
Merge pull request #7747 from red-soft-ru/fb_5_0_backout_gc_fix
Fix an issue where the garbage collection in indexes and blobs is not performed in VIO_backout
2023-09-14 10:40:54 +03:00
GitHub Action
562c19ee56 increment build number 2023-09-13 20:12:06 +00:00
Dmitry Yemanov
f239ca161f
Surface internal optimization modes (all rows vs first rows) at the SQL and configuration levels (#7405)
* Surface internal optimization modes (all rows vs first rows) at the SQL and configuration levels.
* Add session-level control over the optimization strategy
* More informative name as suggested by Adriano
* Cost-based approach for the first-rows optimization mode
2023-09-13 21:21:12 +03:00
Ilya Eremin
4974dd13f1 Fix an issue where the garbage collection in indexes and blobs is not performed in VIO_backout
The issue starts in VIO_record. There is a call record->reset(format) which clears the REC_gc_active flag by mistake. After that VIO_gc_record reuses the record which is already active.
2023-09-13 12:01:04 +03:00
Adriano dos Santos Fernandes
5b14baa37b
Fix #7700 - SKIP LOCKED returns conflict error or wait when config ReadConsistency = 0 (#7701)
* Fix #7700 - SKIP LOCKED returns conflict error or wait when config ReadConsistency = 0.

* Rename RecordLock::DONT to NONE.
2023-09-12 21:50:06 -03:00
GitHub Action
de99d190f2 increment build number 2023-09-12 20:14:17 +00:00
Dmitry Yemanov
adbbcc064f Fixed crash when IN predicate is delivered into aggregates/unions 2023-09-12 20:33:49 +03:00
Vlad Khorsun
66f6030467 This should fix blockage reported by Ilya Eremin (@ilya071294) privately. 2023-09-12 18:57:33 +03:00
Dmitry Yemanov
daf72b15c6 __func__ is now not only C99 but also a C++11 feature, should be supported by every modern compiler 2023-09-12 11:09:59 +03:00
Dmitry Yemanov
784f7bd8a6 Avoid storing garbage in idx_selectivity 2023-09-12 08:32:50 +03:00
Dmitry Yemanov
022f092877 Reworked my yesterday's commit re. empty tables and indices 2023-09-12 08:32:50 +03:00
GitHub Action
252c5b2b2f increment build number 2023-09-11 20:12:11 +00:00
Dmitry Yemanov
29b269b129 Better selectivity assumption for compound indices on empty tables 2023-09-11 20:19:25 +03:00
Dmitry Yemanov
b3c54800f3 Cost calculation adjustmnets for hash joins 2023-09-11 20:19:25 +03:00
GitHub Action
b31fc0a4d1 increment build number 2023-09-09 20:12:09 +00:00
GitHub Action
58db1331af Misc. 2023-09-09 10:13:24 +00:00
GitHub Action
24bb850a55 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-08 20:13:59 +00:00
AlexPeshkoff
569e05f8d8 Fixed compiling & running firebird under Valgrind control 2023-09-08 18:04:23 +03:00
GitHub Action
ac59a130bc increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-07 20:13:44 +00:00
Dmitry Yemanov
5df6668c7b Allow computable but non-invariant lists to be used for index lookup 2023-09-07 20:55:52 +03:00
AlexPeshkoff
3408f30109 Fixed most annoying bugs in pool<=>valgrind interaction - WIP 2023-09-07 19:40:31 +03:00
Dmitry Yemanov
341b87518f Avoid tracing compilation of system triggers 2023-09-07 14:17:52 +03:00
Artyom Ivanov
989612b369 Fix wrong assert throw
It can be thrown by lastUsedPage(), when it trying to fetch incorrect page number of PIP
2023-09-07 12:05:10 +03:00
GitHub Action
df389019a3 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-06 20:13:29 +00:00
Ilya Eremin
4560aad1a8
Merge pull request #7737 from red-soft-ru/5_0_blob_precedence_fixes
Fix cases where the precedence relationship between a record page and a blob page is not set
2023-09-06 16:21:28 +03:00
AlexPeshkoff
8e61e1111d Fixed #7738: Crash on multiple connections/disconnections 2023-09-06 13:40:28 +03:00
Dmitry Yemanov
bdce8b1341 Added missing (forgotten during refactoring) pre-sort before index scans. Fixed crash when all IN values are NULLs. Exclude duplicated IN values from the index scan. 2023-09-05 23:14:57 +03:00
GitHub Action
0e3ddc3c45 increment build number 2023-09-05 20:13:56 +00:00
Dmitry Yemanov
da55f0ab14 Protection from double deallocation of queued buffers, thanks to Vlad. Usually this should not happen, but possible after error thrown during commit (while journal/replica flushing). 2023-09-05 18:35:05 +03:00
Dmitry Yemanov
90ef56ae16 Postfix for replication server in Linux CS 2023-09-05 18:07:46 +03:00
Ilya Eremin
ed3287c70e Fix cases where the precedence relationship between a record page and a blob page is not set
1. While performing the intermediate garbage collection.
2. While modifying a blob field of a record.
2023-09-05 15:07:17 +03:00
AlexPeshkoff
cf6424565b Fixed #7691: 'with caller privileges' has no effect in triggers 2023-09-05 08:35:48 +03:00
Vlad Khorsun
11ffa71b4f
Merge pull request #7735 from FirebirdSQL/work/AttCacheBdb
Per-attachment cache of pointers to the often used page buffers.
2023-09-05 00:48:58 +03:00
GitHub Action
7b5ad00671 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-04 20:12:37 +00:00
Dmitry Yemanov
00c2d10102
Ensure the DDL trigger requests are cached (#7426)
While this commit does not fix all problems with cached triggers, I see no good reason to defer it.
2023-09-04 09:31:07 +03:00
Dmitry Yemanov
0493422c9f
Better processing and optimization if IN <list> predicates (#7707)
* WIP

* Original (circa 2022) implementation of the IN LIST optimization, with some post-fixes and minor adjustments

* Make it possible to optimize IN <list> for middle segments in compund indices

* Avoid modifying the retrieval structure at runtime, it may be shared among concurrent requests

* Simplify the code a little. Better cost calculation. Support both root-based and sibling-based list scans inside the same plan node.

* Removed the unneeded const casts and other changed as suggested by Adriano
2023-09-04 09:13:10 +03:00
Vlad Khorsun
469715dbf9 Misc changes per @dyemanov requests 2023-09-02 12:29:08 +03:00
Vlad Khorsun
b2eb581b2f Per-attachment cache of often used BDB's 2023-09-01 11:15:04 +03:00
GitHub Action
1973d01f39 increment build number 2023-08-31 20:13:52 +00:00
Dmitry Yemanov
b70067fe8d This should fix #7727: Index for integer column cannot be used when INT128/DECFLOAT value is being searched 2023-08-31 19:52:24 +03:00
GitHub Action
983025977a increment build number 2023-08-30 20:13:38 +00:00
loongson
fcc471e420 Add LoongArch support 2023-08-30 11:09:19 +03:00
GitHub Action
54b1c5a698 increment build number 2023-08-29 20:14:27 +00:00
AlexPeshkoff
c60633166c Fix for #7730: Server ignores the size of VARCHAR when performing SET BIND ... TO VARCHAR(N) 2023-08-29 19:20:37 +03:00
AlexPeshkoff
c51f969eb4 Fix for #7729: "SET BIND OF TS WITH TZ TO VARCHAR(128)" uses the date format of dialect 1 2023-08-29 19:19:31 +03:00
AlexPeshkoff
886fe7219b Fix for #7731: Display length of timestamp with timezone is wrong in dialect 1 2023-08-29 19:18:08 +03:00
GitHub Action
81da322277 increment build number 2023-08-28 20:13:31 +00:00
AlexPeshkoff
f049b6fb7e Fixed #7723: Wrong error message on login if the user doesn't exist and WireCrypt is disabled 2023-08-28 17:11:01 +03:00
GitHub Action
84ebf4ab1c increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-25 20:13:48 +00:00
AlexPeshkoff
75b2e10eee Patch for GHSA-6fv8-8rwr-9692 2023-08-25 17:25:36 +03:00
Adriano dos Santos Fernandes
6428990818 Fix warnings. 2023-08-25 08:24:05 -03:00
Vlad Khorsun
a5131e63ee Fixed bug #7713
stability of implicit cursor could be broken, if cursor's select expression is based
on view with sub-query in select list, or
on table with sub-query in computed field.
2023-08-25 10:51:12 +03:00
GitHub Action
9f46d8359f increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-24 20:13:57 +00:00
GitHub Action
9dbb5f1158 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-23 20:12:16 +00:00
AlexPeshkoff
18258a9651 Fixed posix build to ensure regeneration of cloop-generated files after "make clean". Regenerated .pas file is also here. 2023-08-23 19:42:20 +03:00
AlexPeshkoff
5432699f28 Comment 2023-08-23 12:37:27 +03:00
GitHub Action
2b428a24c3 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-17 20:13:24 +00:00
Dmitry Yemanov
fe96706c45 Misc adjustments re. hash joins (mostly cardinality/cost related) 2023-08-17 20:58:13 +03:00
Dmitry Yemanov
37762dcf5f Warnings 2023-08-17 15:16:19 +03:00
Vlad Khorsun
a41b6109d4 Fixed bug #7710 : Expression index - more than one null value cause attempt to store duplicate value error - FB5.0 beta 2 2023-08-17 10:59:50 +03:00
GitHub Action
1560b52a9c increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-15 20:13:50 +00:00
Dmitry Yemanov
e276c222aa
Add COMPILE trace events for procedures/functions/triggers (#7466)
* Add COMPILE trace events for procedures/functions/triggers

* Fixed missing elapsed time for COMPILE_TRIGGER events
2023-08-15 12:34:20 +03:00
GitHub Action
45c9bf12c1 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-11 20:13:15 +00:00
Alexandr Zhdanov
167d28f188 Added sha3 support for the built-in function CRYPT_HASH()
Added support for sha3_224, sha3_256, sha3_384, sha3_512 for the built-in
CRYPT_HASH() function
2023-08-11 12:35:37 +03:00
GitHub Action
f7987ad071 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-10 20:13:22 +00:00
AlexPeshkoff
93a8c44416 Generated files 2023-08-10 13:39:59 +03:00
GitHub Action
4c73f35ddf increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-09 20:13:59 +00:00
AlexPeshkoff
c1e58febd4 Fixed #7703: Requests leak in AutoCacheRequest 2023-08-09 19:38:37 +03:00
GitHub Action
137e997ad3 increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-08 20:13:42 +00:00
GitHub Action
feb96d5a0b increment build number
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-07 20:13:27 +00:00