Temporary workaround to get script working from postgresql command line.