docker: Error response from daemon: create ./pg-data: "./pg-data" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
How Postgres stores data on disk – this one's a page turner
71–80 of 98 posts
Re: How Postgres stores data on disk – this one's a page turner
#72Earlier quoted context omitted.
I once worked for a company that blocked Cuban sites because of .cu (which is the Portuguese word for the end of your digestive system), but did not block porn sites (or so I was told ;-).
Are you sure it wasn't because of the US embargo on Cuba? Companies outside the US often participate(d) as well, because they want to do business with the US and US companies.
Re: How Postgres stores data on disk – this one's a page turner
#73Earlier quoted context omitted.
If you somehow have 3+ bit errors coming out of ram on an ECC board, you have much bigger problems than trying to verify your postgres data via checksum.
AFAIK RowHammer attacks can cause multiple bits to flip in a row[1], no? But sure, it's not for the vast majority of folks. [1]: https://www.vusec.net/projects/eccploit/
Re: How Postgres stores data on disk – this one's a page turner
#74Re: How Postgres stores data on disk – this one's a page turner
#75Earlier quoted context omitted.
Interesting. I guess M1 doesn't have the 'crc32' "acceleration" that is included in SSE4.2.
M1 has CRC32 acceleration intrinsics. https://dougallj.wordpress.com/2022/05/22/faster-crc32-on-th... https://github.com/corsix/fast-crc32?tab=readme-ov-file#appl...
Something is amiss here.
If a CPU can do 30 GB/s then a CRC check should not have any real performance impact.
Re: How Postgres stores data on disk – this one's a page turner
#76>Something really important about tables which isn’t obvious at first is that, even though they might have sequential primary keys, tables are not ordered.
This was very surprising to read.
Re: How Postgres stores data on disk – this one's a page turner
#77When I started my dev career, NoSQL was the rage and I remember reading about BigTable, Cassandra, Dynamo, and most importantly LSMs. They made a big deal about how the data on stored on disk was sorted. I never knew why this was a big deal but always kept it in mind, but I never bothered to understand how it was done previously. > Something really important about tables which isn’t obvious at first is that, even tho…
Re: How Postgres stores data on disk – this one's a page turner
#78> Can’t we just store some data on disk and read / write from it when we need to? (Spoiler: no.) I disagree. SQLite does a good job in uniting the 2 worlds: complex SQL queries with excellent data consistency and simple file(s). Although SQLite is for sure not the one size fits all solution.
Re: How Postgres stores data on disk – this one's a page turner
#79A 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
#80Earlier quoted context omitted.
M1 has CRC32 acceleration intrinsics. https://dougallj.wordpress.com/2022/05/22/faster-crc32-on-th... https://github.com/corsix/fast-crc32?tab=readme-ov-file#appl...
So when using these intrinsics an Intel Core i7 can do 30 GB/s but the performance check linked above (by isosphere ) says only 300 MB/s, i.e. 1% Something is amiss here. If a CPU can do 30 GB/s then a CRC check should not have any real performance impact.