From: Stephan Springl <springl-psql@bfw-online.de>
To: pgsql-bugs@lists.postgresql.org
Subject: syntactically correct query gives ERROR: failed to assign all NestLoopParams to plan nodes
Date: Fri, 15 Jan 2021 20:54:10 +0100 (MEZ)
Message-ID: <237d2b72-6dd0-7b24-3a6f-94288cd44b9c@bfw-online.de> (raw)
Hi,
running
psql -f NestLoopParams.sql
gives
psql:NestLoopParams.sql:16: ERROR: failed to assign all NestLoopParams to plan nodes
psql:NestLoopParams.sql:24: ERROR: failed to assign all NestLoopParams to plan nodes
and does not process the seemingly correct query
select u.zielnummer, gnummer.v
from u
left join b on b.btext ~ '^verr\. R(\d+)$'
left join lateral (select regexp_replace (b.btext, 'verr\. R', '')::int v)
as gnummer on true
left join lateral (select * from r where buchnummer = gnummer.v)
as r on true;
No results are given, not even row count or headers, just the error
message given above.
Everything needed to reproduce is in the file NestLoopParams.sql. The
tables do not need to be populated with data. The problem was verified
with Postgresql version 13.1 on a fresh debian sid x86_64 installation as
well as a 13.1 compiled under 32 bit i386 (Debian/Linux). Master from the
posgresql git repository (as of today's commit
f9900df5f94936067e6fa24a9df609863eb08da2) shows the same behaviour if
compiled under 32 bit i386 Debian/Linux.
I will be happy to provide more information if needed or helpful.
Thank you for your work on such an extraordinary piece of software.
Regards
Stephan
Attachments:
NestLoopParams.sql (application/x-sql, 763B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: springl-psql@bfw-online.de
Subject: Re: syntactically correct query gives ERROR: failed to assign all NestLoopParams to plan nodes
In-Reply-To: <237d2b72-6dd0-7b24-3a6f-94288cd44b9c@bfw-online.de>
References: <237d2b72-6dd0-7b24-3a6f-94288cd44b9c@bfw-online.de>
* 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