pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Smith <Paul.Smith@lawlex.com.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: George Papastamatopoulos <George.Papastamatopoulos@lawlex.com.au>
Cc: pgsql-performance@postgresql.org, Paul Smith <Paul.Smith@lawlex.com.au>
Subject: Re: FW: Query Plan problem
Date: Mon, 2 Jun 2003 15:35:25 +1000
Message-ID: <7395B46C07F8D51182AE000629570CC4B2E180@IKE> (raw)

Thanks Tom for the reply (if you could reply all, as I'm not currently
subscribed just yet).

[Since our post, we've down an explicit vacuum on the tbluser.id column, and
things are looking much much better, there were 0 rows in the pg_stats table
for that table...]

Incidently, tbluser.Id is a bigint (hence the '' wrapped around the in
clause, otherwise the infamous postgres issue crops up not matching the Int
literal number with the bigint index, and reverts to nasty table scan).

Both our production and our dump/restore servers are UNICODE.  

Incidently, if I do a VACUUM Analyze on this table:

comptoolkit=# VACUUM analyze tbluser;
ERROR:  Invalid UNICODE character sequence found (0xf8335c)

Me thinks somehow there is a hashed_password with some dodgy characters, but
I'm not sure how we'll find that row, or what we'll do with that when we
find it. (Any thoughts?).  Could be why statistics getting removed?

ANy thoughts along this would be good, we're over the performance hump, but
it's always nice to know more...

cheers,

Paul Smith

> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: Monday, 2 June 2003 3:31 PM
> To: George Papastamatopoulos
> Cc: pgsql-performance@postgresql.org; Paul Smith
> Subject: Re: [PERFORM] FW: Query Plan problem 
> 
> 
> George Papastamatopoulos 
> <George.Papastamatopoulos@lawlex.com.au> writes:
> >> ... WHERE tblUser.id IN
> >> 
> ('102','103','104','105','106','107','108','109','110','111','
> 112','113','
> >> 
> 114','115','116','117','118','119','120','121','122','123','12
> 4','125','12
> > ...
> 
> What's the datatype of tblUser.id?  What indexes do you have on the
> table?
> 
> Also, are both databases built with the same locale/encoding support
> and initdb-time choices?  What are they?
> 
> 			regards, tom lane
> 



view thread (3+ messages)

Message-ID: <7395B46C07F8D51182AE000629570CC4B2E180@IKE>
Permalink:  ../7395B46C07F8D51182AE000629570CC4B2E180@IKE/
Also on:    postgresql.org/message-id/7395B46C07F8D51182AE000629570CC4B2E180@IKE

 · 

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-performance@postgresql.org
  Cc: Paul.Smith@lawlex.com.au, tgl@sss.pgh.pa.us, George.Papastamatopoulos@lawlex.com.au
  Subject: Re: FW: Query Plan problem
  In-Reply-To: <7395B46C07F8D51182AE000629570CC4B2E180@IKE>
  References: <7395B46C07F8D51182AE000629570CC4B2E180@IKE>

* 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