``CONSFIGURATOR.PROPERTY.POSTGRES``
===================================
API reference
-------------

General
~~~~~~~

Property: ``POSTGRES:INSTALLED``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``(postgres:installed)``

Ensure that postgresql and associated utilities are installed.

Property: ``POSTGRES:SUPERUSER-IS``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``(postgres:superuser-is name)``

Record Postgres superuser

Property: ``POSTGRES:HAS-ROLE``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``(postgres:has-role role)``

Ensure ROLE exists in the Postgres cluster.

Property: ``POSTGRES:HAS-DATABASE``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``(postgres:has-database db-name)``

Ensure Postgres DATABASE exists

Property: ``POSTGRES:DATABASE-HAS-OWNER``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``(postgres:database-has-owner database owner)``

Property: ``POSTGRES:HAS-GROUP``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``(postgres:has-group user group)``

Ensure Postgres user USER is a member of GROUP.

Property: ``POSTGRES:USER-CAN-LOGIN``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``(postgres:user-can-login user)``

Ensure USER can login to Postgres.
