ENH: Began to write a test case to PostgreSQL support.

Inspired from mysql work by @danielballan & @changhiskhan.