postgresql: fix attribute order