postgresql partition by range null value