Re: [HACKERS] psql nested queries with 2000+ records - Mailing list pgsql-hackers

From Coronach
Subject Re: [HACKERS] psql nested queries with 2000+ records
Date
Msg-id 3.0.5.32.19980321232139.007b4da0@diety.conclave.org
Whole thread Raw
In response to Re: [HACKERS] psql nested queries with 2000+ records  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] psql nested queries with 2000+ records
Re: [HACKERS] psql nested queries with 2000+ records
List pgsql-hackers
Aparently, the postgresql server was moved from the BSDI box to a linux
2.0.30 box, so the numbers that where given where not from the bsdi box. So
now I am doing the queries personally.  I'm sorry for the run around.

This is the responce from the explain on the BSDI 3.1 box.

amusements=> explain select name from games where name in (select name from
game
s where name like 'A%');
NOTICE:  QUERY PLAN:

Seq Scan on games  (cost=0.00 size=0 width=12)
  SubPlan
    ->  Seq Scan on games  (cost=0.00 size=0 width=12)

EXPLAIN

amusements=> explain select name from games where name in (select name from
game
s2 where mfr = '');
NOTICE:  QUERY PLAN:

Seq Scan on games  (cost=0.00 size=0 width=12)
  SubPlan
    ->  Seq Scan on games2  (cost=0.00 size=0 width=12)

EXPLAIN

amusements=> explain select * from games where mfr = '';
NOTICE:  QUERY PLAN:

Seq Scan on games  (cost=0.00 size=0 width=160)

EXPLAIN

Once again, I appologize for this misinformation and hope this sheds some
light to the original problem.  I'm making a note to change permissions on
who can do what from now on.

On a side note, the query was done on the 2.0.30 box in 5 minutes compared
to the BSDI box at 15+.

-Coronach@hill-b-073.resnet.purdue.edu


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: sched_yield()
Next
From: Marc Howard Zuckman
Date:
Subject: Re: [HACKERS] patch for memory overrun on Linux(i386)