Add extension support to postgresql adapter
Sync type_to_sql with AR4 in postgresql adapter