pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Moran <wmoran@collaborativefusion.com>
To: arnaulist@andromeiberica.com
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: [OT] Very strange postgresql behaviour
Date: Mon, 29 Jan 2007 08:27:06 -0500
Message-ID: <20070129082706.0ef2df3b.wmoran@collaborativefusion.com> (raw)
In-Reply-To: <45BDE6E4.9050805@andromeiberica.com>
References: <45BDE6E4.9050805@andromeiberica.com>

In response to Arnau <arnaulist@andromeiberica.com>:
> 
>    I have postgresql 7.4.2 running on debian and I have the oddest
> postgresql behaviour I've ever seen.
> 
> I do the following queries:
> 
> 
> espsm_asme=# select customer_app_config_id, customer_app_config_name
> from customer_app_config where customer_app_config_id = 5929 or
> customer_app_config_id = 11527 order by customer_app_config_id;
> 
> 
>   customer_app_config_id | customer_app_config_name
> ------------------------+--------------------------
>                     5929 | INFO
> (1 row)
> 
> 
>    I do the same query but changing the order of the or conditions:
> 
> 
> espsm_asme=# select customer_app_config_id, customer_app_config_name
> from customer_app_config where customer_app_config_id = 11527 or
> customer_app_config_id = 5929 order by customer_app_config_id;
> 
> 
>   customer_app_config_id | customer_app_config_name
> ------------------------+--------------------------
>                    11527 | MOVIDOSERENA TONI 5523
> (1 row)
> 
> 
> 
>    As you can see, the configuration 5929 and 11527 both exists, but
> when I do the queries they don't appear.

[snip]

Just a guess, but perhaps your index is damaged.  Have you tried
REINDEXing?

-- 
Bill Moran
Collaborative Fusion Inc.



view thread (5+ messages)  latest in thread

Message-ID: <20070129082706.0ef2df3b.wmoran@collaborativefusion.com>
Permalink:  ../20070129082706.0ef2df3b.wmoran@collaborativefusion.com/
Also on:    postgresql.org/message-id/20070129082706.0ef2df3b.wmoran@collaborativefusion.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: wmoran@collaborativefusion.com, arnaulist@andromeiberica.com
  Subject: Re: [OT] Very strange postgresql behaviour
  In-Reply-To: <20070129082706.0ef2df3b.wmoran@collaborativefusion.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