pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #7580: repeatable test case for the BUG #7579
2+ messages / 2 participants
[nested] [flat]

* BUG #7580: repeatable test case for the BUG #7579
@ 2012-10-03 10:32  maxim.boguk@gmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: maxim.boguk@gmail.com @ 2012-10-03 10:32 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      7580
Logged by:          Maxim Boguk
Email address:      maxim.boguk@gmail.com
PostgreSQL version: 9.2.1
Operating system:   Linux
Description:        


create table t1 as select id from generate_series(1,100000) as g(id);
create table t2 as select id from generate_series(1,100000) as g(id);
alter table t1 add primary key (id);
alter table t2 add primary key (id);
analyze t1;
analyze t2;

explain select * from t1
left outer join 
(
  select distinct t2.id from t2 
  where t2.id>100
) as _t on _t.id=t1.id
where
(t1.id>100  or (t1.id<100 and _t.id IS NOT NULL));

The connection to the server was lost.





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #7580: repeatable test case for the BUG #7579
@ 2012-10-03 15:46  Tom Lane <tgl@sss.pgh.pa.us>
  parent: maxim.boguk@gmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2012-10-03 15:46 UTC (permalink / raw)
  To: maxim.boguk@gmail.com; +Cc: pgsql-bugs

maxim.boguk@gmail.com writes:
> create table t1 as select id from generate_series(1,100000) as g(id);
> create table t2 as select id from generate_series(1,100000) as g(id);
> alter table t1 add primary key (id);
> alter table t2 add primary key (id);
> analyze t1;
> analyze t2;

> explain select * from t1
> left outer join 
> (
>   select distinct t2.id from t2 
>   where t2.id>100
> ) as _t on _t.id=t1.id
> where
> (t1.id>100  or (t1.id<100 and _t.id IS NOT NULL));

> The connection to the server was lost.

Hm, I get an Assert trap in the planner, which means this is probably
my fault.  Will look.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2012-10-03 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03 10:32 BUG #7580: repeatable test case for the BUG #7579 maxim.boguk@gmail.com
2012-10-03 15:46 ` Tom Lane <tgl@sss.pgh.pa.us>

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