Re: ERROR: no relation entry for relid 3

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: ERROR: no relation entry for relid 3
Date: 2026-10-04 07:23:04
Message-ID: CAMbWs4-0ZA4YdeX4C-drPLALAeXAKwwMMJSC9vUE6aCBefXUrg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Sep 16, 2026 at 7:54 PM Ayush Tiwari
<ayushtiwari(dot)slg01(at)gmail(dot)com> wrote:
> Though is the EXPLAIN test added necessary? Since the execution
> query already fails without the fix, maybe we can get rid of the EXPLAIN
> portion?

I'm inclined to keep the EXPLAIN, in order to ensure that the join
alias in the TABLESAMPLE clause can be expanded.

I've pushed this patch and back-patched it to all supported branches.

- Richard

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertrand Drouvot 2026-10-04 07:44:22 Re: Session in aborted transaction misses effective_wal_level change
Previous Message jian he 2026-10-04 06:47:09 Re: [PATCH] Add planner support function to two-argument regexp_like()