polthrowaway
Re:Signed Integers Are Two’s Complement
on Thursday May 31, 2018 @12:36PM (#17197706)
have they considered introducing new types for wrapping integers, checked integers and saturating integers. i understand why they might not want to make a change that could have a large effect on existing programs. but if you introduce new types then the new types will only effect new programs that choose to use them and this seems to be something that could be a library change than a language change.
Re:Odyssey – Scalable PostgreSQL connection pooler
on Wednesday May 30, 2018 @10:35AM (#17187962)
is this a problem with pg bouncer? pg bouncer supports transactional pooling which is meant to only return connections back into the pool when they are not in a transaction. so seeing as it keeps tracking of the transaction status it seems pretty crazy that it would put a connection back into the pool that has an open transaction.
i tested this on my local machine and if i drop a connection while it is inside a transaction it closes the server connection.
client close:
2018-05-30 15:28:42.068 21702 LOG C-0x7f9728816a10: DB/USER@[::1]:64342 closing because: client close request (age=85)
2018-05-30 15:28:42.068 21702 LOG S-0x7f972980a190: DB/[email protected]:5432 closing because: unclean server (age=85)
client unexpected death: 2018-05-30 15:33:57.197 21702 LOG C-0x7f9728816a10: DB/USER@[::1]:64376 closing because: client unexpected eof (age=15)
2018-05-30 15:33:57.198 21702 LOG S-0x7f972980a190: DB/[email protected]:5432 closing because: unclean server (age=10)
i guess it sucks that it doesn't reuse the connection but presumably this shouldn't happen that often that it would actually be a problem.