pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hohenstein@cs.uni-kl.de
To: pgsql-general@lists.postgresql.org
Subject: Using the indexing and sampling APIs to realize progressive features
Date: Thu, 3 Feb 2022 16:24:54 +0100
Message-ID: <000a01d81912$45d2d3a0$d1787ae0$@cs.uni-kl.de> (raw)

Hi, 

 

I have some questions regarding the indexing and sampling API.

My aim is to implement a variant of progressive indexing as seen in this
paper (link
<chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/http:/www.vldb.org/pvld
b/vol12/p2366-holanda.pdf> ). To summarize, 

I want to implement a variant of online aggregation, where an aggregate
query (Like Sum, Average, etc.) is answered in real time, where the result
becomes more and more accurate as Tuples are consumed. 

I thought that I could maybe use a custom sampling routine to consume table
samples until I have seen the whole table with no duplicate tuples. 

Meanwhile, with every consumed sample and returned partial answer, I want to
add the tuples consumed to a progressively evolving index.

This would mean that I would have to be able to uniquely identify each row
to be able to add them to the growing index, right? Since OID is deprecated
/ phased out, I am still unsure of how to solve this. 

Does this sound reasonable or is there an obvious flaw in my thinking?

I would also be thankful if there is any material beyond the Postgres
documentation which helps me to start out modifying the source to realize
something like this.

 

Regards

Michael H.

 

view thread (2+ messages)  latest in thread

Message-ID: <000a01d81912$45d2d3a0$d1787ae0$@cs.uni-kl.de>
Permalink:  ../000a01d81912$45d2d3a0$d1787ae0$@cs.uni-kl.de/
Also on:    postgresql.org/message-id/000a01d81912$45d2d3a0$d1787ae0$@cs.uni-kl.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: hohenstein@cs.uni-kl.de
  Subject: Re: Using the indexing and sampling APIs to realize progressive features
  In-Reply-To: <000a01d81912$45d2d3a0$d1787ae0$@cs.uni-kl.de>
  References: <000a01d81912$45d2d3a0$d1787ae0$@cs.uni-kl.de>

* 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