Re: XID Data Types

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Manfred Koizar <mkoi-pg(at)aon(dot)at>, Ericson Smith <eric(at)did-it(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: XID Data Types
Date: 2004-05-07 03:12:02
Message-ID: 409AFE82.5060402@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce Momjian wrote:
> Jan Wieck wrote:
>> Manfred Koizar wrote:
>> > On Mon, 03 May 2004 13:38:45 -0400, Ericson Smith <eric(at)did-it(dot)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.
>
> Should we just get that into our CVS so Slony doesn't have to distribute
> its own?
>

It has to anyway, at least as long as it is supposed to be a version
upgrade aid that supports replicating from 7.3.x or 7.4.x to a newer
version so that the upgrade downtime reduces to a few seconds for a
master->slave switchover.

Jan

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2004-05-07 03:35:29 Interpreting vacuum verbosity
Previous Message Tom Lane 2004-05-07 01:53:36 Re: CHECK constraints and optimizations