Search Postgresql Archives

Re: Pet Peeves?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Erik Jones escribió:

> One workaround I came up with a while back for that is to edit the stat 
> file name to be in a separate directory under global (like  
> <datadir>/global/pg_stats/pgstat.stat) and mount a ramfs there.  Of  
> course, a custom compile isn't always an option but it removed a *ton*  
> of IO on that db (had thousands upon thousands of tables).  Also, if you 
> do that you need to be sure to copy pgstat.stat to a permanent place 
> periodically unless you want to risk losing all of your stats.

Hmm, you don't really need to copy it periodically -- you need to do it
on shutdown only.  If the system crashes, the recovery code will delete
the pgstats file anyway.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux