Skip to content

auth_delay

pause briefly before reporting authentication failure

auth_delay · pause briefly before reporting authentication failure

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
7970auth_delayauth_delay-SECPostgreSQLC
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--sL---NoYesYesNonono

Packages

PG19PG18PG17PG16PG15
-----
This contrib extension ships with PostgreSQL.

Install

Config this extension to shared_preload_libraries:

shared_preload_libraries = 'auth_delay';

This extension does not need CREATE EXTENSION DDL command

Usage

auth_delay: Pause before reporting authentication failure

auth_delay pauses the server briefly before reporting authentication failures, making brute-force password attacks more difficult.

Configuration

Add to postgresql.conf:

shared_preload_libraries = 'auth_delay'
auth_delay.milliseconds = '500'

Configuration Parameters

ParameterDefaultDescription
auth_delay.milliseconds0Milliseconds to wait before reporting auth failure

Notes

  • Must be loaded via shared_preload_libraries
  • Does not prevent denial-of-service attacks (waiting processes still hold connection slots)
  • No CREATE EXTENSION is required – this is a shared library module only

Table reader