Re: [GENERAL] is this a known bug in 9.6?

Поиск
Список
Период
Сортировка
От Marc Mamin
Тема Re: [GENERAL] is this a known bug in 9.6?
Дата
Msg-id B6F6FD62F2624C4C9916AC0175D56D88593038DD@jenmbs01.ad.intershop.net
обсуждение исходный текст
Ответ на Re: [GENERAL] is this a known bug in 9.6?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

> -----Original Message-----
> From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-
> owner@postgresql.org] On Behalf Of Tom Lane
> Sent: Dienstag, 13. Dezember 2016 16:32
> To: Torsten Förtsch
> Cc: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] is this a known bug in 9.6?
>
> =?UTF-8?Q?Torsten_F=C3=B6rtsch?= <tfoertsch123@gmail.com> writes:
> > postgres=# with i(x) as (values (1::int)), j(y) as (values (2::int))
> > select x from (select x from i union all select y from j) b; x
> > ---
> > 1
> > 2
> > (2 rows)
>
> > postgres=# with i(x) as (values (1::int)), j(y) as (values (2::int))
> > select
> > max(x) from (select x from i union all select y from j) b;
> > ERROR:  could not find plan for CTE "i"
>
> Yup, sure looks like a bug to me, especially since it seems to work as
> expected before 9.5.  No idea offhand what broke it.
>
>             regards, tom lane


This is strange: using another aggreg. function works:

with i as (select 1::int x),
     j as (select 1::int x)
select
count(x) from (select x from i union all select x from j) b;
---
2

with i as (select 1::int x),
     j as (select 1::int x)
select
max(x) from (select x from i union all select x from j) b;
---
ERROR:  could not find plan for CTE "i"

regards,
Marc Mamin


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] is this a known bug in 9.6?
Следующее
От: Thomas Kellerer
Дата:
Сообщение: [GENERAL] pg_dump and quoted identifiers