Creating a Snowflake Sequence in a New Cluster
Upstream reference for Snowflake 2.6.1. Mimus 19.0.1 integrates Spock 5.0.15. Compatibility of Snowflake with Mimus is unverified.
Before you use Snowflake sequences, each node in your cluster must have a unique snowflake.node identifier. The value ranges from 1 to 1023, and it must be distinct on every node in the cluster.
Setting snowflake.node in a managed deployment
A pgEdge deployment assigns snowflake.node for you, deriving the value from each node’s place in the cluster:
- the Control Plane sets
snowflake.nodefrom the node ordinal. - pgEdge Helm charts derive
snowflake.nodefrom each node name. - pgEdge Ansible playbooks set
snowflake.nodefrom the node zone.
When you deploy with one of these methods, no further action is needed to configure the node identifier.
Setting snowflake.node manually
For a self-managed or from-source installation, set the value yourself. Use ALTER SYSTEM to assign a unique node number, then reload the server so the change takes effect. The following example sets the node identifier to 10:
You can also add the parameter to the postgresql.conf file directly. The following line identifies the host as node 11:
After you edit postgresql.conf, reload the server for the change to take effect. You can reload from psql:
You can also reload the server with pg_ctl:
Once Snowflake is configured, you can begin to use Snowflake sequences by first converting them from Postgres sequences.
Upstream source · 9506e1bd5c1f · Copyright (c) 2023–2026, pgEdge, Inc.; portions Copyright the PostgreSQL Global Development Group and The Regents of the University of California. PostgreSQL License.