Re: Status of Fix Domain Casting TODO

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Status of Fix Domain Casting TODO
Date: 2007-01-01 23:05:30
Message-ID: 21051.1167692730@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Jim C. Nasby" <jim(at)nasby(dot)net> writes:
> FWIW, I'm running into this trying to create a 'raw' domain that would
> automagically convert hex strings into actual binary data for storage in
> a bytea.

I think you've got 0 chance of implementing that as a domain rather than
an independent type. Without or without revisions in the casting rules,
a domain has not got its own I/O functions, and never will.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-01-02 00:04:43 8.3 pending patch queue
Previous Message Tom Lane 2007-01-01 22:53:35 Reverse-sort indexes and NULLS FIRST/LAST sorting