Re: [HACKERS] Custom compression methods (mac+lz4.h)
От
Tom Lane
Тема
Re: [HACKERS] Custom compression methods (mac+lz4.h)
Дата
Msg-id
558766.1616424108@sss.pgh.pa.us
Ответ на
Re: [HACKERS] Custom compression methods (mac+lz4.h) (Dilip Kumar)
Список
Дерево обсуждения
[HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus K <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Andres Freund <andres@anarazel.de>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Andres Freund <andres@anarazel.de>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods konstantin knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Oleg Bartunov <obartunov@gmail.com>
Re: [HACKERS] Custom compression methods Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Custom compression methods Ildar Musin <i.musin@postgrespro.ru>
Re: [HACKERS] Custom compression methods Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Craig Ringer <craig@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Oleg Bartunov <obartunov@gmail.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Евгений Шишкин <itparanoia@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildar Musin <i.musin@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildar Musin <i.musin@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildar Musin <i.musin@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildar Musin <i.musin@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Custom compression methods Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Michael Paquier <michael@paquier.xyz>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@gmail.com>
Re: Re: [HACKERS] Custom compression methods David Steele <david@pgmasters.net>
Re: Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Andres Freund <andres@anarazel.de>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Andres Freund <andres@anarazel.de>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Andrey Borodin <x4mmm@yandex-team.ru>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Andrey Borodin <x4mmm@yandex-team.ru>
Re: [HACKERS] Custom compression methods Andrey Borodin <x4mmm@yandex-team.ru>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Custom compression methods Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: Re: [HACKERS] Custom compression methods Amit Khandekar <amitdkhan.pg@gmail.com>
Re: Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] Custom compression methods Mark Dilger <mark.dilger@enterprisedb.com>
Re: [HACKERS] Custom compression methods Dilip Kumar <dilipbalaut@gmail.com>
Re: Re: Re: [HACKERS] Custom compression methods David Steele <david@pgmasters.net>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Chris Travers <chris.travers@adjust.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Chris Travers <chris.travers@adjust.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Thomas Munro <thomas.munro@gmail.com>
Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Custom compression methods Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Custom compression methods Ildus K <i.kurbangaliev@gmail.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@gmail.com>
Re: [HACKERS] Custom compression methods Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildar Musin <ildar@adjust.com>
Re: Re: Re: [HACKERS] Custom compression methods Chris Travers <chris.travers@adjust.com>
Re: [HACKERS] Custom compression methods Евгений Шишкин <itparanoia@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Adam Brusselback <adambrusselback@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Re: [HACKERS] Custom compression methods Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Custom compression methods Oleg Bartunov <obartunov@gmail.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Chapman Flack <chap@anastigmatix.net>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Custom compression methods Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Custom compression methods Robert Haas <robertmhaas@gmail.com>
Dilip Kumar writes: > On Mon, Mar 22, 2021 at 5:22 AM Tom Lane wrote: >> Also, after studying the documentation for LZ4_decompress_safe >> and LZ4_decompress_safe_partial, I realized that liblz4 is also >> counting on the *output* buffer size to not be a lie. So we >> cannot pass it a number larger than the chunk's true decompressed >> size. The attached patch resolves the issue I'm seeing. > Okay, the fix makes sense. In fact, IMHO, in general also this fix > looks like an optimization, I mean when slicelength >= > VARRAWSIZE_4B_C(value), then why do we need to allocate extra memory > even in the case of pglz. So shall we put this check directly in > toast_decompress_datum_slice instead of handling it at the lz4 level? Yeah, I thought about that too, but do we want to assume that VARRAWSIZE_4B_C is the correct way to get the decompressed size for all compression methods? (If so, I think it would be better style to have a less opaque macro name for the purpose.) regards, tom lane
В списке pgsql-hackers по дате отправления