mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Allow setting of effective_io_concurrency on tablespaces in 9.6+. Fixes #2000
This commit is contained in:
committed by
Dave Page
parent
a93a99fdc0
commit
07e1c61eea
@@ -563,9 +563,15 @@ class TablespaceView(PGChildNodeView):
|
||||
This function will return list of variables available for
|
||||
table spaces.
|
||||
"""
|
||||
SQL = render_template(
|
||||
"/".join([self.template_path, 'variables.sql'])
|
||||
)
|
||||
ver = self.manager.version
|
||||
if ver >= 90600:
|
||||
SQL = render_template(
|
||||
"/".join(['tablespaces/sql/9.6_plus', 'variables.sql'])
|
||||
)
|
||||
else:
|
||||
SQL = render_template(
|
||||
"/".join([self.template_path, 'variables.sql'])
|
||||
)
|
||||
status, rset = self.conn.execute_dict(SQL)
|
||||
|
||||
if not status:
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{### SQL to fetch tablespace object options ###}
|
||||
SELECT name, vartype, min_val, max_val, enumvals
|
||||
FROM pg_settings
|
||||
WHERE name IN ('seq_page_cost', 'random_page_cost', 'effective_io_concurrency');
|
||||
Reference in New Issue
Block a user