pg.ddx.io  psycopg/psycopg GitHub issues and pull requests  
help / color / mirror / Atom feed
From: AndrewJackson2020 (@AndrewJackson2020) <noreply+AndrewJackson2020@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: [psycopg/psycopg] issue #1291: Notice Handling During Start Up Phase
Date: Wed, 08 Apr 2026 13:30:59 +0000
Message-ID: <gh-psycopg-psycopg-1291@github.com> (raw)

In postgres wire protocol it is possible to send a notice during the start-up[0] phase: after AuthenticationOk has been received by the client but before ReadyForQuery. Is it possible to get these notices via psycopg3? It seems like `add_notice_handler` [1] can only happen after a connection object has been initialized, by which time the notices would have already been sent.

[0] https://www.postgresql.org/docs/current/protocol-flow.html#PROTOCOL-FLOW-START-UP
[1] https://www.psycopg.org/psycopg3/docs/api/connections.html#psycopg.Connection.remove_notify_handler

view thread (4+ messages)  latest in thread

Message-ID: <gh-psycopg-psycopg-1291@github.com>
Permalink:  ../gh-psycopg-psycopg-1291@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox