diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-28 19:38:09 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-28 19:38:09 +0000 |
commit | 1832cefda116f5bb3ef842a5be4434d29f036bec (patch) | |
tree | 1b45c33d9c2da3a6cd8dad7c03cea8df4e5dda7f /src/backend/tcop/postgres.c | |
parent | ae28cfe67353320a80f8fa21b96932f0d8effec1 (diff) | |
download | postgresql-1832cefda116f5bb3ef842a5be4434d29f036bec.tar.gz postgresql-1832cefda116f5bb3ef842a5be4434d29f036bec.zip |
Fix pgstat_report_waiting() to not dump core if called before
pgstat_bestart() has been called; else any lock-block occurring
during InitPostgres() is disastrous. I believe this explains
recent wasp regression failure; at least it explains the crash I
got while trying to duplicate the problem. I also made
pgstat_report_activity() safe against the same scenario, just
in case. The report_waiting hazard was created by my patch of
19-Aug to include waiting status in pg_stat_activity.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions