pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: paree@LEXUM.UMontreal.CA
Cc: pgsql-jdbc@postgresql.org
Subject: Re: using index with bigint pkey
Date: Fri, 26 Nov 2004 13:00:16 +1300
Message-ID: <41A67210.8010206@opencloud.com> (raw)
In-Reply-To: <1101425976.3726.56.camel@localhost.localdomain>
References: <1101425976.3726.56.camel@localhost.localdomain>

Éric Paré wrote:

> I found that running a simple query on a bigint index does not behave as
> expected in the planner.  This query does not use the index on 'a pkey
> id column' if it is of bigint type :

> Note on setup :
> - postgresql 7.4.1 server
> - postgresql-7.4.1-jdbc3.jar

Use an 8.0 server (allows cross-type index use), or the development JDBC 
driver (sends longs as BIGINT via the V3 protocol).

-O



view thread (2+ messages)

Message-ID: <41A67210.8010206@opencloud.com>
Permalink:  ../41A67210.8010206@opencloud.com/
Also on:    postgresql.org/message-id/41A67210.8010206@opencloud.com

 · 

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-jdbc@postgresql.org
  Cc: oliver@opencloud.com, paree@LEXUM.UMontreal.CA
  Subject: Re: using index with bigint pkey
  In-Reply-To: <41A67210.8010206@opencloud.com>
  References: <1101425976.3726.56.camel@localhost.localdomain> <41A67210.8010206@opencloud.com>

* 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