Re: Joins on TID - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Joins on TID
Date
Msg-id CANP8+jK2NZz9JvjcnhfyfM6bXw=+rxwLipZmPgaQUEWZJWRUug@mail.gmail.com
Whole thread Raw
In response to Re: Joins on TID  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Joins on TID
List pgsql-hackers
On Sat, 22 Dec 2018 at 04:31, Tom Lane <tgl@sss.pgh.pa.us> wrote:
BTW, if we're to start taking joins on TID seriously, we should also
add the missing hash opclass for TID, so that you can do hash joins
when dealing with a lot of rows.

(In principle this also enables things like hash aggregation, though
I'm not very clear on a use-case for grouping by TID.)

I don't think we are trying to do TID joins more seriously, just fix a special case.

The case cited requires the batches of work to be small, so nested loops works fine.

Looks to me that Edmund is trying to solve the same problem. If so, this is the best solution.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Joins on TID
Next
From: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Date:
Subject: Re: [PATCH] Improve tab completion for CREATE TABLE