cleanup patches for dshash

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема cleanup patches for dshash
Дата
Msg-id 20240119215941.GA1322079@nathanxps13
обсуждение исходный текст
Ответы Re: cleanup patches for dshash  (Andy Fan <zhihuifan1213@163.com>)
Список pgsql-hackers
While working on the dynamic shared memory registry, I noticed a couple of
potential improvements for code that uses dshash tables.

* A couple of dshash_create() callers pass in 0 for the "void *arg"
  parameter, which seemed weird.  I incorrectly assumed this was some sort
  of flags parameter until I actually looked at the function signature.
  IMHO we should specify NULL here if arg is not used.  0001 makes this
  change.  This is admittedly a nitpick.

* There are no dshash compare/hash functions for string keys.  0002
  introduces some that simply forward to strcmp()/string_hash(), and it
  uses them for the DSM registry's dshash table.  This allows us to remove
  the hacky key padding code for lookups on this table.

Thoughts?

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Вложения

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

Предыдущее
От: Melanie Plageman
Дата:
Сообщение: Re: index prefetching
Следующее
От: Kirk Wolak
Дата:
Сообщение: Re: Oom on temp (un-analyzed table caused by JIT) V16.1 [Fixed Already]