Making Numeric Faster in Postgres
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A Postgres developer, Dan Olivo, describes a set of "fast path" optimisations for the numeric type, which is often slow because short on-disk values must be unpacked and palloc'd on every operation.