Yet another attempt to make postgres happy.