News for hackers. Stuff that matters.
Re:Back to basics: Writing an application using Go and Postg... by benhoyt on Monday November 22, 2021 @07:04PM (#29313115)
I haven't used pgx -- can you give some specifics of the issues with dates/times or other rough edges?
Re:Back to basics: Writing an application using Go and Postg... by candiddevmike on Monday November 22, 2021 @09:06PM (#29313847)
The way it parses dates using Unix time causes issues when you compare the values returned due to Go setting the location property:

https://github.com/jackc/pgx/issues/863

pgx doesn't seem to handle reconnects the same way lib/pg does, but I haven't tested this recently: https://github.com/jackc/pgx/issues/672

Re:Back to basics: Writing an application using Go and Postg... by henvic on Monday November 22, 2021 @10:49PM (#29314400)
The rough edges I've faced are either edge case bugs or using more obscure APIs. Nothing too much worrisome.