Re: [HACKERS] pg_ls_waldir() & pg_ls_logdir()

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] pg_ls_waldir() & pg_ls_logdir()
Дата
Msg-id CA+Tgmoa_PLTthr1GkLsso0Xnb_KasyAkBbf6A_1zCFsdbcCo2g@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] pg_ls_waldir() & pg_ls_logdir()  (Dave Page <dpage@pgadmin.org>)
Ответы Re: [HACKERS] pg_ls_waldir() & pg_ls_logdir()  (Dave Page <dpage@pgadmin.org>)
Список pgsql-hackers
On Mon, Feb 20, 2017 at 6:21 AM, Dave Page <dpage@pgadmin.org> wrote:
> Patch includes the code and doc updates.

Review:

+        strftime(mtime, 25, "%Y-%m-%d %H:%M:%S %Z",
localtime(&(attrib.st_ctime)));
+        const int n = snprintf(NULL, 0, "%lld", attrib.st_size);
+        char size[n+1];
+        snprintf(size, n+1, "%lld", attrib.st_size);

We don't allow variable declarations in mid-block.  You've been
programming in C++ for too long!

The documentation should be updated to say that access to
pg_ls_logdir() and pg_ls_waldir() can be granted via the permissions
system (see the paragraph above the table you updated).

The four existing functions in the documentation table each have a
corresponding paragraph below the table, but the two new functions you
added don't.

+1 for the concept.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] Need a builtin way to run all tests faster manner
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] logical replication access control patches