Re: xlog location arithmetic
От | Magnus Hagander |
---|---|
Тема | Re: xlog location arithmetic |
Дата | |
Msg-id | CABUevEy3nqhMvyGQRbYYSdYjuB1B_Kgc_kxHBnZqdUMw+z6c1Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: xlog location arithmetic (Euler Taveira de Oliveira <euler@timbira.com>) |
Ответы |
Re: xlog location arithmetic
|
Список | pgsql-hackers |
On Sun, Feb 26, 2012 at 00:53, Euler Taveira de Oliveira <euler@timbira.com> wrote: > On 25-02-2012 09:23, Magnus Hagander wrote: >> Do we even *need* the validate_xlog_location() function? If we just >> remove those calls, won't we still catch all the incorrectly formatted >> ones in the errors of the sscanf() calls? Or am I too deep into >> weekend-mode and missing something obvious? >> > sscanf() is too fragile for input sanity check. Try > pg_xlog_location_diff('12/3', '-10/0'), for example. I won't object removing > that function if you protect xlog location input from silly users. Ah, good point. No, that's the reason I was missing :-) Patch applied, thanks! -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/
В списке pgsql-hackers по дате отправления: