casting postgresql 8.3 Archive