fix warning
postgres provider: only record active iterator, when it's open (fixes crash on labeling non-existing attributes)