You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add current_setting() PostgreSQL function for driver compatibility
- Implement current_setting(setting_name) function with comprehensive PostgreSQL settings
- Add support for common settings that PostgreSQL drivers query during connection:
* server_version, server_version_num, client_encoding, timezone
* application_name, session_authorization, search_path, datestyle
* transaction isolation, connection limits, and configuration settings
- Register function in pg_catalog.pg_proc for proper PostgreSQL compatibility
- Resolves 'Invalid function current_setting' errors from asyncpg and other drivers
This addresses a critical PostgreSQL compatibility gap where drivers fail
to connect due to missing current_setting() function. The implementation
provides reasonable defaults for all common PostgreSQL configuration
settings that tools and drivers typically query during initialization.
Fixes connection issues with:
- asyncpg Python driver
- Heavy load testing scripts
- PostgreSQL client tools that query configuration settings
The function maintains PostgreSQL wire protocol compatibility and enables
broader tool/driver ecosystem support.
0 commit comments