InspIRCd v2 is coming to the end of its lifetime!

Fixes for security vulnerabilities will be provided until 2020-06-01 but after this date v2 will no longer be maintained.

InspIRCd v3 contains many new features including full support for all currently ratified IRCv3 extensions and WebSocket connections.

InspIRCd v3 installation instructions are available here and a list of breaking changes is available here.

The "pgsql" Module

Description

This module provides the ability for SQL modules to query a PostgreSQL database.

Configuration

To load this module use the following <module> tag:

<module name="m_pgsql.so">

<database>

The <database> tag defines a PostgreSQL database to connect to. This tag can be defined as many times as required.

Name Type Default Value Description
module Text None Required! This MUST be set to "pgsql" to connect to a PostgreSQL database.
id Text None Required! The name that SQL-using modules can refer to this <database> tag using.
host Text None Required! The hostname or IP address of a PostgreSQL server.
port Number None Required! The port on which the PostgreSQL server is listening.
ssl Boolean No Whether to connect to the PostgreSQL server using SSL.
user Text None Required! The username to log into the PostgreSQL server with.
pass Text None Required! The password to log into the PostgreSQL server with.
name Text None Required! The name of the PostgreSQL database to use.
Example Usage
<database module="pgsql"
          id="opers"
          host="localhost"
          port="3306"
          ssl="yes"
          user="ircd_opers"
          pass="changeme"
          name="inspircd">