pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrei Lepikhov <a.lepikhov@postgrespro.ru>
To: Tender Wang <tndrwang@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: "type with xxxx does not exist" when doing ExecMemoize()
Date: Mon, 26 Feb 2024 09:52:59 +0700
Message-ID: <d3da9856-0394-48e6-9f41-543c589e9585@postgrespro.ru> (raw)
In-Reply-To: <CAHewXNnT6N6UJkya0z-jLFzVxcwGfeRQSfhiwA+NyLg-x8iGew@mail.gmail.com>
References: <CAHewXNnT6N6UJkya0z-jLFzVxcwGfeRQSfhiwA+NyLg-x8iGew@mail.gmail.com>

On 25/2/2024 20:32, Tender Wang wrote:
> I think in prepare_probe_slot(), should called datumCopy as the attached 
> patch does.
> 
> Any thoughts? Thanks.
Thanks for the report.
I think it is better to invent a Runtime Memory Context; likewise, it is 
already designed in IndexScan and derivatives. Here, you just allocate 
the value in some upper memory context.
Also, I'm curious why such a trivial error hasn't been found for a long time

-- 
regards,
Andrei Lepikhov
Postgres Professional






view thread (19+ messages)  latest in thread

Message-ID: <d3da9856-0394-48e6-9f41-543c589e9585@postgrespro.ru>
Permalink:  ../d3da9856-0394-48e6-9f41-543c589e9585@postgrespro.ru/
Also on:    postgresql.org/message-id/d3da9856-0394-48e6-9f41-543c589e9585@postgrespro.ru

 · 

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: a.lepikhov@postgrespro.ru, tndrwang@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: "type with xxxx does not exist" when doing ExecMemoize()
  In-Reply-To: <d3da9856-0394-48e6-9f41-543c589e9585@postgrespro.ru>

* 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