pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gunnar Rønning <gunnar@polygnosis.com>
To: George Koras <gkoras@cres.gr>
Cc: Barry Lind <barry@xythos.com>
Cc: Arsalan Zaidi <azaidi@directi.com>
Cc: PostgreSQL jdbc list <pgsql-jdbc@postgresql.org>
Subject: Re: Re: [INTERFACES] New code for JDBC driver
Date: 05 Jul 2001 12:23:27 +0200
Message-ID: <m2ae2ju128.fsf@smaug.polygnosis.com> (raw)
In-Reply-To: <010d01c1053c$24f5cdf0$1a49e98f@cres.gr>
References: <200106301642.f5UGgkj14915@candle.pha.pa.us>
	<3B3E7A94.209@xythos.com>
	<00b801c102c4$fdd49ea0$4301a8c0@directi.com>
	<3B409F8F.7050408@xythos.com>
	<00b501c10386$00ab1e80$4301a8c0@directi.com>
	<3B41E22B.5000901@xythos.com>
	<005101c1052d$0a519330$1a49e98f@cres.gr>
	<m2elrvu1ji.fsf@smaug.polygnosis.com>
	<010d01c1053c$24f5cdf0$1a49e98f@cres.gr>

* "George Koras" <gkoras@cres.gr> wrote:
|
| Yes, I agree that it certainly has to be done before SQL is sent to the
| driver, i.e. in the middle tier!
| Is it a performance bottleneck? Would PreparedStatement be more efficient?
| 

Depends on your application, but doing escaping on all queries would 
certainly increase the overhead for some queries.

With PreparedStatement you only escape the part of the query that is string
input, so, yes, it would be more efficient.

-- 
Gunnar Rønning - gunnar@polygnosis.com
Senior Consultant, Polygnosis AS, http://www.polygnosis.com/



view thread (17+ messages)  latest in thread

Message-ID: <m2ae2ju128.fsf@smaug.polygnosis.com>
Permalink:  ../m2ae2ju128.fsf@smaug.polygnosis.com/
Also on:    postgresql.org/message-id/m2ae2ju128.fsf@smaug.polygnosis.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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: gunnar@polygnosis.com, gkoras@cres.gr, barry@xythos.com, azaidi@directi.com, pgsql-jdbc@postgresql.org
  Subject: Re: Re: [INTERFACES] New code for JDBC driver
  In-Reply-To: <m2ae2ju128.fsf@smaug.polygnosis.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