pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Paul A Jungwirth <pj@illuminatedcomputing.com>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>
Subject: Re: range_agg
Date: Sat, 06 Jul 2019 12:13:08 -0700
Message-ID: <d9f99d9254ff638f82e1e7c91eaca039e9f9df68.camel@j-davis.com> (raw)
In-Reply-To: <CA+renyX7jsWnyry6SOn-WSgdgQLtyFJ7SLWBVs+oatwQsMzvog@mail.gmail.com>
References: <16d71dc8-34cf-5ebd-1ce5-ccd93c0a14f9@illuminatedcomputing.com>
	<ba323e489b98029be5ba2d5c5cbc99795f333f48.camel@j-davis.com>
	<CA+renyX7jsWnyry6SOn-WSgdgQLtyFJ7SLWBVs+oatwQsMzvog@mail.gmail.com>

On Fri, 2019-07-05 at 09:58 -0700, Paul A Jungwirth wrote:
> user-defined range types. So how about I start on it and see how it
> goes? I expect I can follow the existing code for range types pretty
> closely, so maybe it won't be too hard.

That would be great to at least take a look. If it starts to look like
a bad idea, then we can re-evaluate and see if it's better to just
return arrays.

The "weighted" version of the aggregate might be interesting... what
would it return exactly? An array of (range, weight) pairs, or an array
of ranges and an array of weights, or a multirange and an array of
weights?

> Another option would be to rename my function range_array_agg (or
> something) so that we are leaving space for a multirange function in
> the future. I don't love this idea myself but it would could a Plan
> B.
> What do you think of that?

Not excited about that either.

Regards,
	Jeff Davis







view thread (152+ messages)  latest in thread

Message-ID: <d9f99d9254ff638f82e1e7c91eaca039e9f9df68.camel@j-davis.com>
Permalink:  ../d9f99d9254ff638f82e1e7c91eaca039e9f9df68.camel@j-davis.com/
Also on:    postgresql.org/message-id/d9f99d9254ff638f82e1e7c91eaca039e9f9df68.camel@j-davis.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-hackers@postgresql.org
  Cc: pgsql@j-davis.com, pj@illuminatedcomputing.com
  Subject: Re: range_agg
  In-Reply-To: <d9f99d9254ff638f82e1e7c91eaca039e9f9df68.camel@j-davis.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