Re: Change behavior of (m)xid_age - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Change behavior of (m)xid_age
Date
Msg-id 20151022221438.GI14196@alap3.anarazel.de
Whole thread Raw
In response to Re: Change behavior of (m)xid_age  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Change behavior of (m)xid_age
List pgsql-hackers
On 2015-10-22 18:07:06 -0400, Robert Haas wrote:
> > BTW, ignoring relfrozenxid = 0 also isn't as easy as you'd think:
> >
> > select count(*) from pg_class where relfrozenxid <> 0;
> > ERROR:  operator does not exist: xid <> integer at character 50
> 
> It takes a few more characters than that, but it's not really that hard.
> 
> rhaas=# select count(*) from pg_class where relfrozenxid::text <> '0';

"WHERE NOT relfrozenxid = 0" should work as well and is a bit nicer.

FWIW, adding an <> operator for xid seems like a perfectly good idea.

- Andres



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Making tab-complete.c easier to maintain
Next
From: Pavel Stehule
Date:
Subject: Re: [PATCH] SQL function to report log message