Re: count(*) and bad design was: Experiences with extensibility

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Harald Fuchs <hf0217x(at)protecting(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: count(*) and bad design was: Experiences with extensibility
Date: 2008-01-10 13:49:17
Message-ID: 20080110134917.GC4962@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Harald Fuchs wrote:
> In article <60ejcqy6j0(dot)fsf(at)dba2(dot)int(dot)libertyrms(dot)com>,
> Chris Browne <cbbrowne(at)acm(dot)org> writes:
>
> > There may be a further optimization to be had by doing a
> > per-statement trigger that counts the number of INSERTs/DELETEs done,
> > so that inserting 30 tuples (in the table being tracked) leads to
> > adding a single tuple with count of 30 in the summary table.
>
> This would be nice, but at least the 8.2.4 docs say
>
> Statement-level triggers do not currently have any way to examine
> the individual row(s) modified by the statement.
>
> Is this restriction removed in a later version?

Nope.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2008-01-10 13:56:11 Re: Query to get column-names in table via PG tables?
Previous Message Albe Laurenz 2008-01-10 13:49:04 Re: Format Float numbers