Today I Learned

2022/05/04

postgres sql pg

Not to use BETWEEN for timestamps Not to use char(n), or varchar(n), since they’re not natively fixed-width and will defy expectations. See https://wiki.postgresql.org/wiki/Don't_Do_This

Also, I learned that you can’t run chsh(1) with sudo; chsh needs to run as the user who’s changing their shell.