Some codes refer slot()->{'slot_name'} but it is not defined

Поиск
Список
Период
Сортировка
От Hayato Kuroda (Fujitsu)
Тема Some codes refer slot()->{'slot_name'} but it is not defined
Дата
Msg-id OSCPR01MB149667EC4E738769CA80B7EA5F5AE2@OSCPR01MB14966.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответы Re: Some codes refer slot()->{'slot_name'} but it is not defined
Список pgsql-hackers
Dear hackers,

Cluster.pm defines a function slot()which requires a slot_name as a key
and returns attributes of the given slot, as a hash-ref. ISTM, the hash
does not contain 'slot_name'.

However, I found that some codes access it by using a key 'slot_name'. ISTM it always
becomes 'undef' thus any tests are meaningless.

It looks like that existing codes want to check the existing of given logical slots.
So, it is enough to search with key 'plugin'. The valid value is set if exists, otherwise ''.

How do you think?

Best regards,
Hayato Kuroda
FUJITSU LIMITED


Вложения

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