pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Default to wal_sync_method=fdatasync on FreeBSD. 6+ messages / 1 participants [nested] [flat]
* pgsql: Default to wal_sync_method=fdatasync on FreeBSD. @ 2021-02-15 03:23 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2021-02-15 03:23 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Default to wal_sync_method=fdatasync on FreeBSD. FreeBSD 13 gained O_DSYNC, which would normally cause wal_sync_method to choose open_datasync as its default value. That may not be a good choice for all systems, and performs worse than fdatasync in some scenarios. Let's preserve the existing default behavior for now. Like commit 576477e73c4, which did the same for Linux, back-patch to all supported releases. Discussion: https://postgr.es/m/CA%2BhUKGLsAMXBQrCxCXoW-JsUYmdOL8ALYvaX%3DCrHqWxm-nWbGA%40mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/f900a79ecdc1864a6ead72c97c34a41012227eaf Modified Files -------------- doc/src/sgml/config.sgml | 2 +- src/backend/utils/misc/postgresql.conf.sample | 2 +- src/include/port/freebsd.h | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Default to wal_sync_method=fdatasync on FreeBSD. @ 2021-02-15 03:23 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2021-02-15 03:23 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Default to wal_sync_method=fdatasync on FreeBSD. FreeBSD 13 gained O_DSYNC, which would normally cause wal_sync_method to choose open_datasync as its default value. That may not be a good choice for all systems, and performs worse than fdatasync in some scenarios. Let's preserve the existing default behavior for now. Like commit 576477e73c4, which did the same for Linux, back-patch to all supported releases. Discussion: https://postgr.es/m/CA%2BhUKGLsAMXBQrCxCXoW-JsUYmdOL8ALYvaX%3DCrHqWxm-nWbGA%40mail.gmail.com Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6c23e5ae9ee12ff1f5183573885bfaa4eb97b243 Modified Files -------------- doc/src/sgml/config.sgml | 2 +- src/backend/utils/misc/postgresql.conf.sample | 2 +- src/include/port/freebsd.h | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Default to wal_sync_method=fdatasync on FreeBSD. @ 2021-02-15 03:23 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2021-02-15 03:23 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Default to wal_sync_method=fdatasync on FreeBSD. FreeBSD 13 gained O_DSYNC, which would normally cause wal_sync_method to choose open_datasync as its default value. That may not be a good choice for all systems, and performs worse than fdatasync in some scenarios. Let's preserve the existing default behavior for now. Like commit 576477e73c4, which did the same for Linux, back-patch to all supported releases. Discussion: https://postgr.es/m/CA%2BhUKGLsAMXBQrCxCXoW-JsUYmdOL8ALYvaX%3DCrHqWxm-nWbGA%40mail.gmail.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a27f3a7f4159c5afaf33932df16ca4fed6689c06 Modified Files -------------- doc/src/sgml/config.sgml | 2 +- src/backend/utils/misc/postgresql.conf.sample | 2 +- src/include/port/freebsd.h | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Default to wal_sync_method=fdatasync on FreeBSD. @ 2021-02-15 03:23 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2021-02-15 03:23 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Default to wal_sync_method=fdatasync on FreeBSD. FreeBSD 13 gained O_DSYNC, which would normally cause wal_sync_method to choose open_datasync as its default value. That may not be a good choice for all systems, and performs worse than fdatasync in some scenarios. Let's preserve the existing default behavior for now. Like commit 576477e73c4, which did the same for Linux, back-patch to all supported releases. Discussion: https://postgr.es/m/CA%2BhUKGLsAMXBQrCxCXoW-JsUYmdOL8ALYvaX%3DCrHqWxm-nWbGA%40mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1fefe8879a684666fee8353bef99e8c3e6f15901 Modified Files -------------- doc/src/sgml/config.sgml | 2 +- src/backend/utils/misc/postgresql.conf.sample | 2 +- src/include/port/freebsd.h | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Default to wal_sync_method=fdatasync on FreeBSD. @ 2021-02-15 03:24 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2021-02-15 03:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Default to wal_sync_method=fdatasync on FreeBSD. FreeBSD 13 gained O_DSYNC, which would normally cause wal_sync_method to choose open_datasync as its default value. That may not be a good choice for all systems, and performs worse than fdatasync in some scenarios. Let's preserve the existing default behavior for now. Like commit 576477e73c4, which did the same for Linux, back-patch to all supported releases. Discussion: https://postgr.es/m/CA%2BhUKGLsAMXBQrCxCXoW-JsUYmdOL8ALYvaX%3DCrHqWxm-nWbGA%40mail.gmail.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/800131df74c4b870b6a459bcee0acc0bb89f75ff Modified Files -------------- doc/src/sgml/config.sgml | 4 ++-- src/backend/utils/misc/postgresql.conf.sample | 2 +- src/include/port/freebsd.h | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Default to wal_sync_method=fdatasync on FreeBSD. @ 2021-02-15 03:24 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2021-02-15 03:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Default to wal_sync_method=fdatasync on FreeBSD. FreeBSD 13 gained O_DSYNC, which would normally cause wal_sync_method to choose open_datasync as its default value. That may not be a good choice for all systems, and performs worse than fdatasync in some scenarios. Let's preserve the existing default behavior for now. Like commit 576477e73c4, which did the same for Linux, back-patch to all supported releases. Discussion: https://postgr.es/m/CA%2BhUKGLsAMXBQrCxCXoW-JsUYmdOL8ALYvaX%3DCrHqWxm-nWbGA%40mail.gmail.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/09a3b19e38ee09ce1f12cee9b9537ae66d729ead Modified Files -------------- doc/src/sgml/config.sgml | 4 ++-- src/backend/utils/misc/postgresql.conf.sample | 2 +- src/include/port/freebsd.h | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2021-02-15 03:24 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-02-15 03:23 pgsql: Default to wal_sync_method=fdatasync on FreeBSD. Thomas Munro <tmunro@postgresql.org> 2021-02-15 03:23 pgsql: Default to wal_sync_method=fdatasync on FreeBSD. Thomas Munro <tmunro@postgresql.org> 2021-02-15 03:23 pgsql: Default to wal_sync_method=fdatasync on FreeBSD. Thomas Munro <tmunro@postgresql.org> 2021-02-15 03:23 pgsql: Default to wal_sync_method=fdatasync on FreeBSD. Thomas Munro <tmunro@postgresql.org> 2021-02-15 03:24 pgsql: Default to wal_sync_method=fdatasync on FreeBSD. Thomas Munro <tmunro@postgresql.org> 2021-02-15 03:24 pgsql: Default to wal_sync_method=fdatasync on FreeBSD. Thomas Munro <tmunro@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox