How to implement Aggregate Awareness? - Mailing list pgsql-sql

From Olgierd Michalak
Subject How to implement Aggregate Awareness?
Date
Msg-id F8991549C624E2429C578E86D68A4D027F42A970@EXCH-MBX01.softcomputer.com
Whole thread Raw
List pgsql-sql

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.

 

pgsql-sql by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Returning data from multiple functions
Next
From: Manu T
Date:
Subject: ORACLE PROCEDURE TO POSTGRES FUNCTION -ERROR IN THE OVER PART