Skip site navigation (1) Skip section navigation (2)

Grouping sets

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Grouping sets
Date: 2009-10-29 08:48:46
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

I got a possibility to continue on GROUPING SETS see

My last patch was based on an sharing functionality with non recursive
CTE. I would to recapitulate all options here and I would to prepare
this patch for next commitfest.

a) using actualised patch - review:
  + it is simple (share lot of code)
  + it is near to natural implementation - result is in "good" order
  + allows full implementation of ANSI SQL syntax - GROUP BY
  - is serial
  - I read some objections - "it is only syntactic sugar"

b) modification of a (directly using tuple store without CTE code)
  + add some new code
  - it isn't syntactic sugar

c) go back to my first patch and use "feeders"
  - add some complexity to GROUP BY planner ( :-( )
  +/- add new concept to PostgreSQL - semi parallel execution
  - when datatype isn't hashable, then have to use serial processing
  - have to solve some corner behave of our hashtable support
  - should be very fast

I still prefer option a (with some cleaning)

I invite any comments and helpers.

Pavel Stehule

pgsql-hackers by date

Next:From: Hannu KrosingDate: 2009-10-29 08:54:24
Subject: Re: [PATCHES] updated hash functions for postgresql v1
Previous:From: Pavel StehuleDate: 2009-10-29 07:48:01
Subject: Re: Proposal - temporal contrib module

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group