How to remove a table statistics ? - Mailing list pgsql-performance

From Marc Mamin
Subject How to remove a table statistics ?
Date
Msg-id C4DAC901169B624F933534A26ED7DF310861B344@JENMAIL01.ad.intershop.net
Whole thread Raw
Responses Re: How to remove a table statistics ?  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance

Hello,

I have a weird table, upon with the queries are much faster when no statics were collected.

Is there a way to delete statistics information for a table ?

I've tried ALTER.. set STATISTICS 0 and then run ANALYZE, but it seems that old statistics are kept this way.

Can I delete entries directly in pg_statistic ?

(Postgresql 9.1)

 short backgroud Info:

 

 One of the table index is a GIN on a tsvector returning function, which is very costy.

 once analyzed, the query planner often ignore this index in favour of other one, hence triggering this function too often.

 

 I'll fix that model, but am first looking for a quick way to restore performance on our production servers.

 

 

 best regards,

 

 Marc Mamin

pgsql-performance by date:

Previous
From: "Tomas Vondra"
Date:
Subject: Re: How to improve insert speed with index on text column
Next
From: Josh Berkus
Date:
Subject: Re: How to remove a table statistics ?