Re: Patch to implement pg_current_logfile() function

Поиск
Список
Период
Сортировка
Искать
От
Karl O. Pinc
Тема
Re: Patch to implement pg_current_logfile() function
Дата
Msg-id
20161117094334.62d873e9@slate.meme.com
Ответ на
Список
Дерево обсуждения
Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function Vik Fearing <vik@2ndquadrant.fr>
Re: Patch to implement pg_current_logfile() function Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: Patch to implement pg_current_logfile() function Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to implement pg_current_logfile() function "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Christoph Berg <myon@debian.org>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function Christoph Berg <myon@debian.org>
Re: Patch to implement pg_current_logfile() function Christoph Berg <myon@debian.org>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function Christoph Berg <myon@debian.org>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Christoph Berg <myon@debian.org>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Christoph Berg <myon@debian.org>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: Patch to implement pg_current_logfile() function Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Kevin Grittner <kgrittn@gmail.com>
Re: [HACKERS] Patch to implement pg_current_logfile() function Michael Paquier <michael.paquier@gmail.com>
Re: Patch to implement pg_current_logfile() function Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to implement pg_current_logfile() function Haribabu Kommi <kommi.haribabu@gmail.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Re: Patch to implement pg_current_logfile() function Robert Haas <robertmhaas@gmail.com>
Re: Patch to implement pg_current_logfile() function Gilles Darold <gilles.darold@dalibo.com>
Re: Patch to implement pg_current_logfile() function "Karl O. Pinc" <kop@meme.com>
Hi Gilles,

On Sun, 30 Oct 2016 02:04:59 -0500
"Karl O. Pinc"  wrote:

> Attached is a patch to be applied on top of your v10 patch
> which does basic fixup to logfile_writename().

I'm looking at the v13 patch and don't see a change I submitted
with a patch to v10.  You wrote:
   snprintf(tempfn, sizeof(tempfn), "%s",                       CURRENT_LOG_FILENAME);   strcat(tempfn, ".tmp");

I patched to:
   snprintf(tempfn, sizeof(tempfn), "%s.tmp",                       CURRENT_LOG_FILENAME);

As long as you're doing a snprintf() there's no point
in "risking" a buffer overflow by a subsequent strcat().
(Not that you're likely to ever get a buffer overflow.)
And why make two calls instead of 1?  That's what's
in my head.

Regards,

Karl 
Free Software:  "You don't pay back, you pay forward."                -- Robert A. Heinlein


В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Kohei KaiGai
Дата:
FAQ