From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: ALTER TABLE ( smallinto -> boolean ) ... |
Date: | 2005-09-01 20:56:45 |
Message-ID: | 6399.1125608205@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
"Marc G. Fournier" <scrappy(at)postgresql(dot)org> writes:
> On Mon, 29 Aug 2005, Tom Lane wrote:
>> No, because there's no built-in cast from smallint to bool.
> 'k, I just took a read through the "CREATE CAST" man page, and don't think
> I can use that for this,
Sure you can. Make a SQL or PLPGSQL function that does the conversion
you want and then create a cast using it.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2005-09-01 21:14:25 | Re: Using multi-locale support in glibc |
Previous Message | Marc G. Fournier | 2005-09-01 20:49:02 | Re: ALTER TABLE ( smallinto -> boolean ) ... |
From | Date | Subject | |
---|---|---|---|
Next Message | Marc G. Fournier | 2005-09-01 21:15:25 | Re: [HACKERS] ALTER TABLE ( smallinto -> boolean ) ... |
Previous Message | Marc G. Fournier | 2005-09-01 20:49:02 | Re: ALTER TABLE ( smallinto -> boolean ) ... |