Re: pg_tablespace_databases

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_tablespace_databases
Дата
Msg-id 13737.1088775304@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_tablespace_databases  (Andreas Pflug <pgadmin@pse-consulting.de>)
Ответы Re: pg_tablespace_databases  (Joe Conway <mail@joeconway.com>)
Re: pg_tablespace_databases  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Andreas Pflug <pgadmin@pse-consulting.de> writes:
> Joe Conway wrote:
>> 2) This allocation size was a bit ambigous and I think based on a once
>> longer tablespace directory name:

> This size calculation originated (copy/paste) from
> commands/tablespace.c,

Yeah --- Bruce did not adjust the string length calculations when he
editorialized on the directory name.  I'd been meaning to go back and
make them match.

> should be clarified there too (and "pg_tblspc" is
> hardcoded in strings, could be extracted to a macro definition).

[ shrug... ]  The name is not going to change again.  I have never cared
for the practice of writing strlen("foo") as if it were a compile-time
constant.  But certainly it would be entirely pointless to define such a
macro and then use it in only one place.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_autovacuum integration attempt #2
Следующее
От: Markus Bertheau
Дата:
Сообщение: Re: First attempt: support for "\dg" in psql