Re: Does pg_dump ignore indexes? - Mailing list pgsql-general

From Tom Lane
Subject Re: Does pg_dump ignore indexes?
Date
Msg-id 2860.974750534@sss.pgh.pa.us
Whole thread Raw
In response to Does pg_dump ignore indexes?  ("Vilson farias" <vilson.farias@digitro.com.br>)
List pgsql-general
"Vilson farias" <vilson.farias@digitro.com.br> writes:
> I've been testing hardly and now I found something interesting : these
> errors only happen when model/data are imported with pg_dump help, that is,
> all indexed fields are sequencially scanned when I do a select from some
> pk-indexed table, but if model/data where created/imported  without pg_dump,
> then everything works fine. Does anyone know why this is happening?

Have you done a VACUUM ANALYZE after loading the pg_dump output?
It looks to me like the planner may not have statistics about the table...

            regards, tom lane

pgsql-general by date:

Previous
From: "Anders R. Sveen"
Date:
Subject: Logging
Next
From: Rich Shepard
Date:
Subject: Re: Cannot create users