]> granicus.if.org Git - postgresql/commit
Include a pointer to the query's source text in QueryDesc structs. This is
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Jan 2009 20:42:00 +0000 (20:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Jan 2009 20:42:00 +0000 (20:42 +0000)
commitbbeb0bbf6b3e5fdb7cff1a87885f43139ace5c4b
tree61f8c7f089cc1e35f20b76831bd388848c212799
parentccd31eb861e727671e4a771d4bcc37f1179caec9
Include a pointer to the query's source text in QueryDesc structs.  This is
practically free given prior 8.4 changes in plancache and portal management,
and it makes it a lot easier for ExecutorStart/Run/End hooks to get at the
query text.  Extracted from Itagaki Takahiro's pg_stat_statements patch,
with minor editorialization.
src/backend/commands/copy.c
src/backend/commands/explain.c
src/backend/commands/prepare.c
src/backend/executor/functions.c
src/backend/executor/spi.c
src/backend/tcop/pquery.c
src/include/commands/explain.h
src/include/executor/execdesc.h