pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Naeslund(w) <mag@fbab.net>
To: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Cc: pgsql-performance@postgresql.org
Subject: Re: Diferent execution plan for similar query
Date: Mon, 28 Apr 2003 13:00:03 +0200 (CEST)
Message-ID: <62257.129.178.88.66.1051527603.squirrel@mail2.fbab.net> (raw)


Shridhar Daithankar said:
>
> In second case, postgresql typecasted it correctly. Even
> eans.id_iean=345::int8 would have worked the same way.  By default
> postgresql
> treats a number as int4 while comparing and integer and float8 for a real
> numbe. I discovered that yesterday.
>
> Until the planner/parser gets smarter, this is going to be an FAQ..
>
>  Shridhar

Is this an nontrivial change?
Because if it's trivial it should be done, imho.
I've been bitten indirectly of this, and it's not too easy to find out
always. I think that this is one of the most unobvious performance hickups
there are with postgresql.

Magnus




view thread (6+ messages)  latest in thread

Message-ID: <62257.129.178.88.66.1051527603.squirrel@mail2.fbab.net>
Permalink:  ../62257.129.178.88.66.1051527603.squirrel@mail2.fbab.net/
Also on:    postgresql.org/message-id/62257.129.178.88.66.1051527603.squirrel@mail2.fbab.net

 · 

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: mag@fbab.net, shridhar_daithankar@persistent.co.in
  Subject: Re: Diferent execution plan for similar query
  In-Reply-To: <62257.129.178.88.66.1051527603.squirrel@mail2.fbab.net>
  References: <62257.129.178.88.66.1051527603.squirrel@mail2.fbab.net>

* 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