This URL is blocked by my company's network because of a certain substring in the URL lol
How Postgres stores data on disk – this one's a page turner
41–50 of 98 posts
Re: How Postgres stores data on disk – this one's a page turner
#42Why does closing the table of contents open the nav menu on mobile?
```const n = document.getElementById('nav-header');
document.addEventListener(
'click',
s => {
u.hidden ||
s.target === null ||
n === null ||
n.contains(s.target) ||
r()
}```
Above, in the same function, there exists the function `e.addEventListener('click', r);`, which is likely closer to what the author intended. This fires the 'click' event any time the page is clicked, which opens the nav menu when it shouldn't.Re: How Postgres stores data on disk – this one's a page turner
#43Re: How Postgres stores data on disk – this one's a page turner
#44This URL is blocked by my company's network because of a certain substring in the URL lol
What why ? Would people browse bigcocks.net unless it’s explicitly blocked? What about cox? Is „tube“ on a blocklist as well?
Re: How Postgres stores data on disk – this one's a page turner
#45This URL is blocked by my company's network because of a certain substring in the URL lol
A classic case of the Scunthorpe problem: https://en.wikipedia.org/wiki/Scunthorpe_problem In this case the substring is part of the author's name. Such names are not at all uncommon.
Apparently might be Dang's UX and not against the Mod. ¯\_(ツ)_/¯
Re: How Postgres stores data on disk – this one's a page turner
#46Earlier quoted context omitted.
Was thinking the same thing when I saw those zeros in the checksum field. Perhaps the consequences are significant. Here's a benchmarking exercise I found: https://www-staging.commandprompt.com/uploads/images/Command... With a tidy summary: > Any application with a high shared buffers hit ratio: little difference. > Any application with a high ratio of reads/writes: little difference. > Data logging application with…
On my M1 mac "dd ... | cksum" takes 3 seconds while "dd | shasum" (sha1) takes 2 seconds. So cksum might not be the best tool for performance checking. There is CPU specific code in the PG source in src/include/storage/checksum_impl.h It is written as a plain nested loop in C. So performance is fully dependent on the compiler being able to parallelize or vectorize the code. I would not be surprised if manually writte…
Re: How Postgres stores data on disk – this one's a page turner
#47This URL is blocked by my company's network because of a certain substring in the URL lol
Re: How Postgres stores data on disk – this one's a page turner
#48A bit of curiosity: how did Postgres choose 8k pages? shouldn’t it be the FS page size to help with atomicity?
Re: How Postgres stores data on disk – this one's a page turner
#49Earlier quoted context omitted.
Was thinking the same thing when I saw those zeros in the checksum field. Perhaps the consequences are significant. Here's a benchmarking exercise I found: https://www-staging.commandprompt.com/uploads/images/Command... With a tidy summary: > Any application with a high shared buffers hit ratio: little difference. > Any application with a high ratio of reads/writes: little difference. > Data logging application with…
On my M1 mac "dd ... | cksum" takes 3 seconds while "dd | shasum" (sha1) takes 2 seconds. So cksum might not be the best tool for performance checking. There is CPU specific code in the PG source in src/include/storage/checksum_impl.h It is written as a plain nested loop in C. So performance is fully dependent on the compiler being able to parallelize or vectorize the code. I would not be surprised if manually writte…