2016-06-21 03:06:44 -05:00
|
|
|
.. _extension_dialog:
|
2016-05-13 08:43:57 -05:00
|
|
|
|
2018-06-15 03:14:12 -05:00
|
|
|
*************************
|
|
|
|
`Extension Dialog`:index:
|
|
|
|
*************************
|
2016-05-13 08:43:57 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Use the *Extension* dialog to install a new extension into the current database.
|
|
|
|
An extension is a collection of SQL objects that add targeted functionality to
|
|
|
|
your Postgres installation. The *Extension* dialog adds the functionality of
|
|
|
|
an extension to the current database only; you must register the extension in
|
|
|
|
each database that use the extension. Before you load an extension into a
|
|
|
|
database, you should confirm that any pre-requisite files are installed.
|
2016-05-13 08:43:57 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
The *Extension* dialog allows you to implement options of the CREATE EXTENSION
|
|
|
|
command through the following dialog tabs: *General* and *Definition*. The *SQL*
|
|
|
|
tab displays the SQL code generated by dialog selections.
|
2016-05-13 08:43:57 -05:00
|
|
|
|
2016-05-20 15:39:21 -05:00
|
|
|
.. image:: images/extension_general.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: Extension dialog general tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2016-05-13 08:43:57 -05:00
|
|
|
|
|
|
|
Use the fields in the *General* tab to identify an extension:
|
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
* Use the drop-down listbox in the *Name* field to select the extension. Each
|
|
|
|
extension must have a unique name.
|
2023-08-03 06:53:03 -05:00
|
|
|
* Move the switch next to *Cascade?* towards right position to automatically
|
|
|
|
install any extensions that this extension depends on that are not already
|
|
|
|
installed.
|
2018-01-11 10:58:30 -06:00
|
|
|
* Store notes about the extension in the *Comment* field.
|
2016-05-13 08:43:57 -05:00
|
|
|
|
|
|
|
Click the *Definition* tab to continue.
|
|
|
|
|
2016-05-20 15:39:21 -05:00
|
|
|
.. image:: images/extension_definition.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: Extension dialog definition tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2016-05-13 08:43:57 -05:00
|
|
|
|
|
|
|
Use the *Definition* tab to select the *Schema* and *Version*:
|
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
* Use the drop-down listbox next to *Schema* to select the name of the schema
|
|
|
|
in which to install the extension's objects.
|
|
|
|
* Use the drop-down listbox next to *Version* to select the version of the
|
|
|
|
extension to install.
|
2016-05-13 08:43:57 -05:00
|
|
|
|
|
|
|
Click the *SQL* tab to continue.
|
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Your entries in the *Extension* dialog generate a SQL command (see an example
|
|
|
|
below). Use the *SQL* tab for review; revisit or switch tabs to make any changes
|
|
|
|
to the SQL command.
|
2016-05-24 07:47:35 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
Example
|
|
|
|
*******
|
2016-05-24 07:47:35 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
The following is an example of the sql command generated by user selections in
|
|
|
|
the *Extension* dialog:
|
2016-05-24 07:47:35 -05:00
|
|
|
|
2016-05-20 15:39:21 -05:00
|
|
|
.. image:: images/extension_sql.png
|
2018-01-11 10:58:30 -06:00
|
|
|
:alt: Extension dialog sql tab
|
2019-03-08 09:29:05 -06:00
|
|
|
:align: center
|
2018-01-11 10:58:30 -06:00
|
|
|
|
2021-09-24 10:31:56 -05:00
|
|
|
The command creates the *adminpack* extension in the *public* schema. It is
|
2023-08-03 06:53:03 -05:00
|
|
|
version *2.0* of *adminpack*.
|
2016-05-13 08:43:57 -05:00
|
|
|
|
2019-03-08 09:29:05 -06:00
|
|
|
* Click the *Info* button (i) to access online help.
|
2016-05-13 08:43:57 -05:00
|
|
|
* Click the *Save* button to save work.
|
2021-09-24 10:31:56 -05:00
|
|
|
* Click the *Close* button to exit without saving work.
|
2016-05-13 08:43:57 -05:00
|
|
|
* Click the *Reset* button to restore configuration parameters.
|
|
|
|
|