Re: Casting from a domain

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Casting from a domain
Date: 2005-03-04 19:47:11
Message-ID: 4228BB3F.8070600@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-03-04 20:40:17 Re: Casting from a domain
Previous Message Greg Patnude 2005-03-04 19:11:51 Re: preserving data after updates