On 18-5-2018 18:44, Vlad Khorsun via Firebird-devel wrote:
All,
I going to merge into master implementation of pool of external
connections.
The feature was initially developed more than a year ago, and works at
production
with good feedback.
Some bugs was fixed since then, so it should be stable enough and
definitely
good for beta release of v4. The branch ExternalConnectionsPool was
created at
our repository 3 months ago, btw ;)
Please, read and comment:
https://github.com/FirebirdSQL/firebird/blob/ExternalConnectionsPool/doc/sql.extensions/README.external_connections_pool
1. I'm not sure how I should read the "Key characteristic" that says:
"the pool is common for all local connections handled by the given
Firebird process"
2. (maybe related to 1) What is not clear to me is whether this pool is
global (for the whole engine), or per database.
If it is global, then the permission for ALTER EXTERNAL CONNECTIONS POOL
needs to be changed:
"""
New SQL statement is introduced to manage the pool :
ALTER EXTERNAL CONNECTIONS POOL.
When prepared it desribed as DDL statement but have immediate effect:
i.e.
it is executed immediately and completely, not waiting for transaction
commit.
"ALTER DATABASE" permission is required to run the statement.
"""
The ALTER DATABASE privilege is per database. I don't think that a
per-database privilege should be allowed to control engine-wide
configuration options. If the pool (and config) is global, I think this
requires a global privilege, preferably a separate one. If the pool
**and** config is local, then it is ok.
Mark
--
Mark Rotteveel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel