From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
Cc: | Martijn van Oosterhout <kleptog(at)cupid(dot)suninternet(dot)com>, Joseph Shraibman <jks(at)selectacast(dot)net>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Weird indices |
Date: | 2001-02-21 21:46:05 |
Message-ID: | 12246.982791965@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> writes:
> One thing that might be interesting is to see what it does if you tried
> changing stacommonfraq in pg_statistic for that relation after a vacuum
> analyze. That should change how many rows it thinks the most common value
> has. I'm not sure of any side effects, but it seems to immediately change
> my row estimates from explain.
AFAIK there aren't any side effects; you can manually twiddle
pg_statistic as much as you like. Of course, your hacks will get
overwritten at the next vacuum analyze of the table, but if you're
convinced you've got the perfect numbers in there, you could just not
ever do a vacuum analyze ;-)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Richardson | 2001-02-21 22:27:21 | Re: Multiple triggers/rules |
Previous Message | newsreader | 2001-02-21 21:45:09 | DBD::Pg is suddenly acting up! |