Safely deduplicate postgresql server related resources