From: Arnaud Lesauvage <thewild@freesurf.fr>
To: Tobias Brox <tobias@nordicbet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Poor performance on very simple query ?
Date: Tue, 03 Oct 2006 14:25:28 +0200
Message-ID: <452256B8.9050607@freesurf.fr> (raw)
In-Reply-To: <20061003121709.GF30211@oppetid.no>
References: <45224896.7040708@freesurf.fr>
<20061003121004.GC30211@oppetid.no>
<20061003121109.GD30211@oppetid.no>
<45225407.7090805@freesurf.fr>
<20061003121709.GF30211@oppetid.no>
Tobias Brox wrote:
> [Arnaud Lesauvage - Tue at 02:13:59PM +0200]
>> Tobias Brox wrote:
>> >Oh, the gid is not primary key. I guess I should also apologize for
>> >adding noise here :-)
>>
>> Yes, it is a primary key, but I am the noise maker here ! ;-)
>
> Oh - it is. How can you have a default value on a primary key?
Good question, but I am not the DB designer in that case.
> Will it
> use the index if you do "analyze"? Is there an index on the table at
> all, do you get it up if you ask for a description of the table (\d
> tablename)?
In this case (a simplified version of the real case), the pkey is the
only index. It is used if I only as for one row (WHERE gid=33).
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: thewild@freesurf.fr, tobias@nordicbet.com
Subject: Re: Poor performance on very simple query ?
In-Reply-To: <452256B8.9050607@freesurf.fr>
* 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