O'Reilly logo

PostgreSQL 9 Administration Cookbook - Second Edition by Simon Riggs, Gianni Ciolli, Hannu Krosing, Gabriele Bartolini

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing installed extensions

In the last two recipes, we showed you how to install external modules in PostgreSQL to augment its capabilities. Actually, the last recipe came in two variants, depending on whether we can use the newly introduced extension infrastructure.

In this recipe, we will show you some more capabilities offered by the extension infrastructure. Everything here applies only to PostgreSQL version 9.1 and later.

Getting ready

You only need to ensure that your PostgreSQL version is 9.1 or later.

How to do it…

First, we list all available extensions:

postgres=# \x on
Expanded display is on.
postgres=# SELECT *
postgres-# FROM pg_available_extensions
postgres-# ORDER BY name;
-[ RECORD 1 ]-----+-------------------------------------------------- ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required