The .control file

Along with the extension installation script file, you must provide a .control file. The .control file for our example postal.control looks like this:

# postal address processing extension
comment = 'utilities for postal processing'
default_version = '1.0'
module_pathname = '$libdir/postal'
relocatable = true
requires = 'plpgsql'

The purpose of the .control file is to provide a description of your extension. This metadata may include directory, default_version, comment, encoding, module_pathname, requires, superuser, relocatable, and schema.

The main PostgreSQL documentation for this file is located at http://www.postgresql.org/docs/current/static/extend-extensions.html.

This example shows the requires configuration parameter. Our ...

Get PostgreSQL Server Programming - Second Edition 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.