From b79ce2f5a8931818900fe15e732923dd88ad8811 Mon Sep 17 00:00:00 2001 From: susan-pgedge <130390403+susan-pgedge@users.noreply.github.com> Date: Thu, 13 Nov 2025 07:13:39 -0500 Subject: [PATCH] Fix bit field descriptions in snowflake documentation Reported by Asif N. --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index f5eb179..70c5a8d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,8 +6,8 @@ Internally, snowflakes are 64 bit integers represented externally as bigint valu * bit 63 - unused (sign of int8) * bits 22-62 - timestamp with millisecond precision -* bits 10-21 - counter within one millisecond -* bits 0-9 - unique pgEdge Distributed Postgres node number +* bits 12-21 - unique pgEdge Distributed Postgres node number +* bits 0-11 - counter within one millisecond * The timestamp is a 41-bit unsigned value representing millisecond precision and an epoch of 2023-01-01. * The counter is a 12-bit unsigned value that increments per ID allocation. This provides for 4096 unique IDs per millisecond, or 4 million IDs per second. * The node number is a 10-bit unique identifier for the Postgres instance inside a global cluster. This value is set with the `snowflake.node` GUC in the `postgresql.conf` file.