Re: Disk Access Question

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

 



Robert Treat wrote:
> On Tuesday 20 September 2005 13:55, Chris Hoover wrote:
>> I have a question on disk access.
>>
>> How often is PostgreSQL accessing/touching the files that are on the hard
>> drive?
>>
>> What I'm trying to ask is, is PostgreSQL constantly updating access
>> timestamps or something like that on the database files even if they are
>> not being queried? This questions comes from an Oracle background where
>> Oracle was updating the individual files every 3 seconds if I am
>> remembering correctly.
>>
>> I am trying to figure out besides the queries, what sort of accessing is
>> PostgreSQL doing to my drives so we can try and resolve some i/o issues.
>>
> 
> AFAIK unless your actually doing something,it wont access your data files at 
> all.  Note that something is pretty wide here, insert/update/vacuum/analyze 
> and even select will cause file access but otherwise it wont. 

You can mount your partition ( on Linux ) specifing the "noatime" option this
will avoid your inode access time to be updated when files are only read.
Postgres do not use this information so you are safe.

Regards
Gaetano Mendola







---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux