pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Insane behaviour in 8.3.3
Date: Fri, 15 Jun 2012 07:34:16 +0100
Message-ID: <4FDAD768.4040409@archonet.com> (raw)
In-Reply-To: <201206141139.35601.achill@matrix.gatewaynet.com>
References: <201206141139.35601.achill@matrix.gatewaynet.com>

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



view thread (24+ messages)  latest in thread

Message-ID: <4FDAD768.4040409@archonet.com>
Permalink:  ../4FDAD768.4040409@archonet.com/
Also on:    postgresql.org/message-id/4FDAD768.4040409@archonet.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-sql@postgresql.org
  Cc: dev@archonet.com, achill@matrix.gatewaynet.com
  Subject: Re: Insane behaviour in 8.3.3
  In-Reply-To: <4FDAD768.4040409@archonet.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