Re: [SQL] Query never returns ...

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Brice Ruth <brice(at)webprojkt(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Query never returns ...
Date: 2001-02-08 16:57:14
Message-ID: Pine.BSF.4.21.0102080855120.54197-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql


After you load the data, you need to run vacuum analzye. That'll
get statistics on the current data in the table. Of course, I'm
not sure that'll help in this case.

On Thu, 8 Feb 2001, Brice Ruth wrote:

> Stephan,
>
> Here is what EXPLAIN shows:
>
> NOTICE: QUERY PLAN:
>
> Sort (cost=0.02..0.02 rows=1 width=64)
> -> Nested Loop (cost=0.00..0.01 rows=1 width=64)
> -> Seq Scan on tblmedcond (cost=0.00..0.00 rows=1 width=36)
> -> Seq Scan on tblsidedruglink (cost=0.00..0.00 rows=1 width=28)
>
> As for vacuum analyze - prior to running into these problems, I deleted
> all data from the database (using delete from <tblname>) and then ran
> vacuumdb -a, after which I loaded the data into the tables using 'copy
> ... from' - there have been no updates to the database since then -
> merely selects.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mayers, Philip J 2001-02-08 17:02:11 RE: Re: Query never returns ...
Previous Message Brice Ruth 2001-02-08 16:52:00 Re: [SQL] Query never returns ...

Browse pgsql-sql by date

  From Date Subject
Next Message Brice Ruth 2001-02-08 17:06:49 Re: [SQL] Query never returns ...
Previous Message Brice Ruth 2001-02-08 16:52:00 Re: [SQL] Query never returns ...