pgsql: Use the correct sizeof() in BufFileLoadBuffer

2025-01-24 Thread Tomas Vondra
Use the correct sizeof() in BufFileLoadBuffer The sizeof() call should reference buffer.data, because that's the buffer we're reading data into, not the whole PGAlignedBuffer union. This was introduced by 44cac93464, which replaced the simple buffer with a PGAlignedBuffer field. It's benign, beca

pgsql: Use the correct sizeof() in BufFileLoadBuffer

2025-01-24 Thread Tomas Vondra
Use the correct sizeof() in BufFileLoadBuffer The sizeof() call should reference buffer.data, because that's the buffer we're reading data into, not the whole PGAlignedBuffer union. This was introduced by 44cac93464, which replaced the simple buffer with a PGAlignedBuffer field. It's benign, beca

pgsql: Use the correct sizeof() in BufFileLoadBuffer

2025-01-24 Thread Tomas Vondra
Use the correct sizeof() in BufFileLoadBuffer The sizeof() call should reference buffer.data, because that's the buffer we're reading data into, not the whole PGAlignedBuffer union. This was introduced by 44cac93464, which replaced the simple buffer with a PGAlignedBuffer field. It's benign, beca

pgsql: Use the correct sizeof() in BufFileLoadBuffer

2025-01-24 Thread Tomas Vondra
Use the correct sizeof() in BufFileLoadBuffer The sizeof() call should reference buffer.data, because that's the buffer we're reading data into, not the whole PGAlignedBuffer union. This was introduced by 44cac93464, which replaced the simple buffer with a PGAlignedBuffer field. It's benign, beca

pgsql: Use the correct sizeof() in BufFileLoadBuffer

2025-01-24 Thread Tomas Vondra
Use the correct sizeof() in BufFileLoadBuffer The sizeof() call should reference buffer.data, because that's the buffer we're reading data into, not the whole PGAlignedBuffer union. This was introduced by 44cac93464, which replaced the simple buffer with a PGAlignedBuffer field. It's benign, beca

pgsql: Use the correct sizeof() in BufFileLoadBuffer

2025-01-24 Thread Tomas Vondra
Use the correct sizeof() in BufFileLoadBuffer The sizeof() call should reference buffer.data, because that's the buffer we're reading data into, not the whole PGAlignedBuffer union. This was introduced by 44cac93464, which replaced the simple buffer with a PGAlignedBuffer field. It's benign, beca