Postgres compatibility.

see #391