Why postgress: readily available/accessible documentation / choice of level of support / free to mix/match of tools of choice (vendor, 3rd party, diy your own).
Per stated alternatives: look pretty clunky compared to DIY setup using HAproxy for awk language based webserver running on a raided/distributed pi cluster with various levels of fail over support. Directly implimenting just what need to get job done using programming language on top of a hardware solution provides for very lean/customized solution. Although, does assume very familiar with HW/SW setup and extensive familiarity of various stacks/programming concepts. SQL front end can be implimented in awk as a front end to awk.
"from scratch" issues:
Not exactly an actively suported specific DB area/db tools package (cockroachDB / TiDB / NoSql / graph DB, etc).
Not an actively supported turnkey database management system under common ide/environment (postgres, Oracle, etc.)
Flexibility limited to level of knowledge of various db areas/tools under common ide/environment (postgres, Oracle, etc.)