Re: Partition: use triggers instead of rules

From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Docs <pgsql-docs(at)postgresql(dot)org>,PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Partition: use triggers instead of rules
Date: 2007-11-28 20:57:10
Message-ID: 20071128205710.GL24146@fetter.org
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-docspgsql-patches

On Wed, Nov 28, 2007 at 03:53:04PM -0500, Tom Lane wrote:
> David Fetter <david(at)fetter(dot)org> writes:
> > Best practices for partitioning so far have shown that TRIGGERs
> > are better than RULEs for most cases. Please find attached a
> > patch which reflects this.
>
> Entirely removing the example of how to do it with rules doesn't
> seem like a good idea.

It does to me. I haven't found a case yet where rules worked even as
well as triggers.

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

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

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2007-11-28 20:57:28 Re: Two fixes for plpgsql.sgml
Previous Message Tom Lane 2007-11-28 20:53:04 Re: Partition: use triggers instead of rules

Browse pgsql-patches by date

  From Date Subject
Next Message Joshua D. Drake 2007-11-28 21:03:42 Re: [PATCHES] Partition: use triggers instead of rules
Previous Message Tom Lane 2007-11-28 20:53:04 Re: Partition: use triggers instead of rules