Allow Expression object as table name for postgresql

Possible fix for issue #3824.