Re: [GENERAL] ALTER TABLE with USING clause for timestamp

2008-03-22 Thread Tom Lane
Josh Trutwin <[EMAIL PROTECTED]> writes: > I have a column in a table defined as type TEXT and I'd like to > convert to a TIME type - I tried this: > ALTER TABLE t1 ALTER COLUMN tcol TYPE TIME WITHOUT TIME ZONE; > which throws: > ERROR: column "tcol" cannot be cast to type "pg_catalog.time" You j

[GENERAL] ALTER TABLE with USING clause for timestamp

2008-03-22 Thread Josh Trutwin
Hi, I have a column in a table defined as type TEXT and I'd like to convert to a TIME type - I tried this: ALTER TABLE t1 ALTER COLUMN tcol TYPE TIME WITHOUT TIME ZONE; which throws: ERROR: column "tcol" cannot be cast to type "pg_catalog.time" From reading the ALTER TABLE documents there app