From bc24d5b97673c365f19be21f83acca3c184cf1a7 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 29 Aug 2006 02:11:30 +0000 Subject: Now bind displays prepare as detail, and execute displays prepare and optionally bind. I re-added the "statement:" label so people will understand why the line is being printed (it is log_*statement behavior). Use single quotes for bind values, instead of double quotes, and double literal single quotes in bind values (and document that). I also made use of the DETAIL line to have much cleaner output. --- src/include/utils/portal.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/utils/portal.h b/src/include/utils/portal.h index 92cc55189ed..bf3d503004c 100644 --- a/src/include/utils/portal.h +++ b/src/include/utils/portal.h @@ -39,7 +39,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/portal.h,v 1.66 2006/08/14 22:57:15 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/portal.h,v 1.67 2006/08/29 02:11:30 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -122,7 +122,8 @@ typedef struct PortalData */ /* The query or queries the portal will execute */ - const char *sourceText; /* text of query, if known (may be NULL) */ + const char *sourceText; /* text of query, if known, might be NULL */ + const char *bindText; /* text of bind parameters, might be NULL */ const char *commandTag; /* command tag for original query */ List *parseTrees; /* parse tree(s) */ List *planTrees; /* plan tree(s) */ @@ -215,6 +216,7 @@ extern Portal GetPortalByName(const char *name); extern void PortalDefineQuery(Portal portal, const char *prepStmtName, const char *sourceText, + const char *bindText, const char *commandTag, List *parseTrees, List *planTrees, -- cgit v1.2.3