pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Olgierd Michalak <olgierdm@softcomputer.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: How to implement Aggregate Awareness?
Date: Fri, 4 Nov 2011 21:03:47 +0000
Message-ID: <F8991549C624E2429C578E86D68A4D027F42A9C9@EXCH-MBX01.softcomputer.com> (raw)

I wonder how to implement Aggregate Awareness or Transparent Aggregate Navigation in PostgreSQL?

Simply put, when Transparent (to the reporting tool) Aggregate Navigator recognizes that a query would execute faster using aggregates, it automatically rewrites the query so that the database hits the smaller aggregates rather than larger detail tables upon which the small aggregates are pre-computed. The simple theory for BI/DWH was set out by Ralph Kimball (http://www.kimballgroup.com/html/articles_search/articles1996/9608d54.html). Some tools, including Oracle, provide such functionality, and I wonder if it is possible to implement such Aggregate Awareness in PostgreSQL.

Re-write rules in PostgreSQL come to mind first. After a few attempts, I realized that they may not be sophisticated enough to provide a viable solution. But perhaps they are, or there are other features in PostgreSQL that would allow for such aggregate awareness. If you have good ideas about how to implement this functionality, please respond.


Thank you,
Olgierd Michalak
Soft Computer Consultants, Inc.

view thread (5+ messages)  latest in thread

Message-ID: <F8991549C624E2429C578E86D68A4D027F42A9C9@EXCH-MBX01.softcomputer.com>
Permalink:  ../F8991549C624E2429C578E86D68A4D027F42A9C9@EXCH-MBX01.softcomputer.com/
Also on:    postgresql.org/message-id/F8991549C624E2429C578E86D68A4D027F42A9C9@EXCH-MBX01.softcomputer.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: olgierdm@softcomputer.com
  Subject: Re: How to implement Aggregate Awareness?
  In-Reply-To: <F8991549C624E2429C578E86D68A4D027F42A9C9@EXCH-MBX01.softcomputer.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox