postgresql: fix behaviour inconsistency in stx