Better HN
topnewbestaskshowjobs
Log inSign up

fooododododo

3 karma · joined Dec 7, 2023 (2y ago) · 7 submissions

Submissions

comment 2y ago · link · parent

Curious what your opinion on plpgsql functions is? Could easily solve your initial problem (if I follow). They don't seem to come up much though

comment 2y ago · link · parent

Do they ever write plpgsql? If not why not?

comment 2y ago · link · parent

Is everything in pgdump in the information schema?

comment 2y ago · link · parent

Why not run Pg in a container if that's what's in prod?

comment 2y ago · link · parent

Agree re trigger maintenance

Re orm, I'm strongly biased towards only using them when they (1) are absolutely necessary or provide some extreme benefit (2) are able to output the raw SQL to be executed on the db (3) the SQL to be executed is understood.

I've seen them used as a substitute for understanding SQL/databases and, personally, think that's a pretty bad idea.

comment 2y ago · link · parent

Seems like a rant rather than a comment to the post?

Timescale has continuous aggregates that might be interesting, writing a table built by a trigger isn't hard, and some might say having a separate connection pooler is a feature rather than a bug... Idk enough about SQL server for the group part.

comment 2y ago · link · parent

Tracking triggers etc is pretty straightforward, just put them in a repo and apply them as part of a schema change. Testing them can be tricky, as unit tests aren't as likely to capture the locks/time that can be an issue when the database is under load. Tools like pgreplay can be helpful here.