Re: Do we want a hashset type?

Поиск
Список
Период
Сортировка
От jian he
Тема Re: Do we want a hashset type?
Дата
Msg-id CACJufxHfj30MHyTS1-mvXoxrODzxG6Db0pjq4z=hZU8UiVcsCw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Do we want a hashset type?  (jian he <jian.universality@gmail.com>)
Ответы Re: Do we want a hashset type?  ("Joel Jacobson" <joel@compiler.org>)
Re: Do we want a hashset type?  ("Joel Jacobson" <joel@compiler.org>)
Список pgsql-hackers

In hashset/test/sql/order.sql, can we add the following to test whether the optimizer will use our index.

CREATE INDEX  ON test_int4hashset_order (int4hashset_col  int4hashset_btree_ops);

-- to make sure that this work with just two rows
SET enable_seqscan TO off;              

explain(costs off) SELECT * FROM test_int4hashset_order WHERE int4hashset_col = '{1,2}'::int4hashset;
reset enable_seqscan;


Since most contrib modules, one module, only one test file, maybe we need to consolidate all the test sql files to one sql file (int4hashset.sql)?
--------------
I didn't install the extension directly. I copied the hashset--0.0.1.sql to another place, using gcc to compile these functions. 
gcc -I/home/jian/postgres/2023_05_25_beta5421/include/server -fPIC -c /home/jian/hashset/hashset.c
gcc -shared  -o /home/jian/hashset/hashset.so /home/jian/hashset/hashset.o 
then modify hashset--0.0.1.sql  then in psql  \i fullsqlfilename to create these functions, types.

Because even make PG_CONFIG=/home/jian/postgres/2023_05_25_beta5421/bin/pg_config still has an error.
 fatal error: libpq-fe.h: No such file or directory
    3 | #include <libpq-fe.h>


Is there any way to put test_send_recv.c to sql test file? 
Attached is a patch slightly modified README.md. feel free to change, since i am not native english speaker... 

Вложения

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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Let's make PostgreSQL multi-threaded
Следующее
От: Amit Langote
Дата:
Сообщение: obsolete filename reference in parser README