Re: pgbench - allow to create partitioned tables
| От | Dilip Kumar | 
|---|---|
| Тема | Re: pgbench - allow to create partitioned tables | 
| Дата | |
| Msg-id | CAFiTN-uvoVjn2FVsw-1aHakWUVM6cE9sUix=_N0H7jZEOnc87A@mail.gmail.com обсуждение исходный текст | 
| Ответ на | Re: pgbench - allow to create partitioned tables (Fabien COELHO <coelho@cri.ensmp.fr>) | 
| Ответы | Re: pgbench - allow to create partitioned tables | 
| Список | pgsql-hackers | 
On Wed, Sep 11, 2019 at 6:08 PM Fabien COELHO <coelho@cri.ensmp.fr> wrote:
> Attached an updated version.
I have reviewed the patch and done some basic testing.  It works as
per the expectation
I have a few cosmetic comments
1.
+ if (partitions >= 1)
+ {
+ char ff[64];
+ ff[0] = '\0';
+ append_fillfactor(ff, sizeof(ff));
Generally, we give one blank line between the variable declaration and
the first statement of the block.
2.
+ if (p == 1)
+ sprintf(minvalue, "minvalue");
+ else
+ sprintf(minvalue, INT64_FORMAT, (p-1) * part_size + 1);
(p-1) -> (p - 1)
I am just wondering will it be a good idea to expand it to support
multi-level partitioning?
-- 
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com
		
	В списке pgsql-hackers по дате отправления: