Unexpected behaviour, definitely looks like a bug.

From: Leshchuk Aleksey <leshchuk(dot)aleksey(at)aurea(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Unexpected behaviour, definitely looks like a bug.
Date: 2019-04-09 21:38:47
Message-ID: 8120BE07-AC15-457B-B4CE-3E9BCC0D13E0@aurea.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PostgresQL version 9.4.20

WITH test(id, not_id) AS (
SELECT * FROM (VALUES (1,1), (3,4)) AS t
),

test2(id1) AS (
SELECT * FROM (VALUES (2), (3) ) AS t
)
-- SELECT not_id FROM test2 -- ERROR column "not_id" does not exist

SELECT * FROM test WHERE id IN ( SELECT not_id FROM test2 ); -- <-- not_id selected from test table no ERROR, result is: 1,1

Aleksey Leshchuk
Ruby on Rails Chief Software Architect
- o. +79262462693 <>m. +79262462693 <>
Skype: leshchuk <>
<https://www.aurea.com/?utm_source=email-signature&utm_medium=email>

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Nikolay Samokhvalov 2019-04-09 22:03:59 Re: Unexpected behaviour, definitely looks like a bug.
Previous Message PG Bug reporting form 2019-04-09 20:29:51 BUG #15745: WAL References Invalid Pages...that eventually resolves