pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Matthews <andrew.m@corp.dslextreme.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Wierd issues
Date: Fri, 09 Apr 2004 11:02:11 -0400
Message-ID: <25869.1081522931@sss.pgh.pa.us> (raw)
In-Reply-To: <79AEF92046759442A4AA04C2AB08C0B80834E2@exchange.corp.dslextreme.com>
References: <79AEF92046759442A4AA04C2AB08C0B80834E2@exchange.corp.dslextreme.com>

"Andrew Matthews" <andrew.m@corp.dslextreme.com> writes:
> [ PG 7.3.4 much slower than 7.2.1 ]
>
> Both have same databases, Both have had vacume full ran on them.

You did ANALYZE too, right?

The bulk of the time is evidently going into the seqscan on users in
each case:

>                     ->  Seq Scan on users u  (cost=0.00..1938.51 rows=71283 width=4) (actual time=0.81..30119.58 rows=70809 loops=1)

>                      ->  Seq Scan on users u  (cost=0.00..1888.85 rows=71548 width=4) (actual time=18.38..2277152.51 rows=71028 loops=1)
>                            Filter: (get_pwd(username, '127.0.0.1'::character varying, '101'::character varying, 'MD5'::character varying) IS NOT NULL)

I have to suspect that the inefficiency is inside this get_pwd()
function, but you didn't tell us anything about that...

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <25869.1081522931@sss.pgh.pa.us>
Permalink:  ../25869.1081522931@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25869.1081522931@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, andrew.m@corp.dslextreme.com
  Subject: Re: Wierd issues
  In-Reply-To: <25869.1081522931@sss.pgh.pa.us>

* 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