use postgres_ext instead of hack