[PATCH] Add result_types column to pg_prepared_statements view

Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>

From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: pgsql-hackers@lists.postgresql.org
Date: 2022-05-19T15:34:05Z
Lists: pgsql-hackers

Attachments

Hi hackers,

Prompted by a question on IRC, here's a patch to add a result_types
column to the pg_prepared_statements view, so that one can see the types
of the columns returned by a prepared statement, not just the parameter
types.

I'm not quite sure about the column name, suggestions welcome.

- ilmari

Commits

  1. Add result_types column to pg_prepared_statements view

  2. In RowDescription messages, report columns of domain datatypes as having