pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [PATCH] Add result_types column to pg_prepared_statements view
Date: Tue, 05 Jul 2022 10:27:54 +0100
Message-ID: <87mtdnkixx.fsf@wibble.ilmari.org> (raw)
In-Reply-To: <6e806480-5414-f4bb-0ff5-620d08eebff7@enterprisedb.com>
References: <871qwpo7te.fsf@wibble.ilmari.org>
	<58307e2c-a26c-d438-27f7-5bef9f693943@enterprisedb.com>
	<87v8shj9w7.fsf@wibble.ilmari.org>
	<5a1f587b-0d89-3ade-ea7e-4878e1d3e144@enterprisedb.com>
	<dd516b54-76b8-40ab-a39f-16c64571e537@www.fastmail.com>
	<6e806480-5414-f4bb-0ff5-620d08eebff7@enterprisedb.com>

Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:

> There was a problem that we didn't cover: Not all prepared statements
> have result descriptors (e.g., DML statements), so that would crash as 
> written. 

D'oh!

> I have changed it to return null for result_types in that case, and
> added a test case.

Thanks for spotting and fixing that.

- ilmari





view thread (8+ messages)

Message-ID: <87mtdnkixx.fsf@wibble.ilmari.org>
Permalink:  ../87mtdnkixx.fsf@wibble.ilmari.org/
Also on:    postgresql.org/message-id/87mtdnkixx.fsf@wibble.ilmari.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: ilmari@ilmari.org, peter.eisentraut@enterprisedb.com, tgl@sss.pgh.pa.us
  Subject: Re: [PATCH] Add result_types column to pg_prepared_statements view
  In-Reply-To: <87mtdnkixx.fsf@wibble.ilmari.org>
  References: <871qwpo7te.fsf@wibble.ilmari.org> <58307e2c-a26c-d438-27f7-5bef9f693943@enterprisedb.com> <87v8shj9w7.fsf@wibble.ilmari.org> <5a1f587b-0d89-3ade-ea7e-4878e1d3e144@enterprisedb.com> <dd516b54-76b8-40ab-a39f-16c64571e537@www.fastmail.com> <6e806480-5414-f4bb-0ff5-620d08eebff7@enterprisedb.com> <87mtdnkixx.fsf@wibble.ilmari.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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