Checking for available extensions

PostgreSQL offers various views to figure out which extensions are there on the system and which ones are actually deployed. One of those views is pg_available_extensions:

test=# \d pg_available_extensionsView "pg_catalog.pg_available_extensions" Column            | Type | Modifiers-------------------+------+----------- name              | name |  default_version   | text |  installed_version | text | comment           | text |

It contains a list of all extensions available, including their names, their default version, and the version currently installed. To make it easier for the end user, there is also a description available, telling us more about the extension.

The following listing contains two lines taken from pg_available_extensions ...

Get Mastering PostgreSQL 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.