pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Smet <guillaume.smet@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Postgres JDBC <pgsql-jdbc@postgresql.org>
Cc: PostgreSQL-patches <pgsql-patches@postgresql.org>
Subject: Re: [HACKERS] [PATCHES] log_statement output for protocol
Date: Tue, 29 Aug 2006 13:54:15 +0200
Message-ID: <1d4e0c10608290454r49ad4efel63f2c4062c13438f@mail.gmail.com> (raw)
In-Reply-To: <200608290208.k7T28Xg28730@momjian.us>
References: <1d4e0c10608260434h4940da5anf96c1e48b8e1d151@mail.gmail.com>
	<200608290208.k7T28Xg28730@momjian.us>

On 8/29/06, Bruce Momjian <bruce@momjian.us> wrote:
>         DETAIL:  prepare: SELECT $1;  bind: $1 = 'a''b'

I attached a trivial patch to add a dash between the prepare part and
the bind part. People usually don't finish their queries with a semi
colon so it's more readable with a separator.
DETAIL:  prepare: SELECT $1  bind: $1 = 'a''b'
becomes
DETAIL:  prepare: SELECT $1 - bind: $1 = 'a''b'

--
Guillaume

Attachments:

prepare_bind_separator.diff (text/plain, 1.4K) download Index: src/backend/tcop/postgres.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/backend/tcop/postgres.c,v retrieving revision 1.501 diff -c -r1.501 postgres.c *** src/backend/tcop/postgres.c 29 Aug 2006 02:32:41 -0000 1.501 --- src/backend/tcop/postgres.c 29 Aug 2006 11:46:15 -0000 *************** *** 1782,1788 **** *portal_name ? portal_name : ""), errdetail("prepare: %s%s%s", sourceText, /* optionally print bind parameters */ ! bindText ? " bind: " : "", bindText ? bindText : ""))); BeginCommand(portal->commandTag, dest); --- 1782,1788 ---- *portal_name ? portal_name : ""), errdetail("prepare: %s%s%s", sourceText, /* optionally print bind parameters */ ! bindText ? " - bind: " : "", bindText ? bindText : ""))); BeginCommand(portal->commandTag, dest); *************** *** 1896,1902 **** *portal_name ? portal_name : ""), errdetail("prepare: %s%s%s", sourceText, /* optionally print bind parameters */ ! bindText ? " bind: " : "", bindText ? bindText : ""))); } } --- 1896,1902 ---- *portal_name ? portal_name : ""), errdetail("prepare: %s%s%s", sourceText, /* optionally print bind parameters */ ! bindText ? " - bind: " : "", bindText ? bindText : ""))); } }

view thread (21+ messages)  latest in thread

Message-ID: <1d4e0c10608290454r49ad4efel63f2c4062c13438f@mail.gmail.com>
Permalink:  ../1d4e0c10608290454r49ad4efel63f2c4062c13438f@mail.gmail.com/
Also on:    postgresql.org/message-id/1d4e0c10608290454r49ad4efel63f2c4062c13438f@mail.gmail.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: guillaume.smet@gmail.com, bruce@momjian.us, tgl@sss.pgh.pa.us, oliver@opencloud.com, pg@fastcrypt.com, nagy@ecircle-ag.com, pgsql-patches@postgresql.org
  Subject: Re: [HACKERS] [PATCHES] log_statement output for protocol
  In-Reply-To: <1d4e0c10608290454r49ad4efel63f2c4062c13438f@mail.gmail.com>
  References: <1d4e0c10608260434h4940da5anf96c1e48b8e1d151@mail.gmail.com> <200608290208.k7T28Xg28730@momjian.us> <1d4e0c10608290454r49ad4efel63f2c4062c13438f@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox