pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Bertheau <twanger@bluetwanger.de>
To: pgsql-sql@postgresql.org
Subject: Custom type where not all elements are comparable
Date: Mon, 05 Jul 2004 17:31:36 +0200
Message-ID: <1089041496.3239.13.camel@dicaprio.akademie1.de> (raw)

Hi,

Is it possible to define or implement a type in PostgreSQL not all
values of which are comparable to each other? In particular I'm thinking
of a duration type similar to the XML Schema duration type[1]. For
example P2D (2 days) is less than P4D (4 days), but P1M (1 month) and
P30D (30 days) are not comparable.

Thanks.

[1] http://www.w3.org/TR/xmlschema-2/#duration

-- 
Markus Bertheau <twanger@bluetwanger.de>




view thread (3+ messages)  latest in thread

Message-ID: <1089041496.3239.13.camel@dicaprio.akademie1.de>
Permalink:  ../1089041496.3239.13.camel@dicaprio.akademie1.de/
Also on:    postgresql.org/message-id/1089041496.3239.13.camel@dicaprio.akademie1.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: twanger@bluetwanger.de
  Subject: Re: Custom type where not all elements are comparable
  In-Reply-To: <1089041496.3239.13.camel@dicaprio.akademie1.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox