|
|
|
|
|
by smallnamespace
1940 days ago
|
|
Benjie, one of the PostGraphile creators, has a good talk [1] advocating for database-driven development. OTOH, having dug into PostGraphile a bit, I personally wouldn't advocate for pushing so much backend logic into the DB. Like, if you decide to do auth and TOTP in the DB, you'll end up implementing it in PL/pgSQL. Writing core security logic in a less-familiar language feels like it adds risk. Also, for smaller projects your backend is often just a single server, so moving auth in into the DB doesn't save you from managing distributed state. [1] https://www.youtube.com/watch?v=XDOrhTXd4pE |
|
Not really? Postgres (as well as other rdbms) support many other languages - I don't see many good reasons to insist on pl/pgSQL for uses like these?
Both python, perl and TCL are part of the standard distribution in addition to pl/pgSQL.
https://www.postgresql.org/docs/13/xplang.html
https://www.postgresql.org/docs/13/external-pl.html