Re: using xmin in a query?

From: Michael Nolan <htfoot(at)gmail(dot)com>
To: Andy Colson <andy(at)squeakycode(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: using xmin in a query?
Date: 2011-07-28 18:09:43
Message-ID: CAOzAquJ=GPZqiOk7Ba6pm5PqsBw_Yu4EJgeR53usfP6TM_e2+A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jul 28, 2011 at 12:23 PM, Andy Colson <andy(at)squeakycode(dot)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.
--
Mike Nolan

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Wells Oliver 2011-07-28 18:22:44 I'm in the depths of a CAST nightmare and I can't work my out
Previous Message bubba postgres 2011-07-28 17:50:56 pg_largeobject vs pg_toast_XXXX