Re: using xmin in a query?

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Michael Nolan <htfoot(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: using xmin in a query?
Date: 2011-07-28 17:23:15
Message-ID: 4E319B03.5060502@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 <>.

select count(*) from tablename where xmin <> 2

-Andy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message bubba postgres 2011-07-28 17:50:56 pg_largeobject vs pg_toast_XXXX
Previous Message Michael Nolan 2011-07-28 16:40:04 using xmin in a query?