Re: [PATCH v1] pg_ls_tmpdir to show directories

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: [PATCH v1] pg_ls_tmpdir to show directories
Дата
Msg-id 20200116003924.GJ26045@telsasoft.com
обсуждение исходный текст
Ответ на Re: [PATCH v1] pg_ls_tmpdir to show directories  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: [PATCH v1] pg_ls_tmpdir to show directories
Список pgsql-hackers
On Wed, Jan 15, 2020 at 11:21:36AM +0100, Fabien COELHO wrote:
> I'm trying to think about how to get rid of the strange structure and hacks,
> and the arbitrary looking size 2 array.
> 
> Also the recursion is one step, but I'm not sure why, ISTM it could/should
> go on always?

Because tmpfiles only go one level deep.

> Looking at the code, ISTM that relying on a stack/list would be much cleaner
> and easier to understand. The code could look like:

I'm willing to change the implementation, but only after there's an agreement
about the desired behavior (extra column, one level, etc).

Justin



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

Предыдущее
От: Jesse Zhang
Дата:
Сообщение: Re: Use compiler intrinsics for bit ops in hash
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Improve errors when setting incorrect bounds for SSL protocols