Re: pread() and pwrite()

Поиск
Список
Период
Сортировка
От Jesper Pedersen
Тема Re: pread() and pwrite()
Дата
Msg-id 0f419c91-49ab-2399-0143-13063bd97c46@redhat.com
обсуждение исходный текст
Ответ на Re: pread() and pwrite()  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pread() and pwrite()  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Список pgsql-hackers
Hi Tom,

On 11/7/18 9:30 AM, Tom Lane wrote:
> I'm confused by this.  Surely the pwrite-based code is writing exactly the
> same data as before.  Do we have to conclude that valgrind is complaining
> about passing uninitialized data to pwrite() when it did not complain
> about exactly the same thing for write()?
> 
> [ looks ... ]  No, what we have to conclude is that the write-related
> suppressions in src/tools/valgrind.supp need to be replaced or augmented
> with pwrite-related ones.
> 

The attached patch fixes this for me.

Unfortunately pwrite* doesn't work for the pwrite64(buf) line.

Best regards,
  Jesper

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: move PartitionBoundInfo creation code
Следующее
От: Dmitry Dolgov
Дата:
Сообщение: Re: [HACKERS] [PATCH] Generic type subscripting