Re: add function for creating/attaching hash table in DSM registry

Поиск
Список
Период
Сортировка
От Dagfinn Ilmari Mannsåker
Тема Re: add function for creating/attaching hash table in DSM registry
Дата
Msg-id 87ecvywhyl.fsf@wibble.ilmari.org
обсуждение исходный текст
Ответ на add function for creating/attaching hash table in DSM registry  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: add function for creating/attaching hash table in DSM registry
Список pgsql-hackers
Nathan Bossart <nathandbossart@gmail.com> writes:

> +typedef struct NamedDSMHashState
> +{
> +    dsa_handle    dsah;
> +    dshash_table_handle dshh;
> +    int            dsa_tranche;
> +    char        dsa_tranche_name[68];    /* name + "_dsa" */
> +    int            dsh_tranche;
> +    char        dsh_tranche_name[68];    /* name + "_dsh" */
> +} NamedDSMHashState;

I don't have enough knowledge to review the rest of the patch, but
shouldn't this use NAMEDATALEN, rather than hard-coding the default
length?

- ilmari



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