Re: using xmin in a query? - Mailing list pgsql-general

From Rodrigo Gonzalez
Subject Re: using xmin in a query?
Date
Msg-id 4E31AE90.3040605@estrads.com.ar
Whole thread Raw
In response to Re: using xmin in a query?  (Michael Nolan <htfoot@gmail.com>)
List pgsql-general
On 07/28/2011 03:09 PM, Michael Nolan wrote:


On Thu, Jul 28, 2011 at 12:23 PM, Andy Colson <andy@squeakycode.net> wrote:
On 7/28/2011 11:40 AM, Michael Nolan wrote:
Why does this query succeed:

select count(*) from tablename where xmin = 2

while this query fails:

select count(*) from tablename where xmin != 2


You probably want <>.

That doesn't work either.

What about select count(*) from tablename where xmin::text::integer != 2;

Regards

Rodrigo

pgsql-general by date:

Previous
From: Wells Oliver
Date:
Subject: I'm in the depths of a CAST nightmare and I can't work my out
Next
From: Merlin Moncure
Date:
Subject: Re: How to implement autostart of postgres?