Fix table creation sql syntax for Postgresql 8.4 and 9.0.