Allow setting of effective_io_concurrency on tablespaces in 9.6+. Fixes #2000
parent
a93a99fdc0
commit
07e1c61eea
|
@ -563,9 +563,15 @@ class TablespaceView(PGChildNodeView):
|
||||||
This function will return list of variables available for
|
This function will return list of variables available for
|
||||||
table spaces.
|
table spaces.
|
||||||
"""
|
"""
|
||||||
SQL = render_template(
|
ver = self.manager.version
|
||||||
"/".join([self.template_path, 'variables.sql'])
|
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)
|
status, rset = self.conn.execute_dict(SQL)
|
||||||
|
|
||||||
if not status:
|
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');
|
Loading…
Reference in New Issue