1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-01 12:18:01 +03:00

For protocol-level prepare/bind/execute:

o  print user name for all
	o  print portal name if defined for all
	o  print query for all
	o  reduce log_statement header to single keyword
	o  print bind parameters as DETAIL if text mode
This commit is contained in:
Bruce Momjian
2006-08-08 01:23:15 +00:00
parent 2dd7ab0627
commit 3716f90c39
7 changed files with 63 additions and 24 deletions

View File

@@ -12,7 +12,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/mmgr/portalmem.c,v 1.90 2006/07/14 14:52:25 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/mmgr/portalmem.c,v 1.91 2006/08/08 01:23:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -244,6 +244,7 @@ CreateNewPortal(void)
*/
void
PortalDefineQuery(Portal portal,
const char *prepStmtName,
const char *sourceText,
const char *commandTag,
List *parseTrees,
@@ -257,6 +258,7 @@ PortalDefineQuery(Portal portal,
Assert(commandTag != NULL || parseTrees == NIL);
portal->prepStmtName = prepStmtName;
portal->sourceText = sourceText;
portal->commandTag = commandTag;
portal->parseTrees = parseTrees;