Re: Table Partitioning Advice Request - Mailing list pgsql-general

From David Fetter
Subject Re: Table Partitioning Advice Request
Date
Msg-id 20091217145545.GC3000@fetter.org
Whole thread Raw
In response to Re: Table Partitioning Advice Request  (Vincenzo Romano <vincenzo.romano@notorand.it>)
Responses Re: Table Partitioning Advice Request
List pgsql-general
On Thu, Dec 17, 2009 at 02:41:40PM +0100, Vincenzo Romano wrote:
> > 2009/12/17 Sam Jas <samjas33@yahoo.com>
> > Rule is not advisable, Trigger is the best solution.

> If you have to choose among a couple hundred partition tables, the
> trigger function body is far from trivial!

It's possible to generate such code and deploy it automatically.

> You really think that calling and running a trigger function for every
> line is the best solution?

Yes.  The trigger function is choosing from a small subset of the
tables, or you know which tables exactly the rows are going into and
insert them there.

Oh, and please do trim, and don't top-post.  I've fix this in this
post.

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Justifying a PG over MySQL approach to a project
Next
From: Vincenzo Romano
Date:
Subject: Re: Table Partitioning Advice Request