Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Pgadmin Support > Re: Count not u...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 1986 of 2130
Post > Topic >>

Re: Count not updated with VACUUM ANALYZE

by Stephen.Denne@[EMAIL PROTECTED] ("Stephen Denne") Mar 27, 2008 at 01:16 PM

=20
> Melvin Davidson a =E9crit :
> > *PgAdmin III 1.8.2***
> >=20
> >=20=20
> >=20
> > I have statistics enabled on my server. However, when I do a VACUUM=20
> > ANALYZE on my database, the count [ Rows (counted) ] is set to =93not=
=20
> > counted=94.
> >=20
> >=20=20
> >=20
> > Now I can right click on the individual tables and select=20
> =93Count=94 to=20
> > manually update it, but shouldn=92t the VACUUM have done that?
> >=20
>=20
> Nope. ANALYZE collects some statistics (for example an=20
> estimated number=20
> of rows on each table... this number is available in pgAdmin=20
> under the=20
> exact number of rows).

I think Guillaume meant "estimated" rather than "exact" here.

> The Count item of the contextual menu does a count(*) on the=20
> table. So,=20
> it gives you the exact number of rows.
>=20
> > Also, is there an do***ented (or undo***ented) function I=20
> can run to=20
> > manually update the counts.
> >=20
>=20
> No. You really need to select the menu item "Count" to have the exact=20
> number of rows.

There is an option under the Query tab named
"Count rows if estimated less than"=20
which you could change to a larger number.

I have mine set to 0 as I don't like the delay, and the estimates fill my
n=
eeds.

Regards,
Stephen Denne.

Disclaimer:
At the Datamail Group we value team commitment, respect, achievement,
custo=
mer focus, and courage. This email with any attachments is confidential
and=
 may be subject to legal privilege.  If it is not intended for you please
a=
dvise by reply immediately, destroy it and do not copy, disclose or use it
=
in any way.
__________________________________________________________________
  This email has been scanned by the DMZGlobal Business Quality
              Electronic Messaging Suite.
Please see http://www.dmzglobal.com/dmzmessaging.htm
for details.
__________________________________________________________________



--=20
Sent via pgadmin-sup****t mailing list (pgadmin-sup****t@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-sup****t
 




 3 Posts in Topic:
Re: Count not updated with VACUUM ANALYZE
guillaume@[EMAIL PROTECTE  2008-03-27 01:03:54 
Re: Count not updated with VACUUM ANALYZE
Stephen.Denne@[EMAIL PROT  2008-03-27 13:16:03 
Re: Count not updated with VACUUM ANALYZE
guillaume@[EMAIL PROTECTE  2008-03-27 01:21:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 2:19:22 CDT 2008.