Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8eqj-0000hl-Gy for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Jul 2022 09:28:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8eqi-0006hG-1C for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Jul 2022 09:28:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8eqh-0006h7-3G for pgsql-hackers@lists.postgresql.org; Tue, 05 Jul 2022 09:28:03 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8eqe-0001Qg-38 for pgsql-hackers@lists.postgresql.org; Tue, 05 Jul 2022 09:28:02 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0BA545C0134; Tue, 5 Jul 2022 05:27:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 05 Jul 2022 05:27:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1657013278; x=1657099678; bh=T2J6BN6akf 50X0ruERFVTYpONKZmMkcZGi58Efd8ZUQ=; b=2EsXsVAuhshIaEy9mirrC1JAFp poatzwf4sTalIDprRHttXOSdnTtc6Y3nurgYloxC1iuMHBeXxeO/liFKfhVHBD8M 26ARMU4YMhiT2lk1Kn8ubH2wIO08W0vknKUIw4IQRP/+RQLYoRvZlCdtHjlTKTJo JI+ZRGJhpx2MS5CiTA29R5K60CBv66Zja3qAfIfQ13feQQK2dqqtUjTnN2OTUT4m 6a2iEgk3Tndu2e5W91N0Y/Zzg1Cqauphu3QuGTYCbfD23kP4Xs37OvdemeCkmgC9 WKX13LH62YXwglaFOhFUbf0lGIH3d5BGUx66l1z7AeQd5VP2qWc0hmqAMOcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1657013278; x=1657099678; bh=T2J6BN6akf50X0ruERFVTYpONKZm MkcZGi58Efd8ZUQ=; b=imTVjl7Xd2guu3NDJoETM5mt/CZbIrpGvOB2f9CVYwM7 M0p8uMiLoJgUllfxR2cq6RikCVvmDqXiGKXJqRFPDB1KjYt1Ci5PG2U2uTjDAvUo mvWIUy7TJvY1826USpK08ZYWOu8XeZCy2qo14xj/dE3GsXwVysbYl4n79ictLK7U spRnodFvcYvkZ0kXTLarixgwmFvvgr6hPzGFBcBke5Qys4LK5LVSotZQZoHNKzIg MYDSnUZzjhwg3QPPKQRGBln0v0+jKrCQ+Alx90DygbldUF25lhvhlErRewA87z7h qK9AoQDHuykjnQ8EMg9DvSLEnPHr/rFBitBdX+g2rg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeiuddgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufhffjgfkfgggtgesthdtredttderjeenucfhrhhomhepffgrghhf ihhnnhgpkfhlmhgrrhhipgforghnnhhsnohkvghruceoihhlmhgrrhhisehilhhmrghrih drohhrgheqnecuggftrfgrthhtvghrnhepgeehhffhgfefteffgeduiedvueettefgleff vdehffdukeduteejiefhfeegvdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepihhlmhgrrhhisehilhhmrghrihdrohhrgh X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Jul 2022 05:27:57 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Peter Eisentraut Cc: Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] Add result_types column to pg_prepared_statements view 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> <6e806480-5414-f4bb-0ff5-620d08eebff7@enterprisedb.com> Date: Tue, 05 Jul 2022 10:27:54 +0100 In-Reply-To: <6e806480-5414-f4bb-0ff5-620d08eebff7@enterprisedb.com> (Peter Eisentraut's message of "Tue, 5 Jul 2022 11:20:53 +0200") Message-ID: <87mtdnkixx.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut 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