OSDN Git Service

Prevent continuing disk-space bloat when profiling (with PROFILE_PID_DIR
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Nov 2007 17:55:15 +0000 (17:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Nov 2007 17:55:15 +0000 (17:55 +0000)
commit69500b05d6adb77d73fd5867f74167f17a608e3e
tree666c005e3ef0791bbb2613a1221bee745d4e221d
parenta2899ebdc28080eab0f4bb0b8a5f30aa7bb31a89
Prevent continuing disk-space bloat when profiling (with PROFILE_PID_DIR
enabled) and autovacuum is on.  Since there will be a steady stream of autovac
worker processes exiting and dropping gmon.out files, allowing them to make
separate subdirectories results in serious bloat; and it seems unlikely that
anyone will care about those profiles anyway.  Limit the damage by forcing all
autovac workers to dump in one subdirectory, PGDATA/gprof/avworker/.

Per report from J\9arg Beyer and subsequent discussion.
src/backend/storage/ipc/ipc.c