.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "CDIST-TYPE__POSTGRES_EXTENSION" "7" "Sep 26, 2023" "7.0.0" "cdist" .SH NAME .sp cdist\-type__postgres_extension \- Manage PostgreSQL extensions .SH DESCRIPTION .sp This cdist type allows you to manage PostgreSQL extensions. .sp The \fB__object_id\fP to pass to \fB__postgres_extension\fP is of the form \fBdbname:extension\fP, e.g.: .INDENT 0.0 .INDENT 3.5 .sp .EX rails_test:unaccent .EE .UNINDENT .UNINDENT .sp \fBCAUTION!\fP Be careful when installing extensions from (untrusted) third\-party sources: .INDENT 0.0 .INDENT 3.5 .nf Installing an extension as superuser requires trusting that the extension\(aqs 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. – \fI\%https://www.postgresql.org/docs/13/sql\-createextension.html#id\-1.9.3.64.7\fP .fi .sp .UNINDENT .UNINDENT .SH OPTIONAL PARAMETERS .INDENT 0.0 .TP .B state either \fBpresent\fP or \fBabsent\fP, defaults to \fBpresent\fP\&. .UNINDENT .SH EXAMPLES .INDENT 0.0 .INDENT 3.5 .sp .EX # 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 .EE .UNINDENT .UNINDENT .SH SEE ALSO .INDENT 0.0 .IP \(bu 2 \fBcdist\-type__postgres_database\fP(7) .IP \(bu 2 PostgreSQL \(dqCREATE EXTENSION\(dq documentation at: \fI\%http://www.postgresql.org/docs/current/static/sql\-createextension.html\fP\&. .UNINDENT .SH AUTHORS .nf Tomas Pospisek <\fI\%tpo_deb\-\-@\-\-sourcepole.ch\fP> Dennis Camera <\fI\%dennis.camera\-\-@\-\-ssrq\-sds\-fds.ch\fP> .fi .sp .SH COPYING .sp 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. .SH COPYRIGHT ungleich GmbH 2021 .\" Generated by docutils manpage writer. .