From: | ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
---|---|
To: | Emmanuel Cecchet <manu(at)frogthinker(dot)org> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Fwd: [PATCHES] Auto Partitioning Patch - WIP version 1 |
Date: | 2008-12-16 07:02:17 |
Message-ID: | 20081216153856.C013.52131E4D@oss.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Emmanuel Cecchet <manu(at)frogthinker(dot)org> wrote:
> In the meantime, I have made some more tests with the trigger in C (see
> attached patch).
Hmm... The inserting partition is passed by trigger arguments.
Users must replace triggers when the target is changed (ex. every month).
Is it possible to expand all of child paritions from pg_inherits and
determine a suitable parition by checking their constraints?
We can also use it when there are multiple inserting paritions,
something like hash or list paritioning. Fixed target is only applicable
to time-based range paritioning.
BTW, there is another issue in trigger approach. If INSERT commands
are interrupted by triggers, server says "INSERT 0 row" though
rows are inserted into child tables. Since using C, we could
use some back doors to modify a variable counting affected rows.
We could use partitioned tables more transparently if we have it.
Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Rushabh Lathia | 2008-12-16 07:04:52 | Re: Function with defval returns error |
Previous Message | Pavel Stehule | 2008-12-16 06:56:07 | Re: Function with defval returns error |
From | Date | Subject | |
---|---|---|---|
Next Message | Emmanuel Cecchet | 2008-12-16 07:13:29 | Re: Fwd: [PATCHES] Auto Partitioning Patch - WIP version 1 |
Previous Message | Nikhil Sontakke | 2008-12-16 06:35:11 | Re: Fwd: [PATCHES] Auto Partitioning Patch - WIP version 1 |