Re: [BUG] temporary file usage report with extended protocol and unnamed portals - Mailing list pgsql-hackers

From Mircea Cadariu
Subject Re: [BUG] temporary file usage report with extended protocol and unnamed portals
Date
Msg-id ccf299d6-8655-4f04-b18b-6c0c21606942@gmail.com
Whole thread Raw
In response to Re: [BUG] temporary file usage report with extended protocol and unnamed portals  (Sami Imseih <samimseih@gmail.com>)
Responses Re: [BUG] temporary file usage report with extended protocol and unnamed portals
List pgsql-hackers

Hi,

On 18/09/2025 18:06, Sami Imseih wrote:
The "everything" also includes the query_text.

This makes me wonder then if all it takes is just adding this to PortalDrop (proposed earlier in the thread by Frédéric):

if (portal->queryDesc)
    debug_query_string = portal->queryDesc->sourceText; 

I tried it out and the tests in v12-0002 pass.  

Kind regards,

Mircea Cadariu

pgsql-hackers by date:

Previous
From: Nazir Bilal Yavuz
Date:
Subject: Re: Meson0.57.2 setup failed with option -Duuid=ossp
Next
From: Tender Wang
Date:
Subject: Fix typo in comment of match_orclause_to_indexcol()