Re: using xmin in a query?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 19:27:45
Message-ID: 3468.1311881265@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Nolan <htfoot(at)gmail(dot)com> writes:
> Why does this query succeed:
> select count(*) from tablename where xmin = 2

> while this query fails:

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

It told you why not:

> ERROR: operator does not exist: xid <> integer

You could do "where not (xmin = 2)", I suppose.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Nolan 2011-07-28 21:55:31 Re: using xmin in a query?
Previous Message Merlin Moncure 2011-07-28 19:26:44 Re: How to implement autostart of postgres?