Fix extension discover fails in PostgreSQL
Merge pull request #1837 from vietvh/pgsql_discover

Fix extension discover fails in PostgreSQL