From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Ivar Zarans <iff@alcaron.ee>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow UPADTE, compared to INSERT
Date: Fri, 05 Dec 2003 10:15:52 +0800
Message-ID: <3FCFEA58.7090505@familyhealth.com.au> (raw)
In-Reply-To: <20031205020728.GA21440@alcaron.ee>
References: <20031204185751.GA15893@alcaron.ee>
<200312042023.37050.dev@archonet.com>
<20031204221312.GA18874@alcaron.ee>
<200312042245.21899.dev@archonet.com>
<20031205014514.GA21079@alcaron.ee>
<20031205020728.GA21440@alcaron.ee>
> Why first example, where recid is given as numeric constant, is using
> sequential scan, but second example, where recid is given as string
> constant works with index scan, as expected? Third example shows, that
> numeric constant must be typecasted in order to function properly.
>
> Is this normal behaviour of fields with bigint type?
Yes, it's a known performance problem in PostgreSQL 7.4 and below. I
believe it's been fixed in 7.5 CVS already.
Chris
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: chriskl@familyhealth.com.au, iff@alcaron.ee
Subject: Re: Slow UPADTE, compared to INSERT
In-Reply-To: <3FCFEA58.7090505@familyhealth.com.au>
References: <20031204185751.GA15893@alcaron.ee> <200312042023.37050.dev@archonet.com> <20031204221312.GA18874@alcaron.ee> <200312042245.21899.dev@archonet.com> <20031205014514.GA21079@alcaron.ee> <20031205020728.GA21440@alcaron.ee> <3FCFEA58.7090505@familyhealth.com.au>
* 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