Re: Some minor changes to pgbench

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: Some minor changes to pgbench
Дата
Msg-id 20060824123224.588D.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: [PATCHES] Some minor changes to pgbench  ("Joshua D. Drake" <jd@commandprompt.com>)
Ответы Re: Some minor changes to pgbench
Список pgsql-hackers
"Joshua D. Drake" <jd@commandprompt.com> wrote:

> >> Would it be worthwhile to add a switch so that the foreign key test is
> >> only used "if" they use the switch in conjunction with a -i?
> >
> > I wouldn't object to providing that as a (non default) option.
>
> O.k. I will take a look at what that would take..

If we provide 'external initializer', some of your proposals can be done
through more generalized way, at least the foreign key test. It is a
replacement of the DDLAFTERs[], which is a hard-codeded list in the source
code to create primary keys. It may help other people, for example, who want
to test the performance of hash index instead of btree index (primary key).


Using it, you can use the below script or something:

$ pgbench -i -f init_with_fkey.sql
[init_with_fkey.sql]
alter table branches add primary key (bid);
...
alter table tellers add constraint tellers_bid_fkey   foreign key (bid) references branches (bid);
...


Are you interested in this idea?

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgsql-patches reply-to (was Re: [PATCHES] selecting large result sets in psql using cursors)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Some minor changes to pgbench