Re: Casting from a domain - Mailing list pgsql-general

From Richard Huxton
Subject Re: Casting from a domain
Date
Msg-id 4228BB3F.8070600@archonet.com
Whole thread Raw
In response to Casting from a domain  ("Jim C. Nasby" <decibel@decibel.org>)
List pgsql-general
Jim C. Nasby wrote:
> decibel=# create cast (interval as rrs.seconds) WITH FUNCTION rrs.interval_to_seconds(interval)  AS IMPLICIT;
                                      ^^^
> decibel=# select cast('1 month'::interval AS seconds);
> ERROR:  cannot cast type interval to seconds

It's not a schema issue is it? I.E. the lack of "rrs."?

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: "Greg Patnude"
Date:
Subject: Re: preserving data after updates
Next
From: Tom Lane
Date:
Subject: Re: Casting from a domain