Difference between fsync and open_sync - Mailing list pgsql-admin

From Oscar Calderon
Subject Difference between fsync and open_sync
Date
Msg-id CAOqBXCBetP1Abp7S9GPar6Vp4tBGzLDDeN0hGM2kQXDyVTgadw@mail.gmail.com
Whole thread Raw
Responses Re: Difference between fsync and open_sync  (David G Johnston <david.g.johnston@gmail.com>)
List pgsql-admin
Hi, have a nice day everybody. I'm reading about WAL and i'm trying to understand the theory about it, i mean, all the stuff related to disk caches, controller caches and so on, and now in my lectures there is a section about the different methods to force WAL updates, wal_sync_method

And googling more i found a very good article (old but useful)


And i understood the difference between, for example, fsync and fdatasync, and between open_datasync and open_sync, but i cannot understand the difference between open_sync and fsync or between open_datasync and fdatasync , As far as i could understand, the open_* methods call the open() method of linux, and f*sync methods calls the fsync() method of linux? 

My doubt is about what's the difference between them, or a link where this is explained. In the previous link it talks about the 4 methods but i cannot distinguish the difference between them.

Regards.

***************************
Oscar Calderon
Analista de Sistemas
Soluciones Aplicativas S.A. de C.V.
www.solucionesaplicativas.com
Cel. (503) 7741 7850 Tel. (503) 2522-2834

pgsql-admin by date:

Previous
From: Raghavendra
Date:
Subject: Re: default privileges
Next
From: David G Johnston
Date:
Subject: Re: Difference between fsync and open_sync