Open-Source Wikis

/

CockroachDB

/

Packages

/

config

cockroachdb/cockroach

config

pkg/config/ is the legacy "system config" package. Most of its responsibilities have moved to span config, but a few types still live here.

What's in it

  • system.go and system_test.goSystemConfig, the historical gossip blob that held zone configs and descriptor IDs.
  • zonepb/ — the ZoneConfig proto type. Still used by SQL ALTER ... CONFIGURE ZONE plumbing before the spanconfig translator picks it up.
  • parsetestdata.go — datadriven test helpers.

Status

pkg/config/system.go is gradually being narrowed. New code should not gossip via SystemConfig — produce a span config instead. The zonepb.ZoneConfig type, however, is still the canonical user-facing format for zone configs (input to ALTER ... CONFIGURE ZONE); pkg/spanconfig/spanconfigsqltranslator/ consumes it.

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

config – CockroachDB wiki | Factory