On Thu, Dec 17, 2009 at 02:41:40PM +0100, Vincenzo Romano wrote: > > 2009/12/17 Sam Jas <samjas33@xxxxxxxxx> > > 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@xxxxxxxxxx> http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fetter@xxxxxxxxx iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general