Issue Details (XML | Word | Printable)

Key: CORE-5164
Type: Improvement Improvement
Status: Open Open
Priority: Trivial Trivial
Assignee: Dmitry Yemanov
Reporter: Pavel Zotov
Votes: 0
Watchers: 3

If you were logged in you would be able to see more operations.
Firebird Core

Provide ability to calculate number of active attachments efficiently, without MON$ queries or parsing lock-print output

Created: 23/Mar/16 09:42 AM   Updated: 27/Mar/16 08:32 AM
Component/s: Engine
Affects Version/s: None
Fix Version/s: None

QA Status: No test

 Description  « Hide
It will be extremely useful for lot of testing purpoces (and not only for them) to get number of current sessions.
After discuss with dimitr following syntax seems to be appropriate for this:

select RDB$GET_CONTEXT('SYSTEM', 'SESSION_COUNT') from rdb$database;

PS. Please, add this ability not only in 4.0 but also in 2.5 and 3.0.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.