Added helper for pgsql handler.