pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <markir@coretech.co.nz>
To: Bill Chandler <billybobc1210@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Terrible performance after deleting/recreating indexes
Date: Fri, 09 Jul 2004 12:14:32 +1200
Message-ID: <40EDE368.90603@coretech.co.nz> (raw)
In-Reply-To: <20040708204921.4921.qmail@web51407.mail.yahoo.com>
References: <20040708204921.4921.qmail@web51407.mail.yahoo.com>

That is interesting - both psql and JDBC merely submit statements for 
the backend to process, so generally you would expect no difference in 
execution plan or performance.

It might be worth setting "log_statement=true" in postgresql.conf and 
checking that you are executing *exactly* the same statement in both 
JDBC and psql.

regards

Mark

P.s : lets see the output from  EXPLAIN ANALYZE  :-)

Bill Chandler wrote:

>Thanks for the advice.
>
>On further review it appears I am only getting this 
>performance degradation when I run the command via
>a JDBC app.  If I do the exact same query from
>psql, the performance is fine.  I've tried both the
>JDBC2 and JDBC3 jars.  Same results.
>
>
>  
>
>  
>  
>



view thread (5+ messages)  latest in thread

Message-ID: <40EDE368.90603@coretech.co.nz>
Permalink:  ../40EDE368.90603@coretech.co.nz/
Also on:    postgresql.org/message-id/40EDE368.90603@coretech.co.nz

 · 

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-performance@postgresql.org
  Cc: markir@coretech.co.nz, billybobc1210@yahoo.com
  Subject: Re: Terrible performance after deleting/recreating indexes
  In-Reply-To: <40EDE368.90603@coretech.co.nz>

* 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