pgdisablelogerror

Website

https://github.com/fmbiete/pgdisablelogerror/

Description

pgdisablelogerror disables server logging for specified SQL error codes. This allows you to omit messages for acceptable errors, for example unique key violations (23505).

Package naming convention

The PostgreSQL RPM repository uses PostgreSQL version numbers in the RPM packages. For example pgdisablelogerror for PostgreSQL 18 is named as pgdisablelogerror_18. Similarly pgdisablelogerror for PostgreSQL 17 is named as pgdisablelogerror_17.

Subpackages

pgdisablelogerror provides the following subpackages:

  • llvmjit: Provides just-in-time compilation support for pgdisablelogerror

Package specifications and repository requirements

PostgreSQL PGDG RPM repository

Install PGDG repository from: https://zypp.postgresql.org/repopackages/

Installation

OS Command
SuSE Enterprise Linux 15 / 16, OpenSuSE Leap 16.0 zypper install pgdisablelogerror_18 (or change the version as described above)

Post-installation

pgdisablelogerror requires to be added to shared_preload_libraries before creating the extension. This requires a restart of the PostgreSQL instance to take effect. If there are additional libraries, please be sure to add them as a comma-separated list. An example is:
shared_preload_libraries="pgdisablelogerror"

You can create the extension after restarting the instance. Connect to the database that you want to create the extension as superuser and run:
CREATE EXTENSION pgdisablelogerror;

Additional GUC

You can use the following GUC to manage this extension:

  • pgdisablelogerror.sqlerrcode = '' # Comma-separated list of SQL error codes to exclude from server logging. Empty or NULL disables the extension, e.g. '23505'

Available packages

PostgreSQL version(s) OS version Arch Status
18,17,16,15,14 SuSE Enterprise Linux 16 x86_64 Available
18,17,16,15,14 OpenSuSE Leap 16.0 x86_64 Available
18,17,16,15,14 SuSE Enterprise Linux 15 x86_64 Available