How to list all prepared statements for all active sessions?
I know that there is a way to list all prepared statements for the current session by selecting all rows from the pg_prepared_statements table, but is there a way to see all prepared statements for all active sessions ? I think I'm looking for something like an administrator function, but I can't find anything like it in the docs. Nope. AFAIK prepared statements are local to a backend; other backends just don't know they exist. You'd need to modify the server to add additional inter-process communication to allow one backend to ask the others about prepared statements. The backends initally