
Storing Ledgers in Postgres and Ticks in Kdb+
transcript
show notes
Financial applications juggle two fundamentally different storage problems: authoritative ledgers that cannot lose balances, and high-frequency market feeds that record billions of price observations. While Postgres offers native exact decimal precision and broad operational familiarity, scanning years of market ticks demands specialized architectures. This discussion explores the boundary between transactional row stores and columnar time-series systems like kdb+, examining the trade-offs between precision, arithmetic speed, compression, and specialized query languages.
Key sources:
• PostgreSQL 18/19 docs, Numeric Types — https://www.postgresql.org/docs/current/datatype-numeric.html
• KX, Architecture of kdb+ systems — https://code.kx.com/q/architecture/
• Barez, Bilokon, Xiong, Benchmarking Specialized Databases for High-frequency Data, submitted 2023-01-29 (v1) — https://arxiv.org/abs/2301.12561
Episode 6268 — myweirdprompts.com/n/6268 (permanent short link: myweirdprompts.com/341685)





