" said:For x86 systems, when the db_block_size and the recordsize are aligned to the system page size of 4k, then it is better to set zfs_immediate_write_sz to a little less than 4096, as 4000.
It seems it should be 8k (default DB page size) for data files.vermaden said:I remember that its recommended to use recordsize=4k for pools prepared for PostgreSQL DB.
Yes, I've read this article , it was useful. However, almost all links for "PostgreSQL ZFS" discuss Solaris installations. And I'd like to hear some FreeBSD-specific notes. For example, long ago it was recommended to set wal_sync_method to open_sync. Is it still true for modern FreeBSD installations? How does ZFS influences this decision?Also check this one:
http://solarisinternals.com/wiki/index.php/ZFS_for_Databases
alp said:Yes, I've read this article , it was useful. However, almost all links for "PostgreSQL ZFS" discuss Solaris installations. And I'd like to hear some FreeBSD-specific notes. For example, long ago it was recommended to set wal_sync_method to open_sync. Is it still true for modern FreeBSD installations? How does ZFS influences this decision?