Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFdzP-0001tz-S7 for pgsql-general@arkaria.postgresql.org; Thu, 03 Feb 2022 15:25:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nFdzN-00069h-N3 for pgsql-general@arkaria.postgresql.org; Thu, 03 Feb 2022 15:25:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFdzN-00069Y-CW for pgsql-general@lists.postgresql.org; Thu, 03 Feb 2022 15:25:37 +0000 Received: from mailgw1.uni-kl.de ([2001:638:208:120::220]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFdzF-0002xm-0u for pgsql-general@lists.postgresql.org; Thu, 03 Feb 2022 15:25:36 +0000 Received: from DESKTOPPC7JTBP ([IPv6:2a02:810b:87c0:19c:bc05:d55d:29bf:c0ca]) (authenticated bits=0) by mailgw1.uni-kl.de (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id 213FPQjL119496 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 3 Feb 2022 16:25:26 +0100 From: To: 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> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01D8191A.A797B0D0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdgZEjGie8W5DeZIRcewXIfY7cGJ9Q== Content-Language: en-us X-Spam-Status: No, hits=1.682, tests=DOS_OUTLOOK_TO_MX=1.449,FSL_HELO_NON_FQDN_1=0.001,HELO_NO_DOMAIN=0.001,HTML_MESSAGE=0.001,KHOP_HELO_FCRDNS=0.24,T_SCC_BODY_TEXT_LINE=-0.01 X-Spam-Score: * (1.682) X-Spam-Flag: NO List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multipart message in MIME format. ------=_NextPart_000_000B_01D8191A.A797B0D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ). 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. ------=_NextPart_000_000B_01D8191A.A797B0D0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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). 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.

 

------=_NextPart_000_000B_01D8191A.A797B0D0--