Re: Performance issue on temporary relations

From: 章晨曦 <zhangchenxi(at)halodbtech(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Performance issue on temporary relations
Date: 2025-08-19 15:45:03
Message-ID: tencent_09C7F95D15C3704D34085BC7@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> I do not think this is something we ought to consider. It might help
> certain corner use-cases, but it's probably a net loss for most.
> In particular, I don't think that creating thousands of temp tables in
> a session but then touching only a few of them in any one transaction
> is a very plausible usage pattern.

Acturely, we just facing such problem in some real systems. More than 3,700
temporary tables created! I accept such case is not that common, but it does exist.

Regards,
Jet

Halo Tech (www.halodbtech.com)
openHalo (www.openhalo.org)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Filip Janus 2025-08-19 15:48:31 Re: Proposal: Adding compression of temporary files
Previous Message Nathan Bossart 2025-08-19 15:44:23 Re: fix misspelling of "tranche" in dsa.h