Postgres - debug mode: do not slow down fetching of features unless necessary

(the debug routine was consuming ~50% of rendering time)