1,035 karma · joined Mar 11, 2009 (17y ago) · 496 submissions
comment 2y ago · link · parent
for functions/views/etc: I've used https://github.com/omniti-labs/pg_extractor then removed roles from dump (because the fluctuated between developers) and executed
perl -000 -i -lne 'print if ! /^--/ && ! /^SET /' `find schema/ -name '*.sql'` || exit 1
to remove a lot of useless comments and flags from the dump (pg_dump output isn't too readable). This oneliner can strip too much, though, comments in functions shouldn't start from the 0 column.The same script had been run on CI too, to verify that developer didn't forget to run it in the PR.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 3y ago · link · parent
Before that I rarely ever noticed it. Now it is very loud and constant. Maybe it was like that for a long-long time, but now I just focus on it too much.
comment 3y ago · link · parent
Git is not like that. It is very-very simple. If you learn basics of it, your intuition will align with git's "intuition" too, and you can do crazy things with total peace of mind, without googling or looking into source code of git to see how they had to make something "intuitive" in some definition of the word.
comment 3y ago · link · parent
comment 3y ago · link · parent
Your friends are unreasonable, unless you collaborate with them on the same branches and rewrite them after you shared them.
comment 3y ago · link · parent
Postgrest-js is something you can put in your code running in client's browser or phone, or in any place you cannot trust code won't be tampered, thanks to many quirks and limitations of PostgREST.
How to make an actual postgres connection, which is simultaneously limited enough to be secure and safe to your data and data of other users, and still be useful for anything, I have no idea. Is it possible at all? Or, ok, how many different users it could handle?
comment 3y ago · link · parent
I personally would be happy if any country would attach rationale for the law to the law itself. And possibly some KPI to see if it works. So the law could be reevaluated later, to see if it works at all, or maybe counterproductive, or maybe some major actual application of the law is not why it was introduced.