Make getting Core ID const
Use SegmentHash and SliceHash in SegmentDescription
Fix compilation error when HAVE_PostgreSQL is not defined