pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Ellis <tom-lists-postgresql.org@jaguarpaw.co.uk>
To: pgsql-bugs@lists.postgresql.org
Subject: Small query yields "error: no relation entry for relid 11"
Date: Sat, 5 Dec 2020 17:30:56 +0000
Message-ID: <20201205173056.GF30712@cloudinit-builder> (raw)

This small query results in "error: no relation entry for relid 11" in
Postgres 12 and 13 (beta) on db-fiddle.com.  It runs fine in Posgres
11.

Tom


SELECT 0
      FROM
      (SELECT 0) as "T1"
      LEFT OUTER JOIN
      (SELECT * FROM (SELECT *
        FROM
        (SELECT
         0) as "T1"
        LEFT OUTER JOIN
        (SELECT
         TRUE as "r") as "T2"
        ON
        TRUE) as "T1",
       LATERAL
       (SELECT
        TRUE as "b"
        UNION ALL
        SELECT
        CASE WHEN "r" THEN TRUE ELSE TRUE END as "b") as "T2"
        ) as "T2"
      ON
      "b"





view thread (2+ messages)  latest in thread

Message-ID: <20201205173056.GF30712@cloudinit-builder>
Permalink:  ../20201205173056.GF30712@cloudinit-builder/
Also on:    postgresql.org/message-id/20201205173056.GF30712@cloudinit-builder

 · 

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: tom-lists-postgresql.org@jaguarpaw.co.uk, pgsql-bugs@lists.postgresql.org
  Subject: Re: Small query yields "error: no relation entry for relid 11"
  In-Reply-To: <20201205173056.GF30712@cloudinit-builder>

* 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