Re: XID Data Types - Mailing list pgsql-general

From Jan Wieck
Subject Re: XID Data Types
Date
Msg-id 409A4C3A.9050209@Yahoo.com
Whole thread Raw
In response to Re: XID Data Types  (Manfred Koizar <mkoi-pg@aon.at>)
Responses Re: XID Data Types  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
Manfred Koizar wrote:
> On Mon, 03 May 2004 13:38:45 -0400, Ericson Smith <eric@did-it.com>
> wrote:
>>didit=# select *,xmin from settings where xmin > '187167023'::xid limit 5;
>>ERROR:  operator does not exist: xid > xid
>
> There might be better solutions, but when I ran into the same problem,
> the age(xid) function helped at lot.

Slony contains an xxid data type that follows exactly the xid semantics.
It comes with a full operator class so that you can even put indexes on
xxid type columns. Shouldn't be too hard to define those operators for
the builtin xid type instead.


Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Embedded SQL inherently faster than others?
Next
From: Bruce Momjian
Date:
Subject: Re: XID Data Types