workaround the freaking problem with pg cookbook