A module used to create and manage PostgreSQL tablespaces.
ssd-tablespace:
postgres_tablespace.present:
- name: indexes
- directory: /mnt/ssd-data
New in version 2015.8.0.
salt.states.postgres_tablespace.
absent
(name, user=None, maintenance_db=None, db_user=None, db_password=None, db_host=None, db_port=None)¶Ensure that the named tablespace is absent.
salt.states.postgres_tablespace.
present
(name, directory, options=None, owner=None, user=None, maintenance_db=None, db_password=None, db_host=None, db_port=None, db_user=None)¶Ensure that the named tablespace is present with the specified properties. For more information about all of these options see man ``create_tablespace``(7).
A dictionary of options to specify for the tablespace.
Currently, the only tablespace options supported are seq_page_cost
and random_page_cost
. Default values are shown in the example below:
my_space:
postgres_tablespace.present:
- directory: /srv/my_tablespace
- options:
seq_page_cost: 1.0
random_page_cost: 4.0