postgresql/src/backend/utils
Robert Haas 6f3bd98ebf Extend framework from commit 53be0b1ad to report latch waits.
WaitLatch, WaitLatchOrSocket, and WaitEventSetWait now taken an
additional wait_event_info parameter; legal values are defined in
pgstat.h.  This makes it possible to uniquely identify every point in
the core code where we are waiting for a latch; extensions can pass
WAIT_EXTENSION.

Because latches were the major wait primitive not previously covered
by this patch, it is now possible to see information in
pg_stat_activity on a large number of important wait events not
previously addressed, such as ClientRead, ClientWrite, and SyncRep.

Unfortunately, many of the wait events added by this patch will fail
to appear in pg_stat_activity because they're only used in background
processes which don't currently appear in pg_stat_activity.  We should
fix this either by creating a separate view for such information, or
else by deciding to include them in pg_stat_activity after all.

Michael Paquier and Robert Haas, reviewed by Alexander Korotkov and
Thomas Munro.
2016-10-04 11:01:42 -04:00
..
adt Extend framework from commit 53be0b1ad to report latch waits. 2016-10-04 11:01:42 -04:00
cache Avoid reporting "cache lookup failed" for some user-reachable cases. 2016-09-09 09:20:34 -04:00
error Add a nonlocalized version of the severity field to client error messages. 2016-08-26 16:20:17 -04:00
fmgr Avoid reporting "cache lookup failed" for some user-reachable cases. 2016-09-09 09:20:34 -04:00
hash Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
init Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
mb Finish pgindent run for 9.6: Perl files. 2016-06-12 04:19:56 -04:00
misc Show a sensible value in pg_settings.unit for GUC_UNIT_XSEGS variables. 2016-10-03 16:40:25 -04:00
mmgr Make AllocSetContextCreate throw an error for bad context-size parameters. 2016-08-29 09:29:26 -04:00
resowner pgindent run for 9.6 2016-06-09 18:02:36 -04:00
sort Update comment. 2016-10-04 09:47:54 +03:00
time Fix deletion of speculatively inserted TOAST on conflict 2016-08-17 17:03:36 -07:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
errcodes.txt Relax transactional restrictions on ALTER TYPE ... ADD VALUE. 2016-09-05 12:59:55 -04:00
Gen_dummy_probes.pl Finish pgindent run for 9.6: Perl files. 2016-06-12 04:19:56 -04:00
Gen_dummy_probes.sed Update copyright for 2016 2016-01-02 13:33:40 -05:00
Gen_fmgrtab.pl Update copyright for 2016 2016-01-02 13:33:40 -05:00
generate-errcodes.pl Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
probes.d Refer to OS X as "macOS", except for the port name which is still "darwin". 2016-09-25 15:40:57 -04:00