Re: Patch to implement pg_current_logfile() function
| От | Karl O. Pinc |
|---|---|
| Тема | Re: Patch to implement pg_current_logfile() function |
| Дата | |
| Msg-id | 20161123074700.333f9089@slate.meme.com обсуждение исходный текст |
| Ответ на | Re: Patch to implement pg_current_logfile() function ("Karl O. Pinc" <kop@meme.com>) |
| Ответы |
Re: Patch to implement pg_current_logfile() function
|
| Список | pgsql-hackers |
On Wed, 23 Nov 2016 03:21:05 -0600 "Karl O. Pinc" <kop@meme.com> wrote: > But also, you can't use strtok() to parse lbuffer because > the path you're returning can contain a space. Maybe on the 2nd call to strtok() you could pass "" as the 2nd argument? That'd be a little wonky but the man page does not say you can't have an empty set of delimiters. On the other hand strtok() is not a perfect choice, you don't want to "collapse" adjacent delimiters in the parsed string or ignore leading spaces. I'd prefer a strstr() solution. Or strchr() even better. Regards. Karl <kop@meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein
В списке pgsql-hackers по дате отправления: