From: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: INDEX and JOINs |
Date: | 2007-10-27 10:42:04 |
Message-ID: | 20071027104204.GA25585@KanotixBox |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Reg Me Please <regmeplease(at)gmail(dot)com> schrieb:
> Il Saturday 27 October 2007 08:51:09 Andreas Kretschmer ha scritto:
> > Reg Me Please <regmeplease(at)gmail(dot)com> schrieb:
> > > How can I "Increasing the statistics target for the larger table"?
> > > I'ìm sorry for asking, but I'm not that deep into RDBMS.
> >
> > alter table <table> alter column <column> SET STATISTICS <value>;
> >
> > Andreas
>
> How can I display the statistics for a table/column/index/whatever applies?
select attstattarget from pg_attribute where attname = <column> and attrelid=<table>::regclass;
for instance:
select attstattarget from pg_attribute where attname = 'ts' and attrelid='foo'::regclass;
-1 means the default statistics value.
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
From | Date | Subject | |
---|---|---|---|
Next Message | andy | 2007-10-27 12:52:27 | Re: Postgres+Apache+PHP (again, but in different setup) |
Previous Message | Simon Riggs | 2007-10-27 08:53:45 | Re: WAL archiving idle database |