А что такое UUID? Уникальный ID для распределенных систем, я полагаю. И вроде он символьный. Даже если он int64 - то смысл заморачиваться? В вопросе вроде не было задачи генерить id на разных серваках.
Не хотите Вы меня услышать.
Достаточно открыть мануал по типам данных в постгресе... 1
The data type uuid stores Universally Unique Identifiers (UUID) as defined by RFC 4122, ISO/IEC 9834-8:2005, and related standards. (Some systems refer to this data type as a globally unique identifier, or GUID, instead.) This identifier is a 128-bit quantity that is generated by an algorithm chosen to make it very unlikely that the same identifier will be generated by anyone else in the known universe using the same algorithm. Therefore, for distributed systems, these identifiers provide a better uniqueness guarantee than sequence generators, which are only unique within a single database.
A UUID is written as a sequence of lower-case hexadecimal digits, in several groups separated by hyphens, specifically a group of 8 digits followed by three groups of 4 digits followed by a group of 12 digits, for a total of 32 digits representing the 128 bits.
И причем здесь распределенные системы? Только лишь тем, что значения генерируются случайно, а не последовательно, и обеспечивают большую уникальность ключа?
Тогда давайте уточнять, что деревья индексов построенные на UUID лучше сбалансированы и обеспечивают лучшее быстродействие при больших объемах данных.