Re: autovacuum ignore tables

From: "Sriram Dandapani" <sdandapani(at)counterpane(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: autovacuum ignore tables
Date: 2006-09-29 21:54:24
Message-ID: 6992E470F12A444BB787B5C937B9D4DF060E5C9B@ca-mail1.cis.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general


I meant to say...rules are used on the parent table to redirect to
child. Just like the way the postgres 8.1 documentation has it.

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Friday, September 29, 2006 2:48 PM
To: Sriram Dandapani
Cc: Matthew T. O'Connor; pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] autovacuum ignore tables

"Sriram Dandapani" <sdandapani(at)counterpane(dot)com> writes:
> The jdbc inserts go into the main parent table and check constraints
> redirect them to child tables.

A check constraint can't redirect anything. Are you saying that you use
a trigger to try to insert the row into *each* child table, relying on
the constraints to make all except one insert fail? Ugh. You'd do a
lot better to duplicate the partitioning-rule knowledge in the trigger,
and do only one insert that should succeed --- no wasted cycles, and no
need for a subtransaction.

regards, tom lane

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Moginraj Mohandas 2006-09-29 22:12:19 Unsubscribe
Previous Message Tom Lane 2006-09-29 21:48:12 Re: autovacuum ignore tables

Browse pgsql-general by date

  From Date Subject
Next Message Ken Johanson 2006-09-30 00:12:21 Backslashes in 8.2 still escape, hwo to disable?
Previous Message Joshua D. Drake 2006-09-29 21:21:25 Re: pg web hosting with tsearch2?