Pgsql: Support Grouping Sets, Cube, and Rollup
postgresql.org
postgresql.org
I now see that postgresql is the one true database. Everyone should abandon all other databases that don't have special features (ex: sqlite embedded).
SQLite embedded does have special features. It's embedded.
http://sqlmag.com/database-development/sql-server-65-cube-ro...
While the constructs in the linked article increase the expressive power of SQL, they are more icing than cake for an OLAP load.
If PG adopts a materialized view that supports controlled automatic maintenance, then you'd have something similar to what the MOLAP tools do.
Note that MOLAP is a trap of sorts (no pun intended).