pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: webbohan@qq.com
Subject: BUG #19073: there are meaningless code in _SPI_execute_plan() when canSetTag is true
Date: Sun, 05 Oct 2025 02:29:34 +0000
Message-ID: <19073-93772b97a2f1ecf3@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      19073
Logged by:          Webbo Han
Email address:      webbohan@qq.com
PostgreSQL version: 18.0
Operating system:   all
Description:        

In function _SPI_execute_plan(), `my_tuptable` is local variable and
initialized as NULL.
If plan is canSetTag subqueries, `SPI_freetuptable(my_tuptable)` is
meaningless, because `my_tuptable` is NULL.
We'd better remove this code.



view thread (3+ messages)  latest in thread

Message-ID: <19073-93772b97a2f1ecf3@postgresql.org>
Permalink:  ../19073-93772b97a2f1ecf3@postgresql.org/
Also on:    postgresql.org/message-id/19073-93772b97a2f1ecf3@postgresql.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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, webbohan@qq.com
  Subject: Re: BUG #19073: there are meaningless code in _SPI_execute_plan() when canSetTag is true
  In-Reply-To: <19073-93772b97a2f1ecf3@postgresql.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