postgresql/src/include
Tom Lane 4b7ae4afae Report the current queries of all backends involved in a deadlock
(if they'd be visible to the current user in pg_stat_activity).

This might look like it's subject to race conditions, but it's actually
pretty safe because at the time DeadLockReport() is constructing the
report, we haven't yet aborted our transaction and so we can expect that
everyone else involved in the deadlock is still blocked on some lock.
(There are corner cases where that might not be true, such as a statement
timeout triggering in another backend before we finish reporting; but at
worst we'd report a misleading activity string, so it seems acceptable
considering the usefulness of reporting the queries.)

Original patch by Itagaki Takahiro, heavily modified by me.
2008-03-21 21:08:31 +00:00
..
access When creating a large hash index, pre-sort the index entries by estimated 2008-03-16 23:15:08 +00:00
bootstrap Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
catalog Support ALTER TYPE RENAME. Petr Jelinek 2008-03-19 18:38:30 +00:00
commands Support ALTER TYPE RENAME. Petr Jelinek 2008-03-19 18:38:30 +00:00
executor Arrange to "inline" SQL functions that appear in a query's FROM clause, 2008-03-18 22:04:14 +00:00
lib Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
libpq Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
mb Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
nodes Arrange for an explicit cast applied to an ARRAY[] constructor to be applied 2008-03-20 21:42:48 +00:00
optimizer Arrange to "inline" SQL functions that appear in a query's FROM clause, 2008-03-18 22:04:14 +00:00
parser The original implementation of polymorphic aggregates didn't really get the 2008-01-11 18:39:41 +00:00
port Replace time_t with pg_time_t (same values, but always int64) in on-disk 2008-02-17 02:09:32 +00:00
postmaster Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
regex Sync our regex code with upstream changes since last time we did this, which 2008-02-14 17:33:37 +00:00
rewrite Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
snowball Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
storage Move ProcState definition into sinvaladt.c from sinvaladt.h, since it's not 2008-03-17 11:50:27 +00:00
tcop Implement enum type for guc parameters, and convert a couple of existing 2008-03-10 12:55:13 +00:00
tsearch Fix RS_isRegis() to agree exactly with RS_compile()'s idea of what's a valid 2008-01-21 02:46:11 +00:00
utils Get rid of a bunch of #ifdef HAVE_INT64_TIMESTAMP conditionals by inventing 2008-03-21 01:31:43 +00:00
c.h Enable probes to work with Mac OS X Leopard and other OSes that will 2008-03-17 19:44:41 +00:00
fmgr.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
funcapi.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
getaddrinfo.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
getopt_long.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
Makefile Enable probes to work with Mac OS X Leopard and other OSes that will 2008-03-17 19:44:41 +00:00
miscadmin.h Rename miscadmin.h's PG_VERSIONSTR macro to PG_BACKEND_VERSIONSTR to 2008-02-20 22:46:24 +00:00
pg_config_manual.h Provide a build-time option to store large relations as single files, rather 2008-03-10 20:06:27 +00:00
pg_config.h.in Provide a build-time option to store large relations as single files, rather 2008-03-10 20:06:27 +00:00
pg_config.h.win32 Stamp HEAD as 8.4devel. 2008-02-13 03:40:38 +00:00
pg_trace.h Enable probes to work with Mac OS X Leopard and other OSes that will 2008-03-17 19:44:41 +00:00
pgstat.h Report the current queries of all backends involved in a deadlock 2008-03-21 21:08:31 +00:00
pgtime.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
port.h Fix handling of restricted processes for Windows Vista (mainly), 2008-02-29 15:31:33 +00:00
postgres_ext.h Move NAMEDATALEN definition from postgres_ext.h to pg_config_manual.h. It 2007-02-06 09:16:08 +00:00
postgres_fe.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
postgres.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
rusagestub.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00