Report time spent in posix_fallocate() as a wait event.
authorThomas Munro <tmunro@postgresql.org>
Fri, 31 Jan 2020 04:21:47 +0000 (17:21 +1300)
committerThomas Munro <tmunro@postgresql.org>
Fri, 31 Jan 2020 04:29:41 +0000 (17:29 +1300)
commitef02fb15a35ab7bd74a79afebf35572ed82b5e9f
tree83a6c8db87805bbb7e4d8fea7f865f448c3dcd14
parentd061ea21fc1cc1c657bb5c742f5c4a1564e82ee2
Report time spent in posix_fallocate() as a wait event.

When allocating DSM segments with posix_fallocate() on Linux (see commit
899bd785), report this activity as a wait event exactly as we would if
we were using file-backed DSM rather than shm_open()-backed DSM.

Author: Thomas Munro
Discussion: https://postgr.es/m/CA%2BhUKGKCSh4GARZrJrQZwqs5SYp0xDMRr9Bvb%2BHQzJKvRgL6ZA%40mail.gmail.com
src/backend/storage/ipc/dsm_impl.c