pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oleg Lebedev <oleg.lebedev@waterford.org>
To: pgsql-sql@postgresql.org
Subject: index problem
Date: Fri, 21 Jun 2002 12:59:32 -0600
Message-ID: <993DBE5B4D02194382EC8DF8554A5273016CDB@postoffice.waterford.org> (raw)

Hi,
I have an objectid field of type bigint, but when I run queries like:
select * from table where objectid=123;
index is not used on objectid even though it's declared.
However when I run:
select * from table where objectid='123';
index is used.
Is there an option I can set so that postgres starts using indexes on
numberic field without requiring
conversion to varchar?
thanks,
 
Oleg

view thread (16+ messages)  latest in thread

Message-ID: <993DBE5B4D02194382EC8DF8554A5273016CDB@postoffice.waterford.org>
Permalink:  ../993DBE5B4D02194382EC8DF8554A5273016CDB@postoffice.waterford.org/
Also on:    postgresql.org/message-id/993DBE5B4D02194382EC8DF8554A5273016CDB@postoffice.waterford.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: oleg.lebedev@waterford.org
  Subject: Re: index problem
  In-Reply-To: <993DBE5B4D02194382EC8DF8554A5273016CDB@postoffice.waterford.org>

* 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