cdist-type__postgres_extension - Man Page

Manage PostgreSQL extensions


This cdist type allows you to manage PostgreSQL extensions.

The __object_id to pass to __postgres_extension is of the form dbname:extension, e.g.:


CAUTION! Be careful when installing extensions from (untrusted) third-party sources:

Installing an extension as superuser requires trusting that the extension's
author wrote the extension installation script in a secure fashion. It is
not terribly difficult for a malicious user to create trojan-horse objects
that will compromise later execution of a carelessly-written extension
script, allowing that user to acquire superuser privileges.

Optional Parameters


either present or absent, defaults to present.


# Install extension unaccent into database rails_test
__postgres_extension rails_test:unaccent

# Drop extension unaccent from database fails_test
__postgres_extension rails_test:unaccent --state absent

See Also


Tomas Pospisek <>
Dennis Camera <>


Copyright (C) 2014 Tomas Pospisek, 2021 Dennis Camera. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.


Jul 31, 2022 7.0.0 cdist