Re: Insane behaviour in 8.3.3 - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Insane behaviour in 8.3.3
Date
Msg-id 4FDAD768.4040409@archonet.com
Whole thread Raw
In response to Insane behaviour in 8.3.3  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Responses Re: Insane behaviour in 8.3.3
List pgsql-sql
On 14/06/12 09:39, Achilleas Mantzios wrote:
> dynacom=# SELECT id from items_tmp WHERE id=1261319 AND xid=61972;
>     id
> ---------
>   1261319
> (1 row)
> dynacom=# -- ok this is how it should be
> dynacom=# SELECT id from items_tmp WHERE id=1261319 AND xid=currval('xadmin_xid_seq');
>   id
> ----
> (0 rows)
> dynacom=# -- THIS IS INSANE

Perhaps just do an EXPLAIN ANALYSE on both of those. If for some reason 
one is using the index and the other isn't then it could be down to a 
corrupted index. Seems unlikely though.

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Insane behaviour in 8.3.3
Next
From: Robert Edwards
Date:
Subject: Re: Insane behaviour in 8.3.3