public inbox for [email protected]
help / color / mirror / Atom feedFrom: Pavel Stehule <[email protected]>
To: Justin Pryzby <[email protected]>
Cc: [email protected]
Cc: Andrew Bille <[email protected]>
Cc: Tony Zhu <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Subject: Re: [Proposal] Global temporary tables
Date: Sun, 27 Feb 2022 04:17:52 +0100
Message-ID: <CAFj8pRBiijh6nD0V0hZO5jgXNou5abPRDS5kMbw40fdO_xsSOw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CA+B_3V=PB=D6bOrbyfFk8PTErEjFaxzF4Xso-3i7T=jAY1=_Kw@mail.gmail.com>
<CAJnzarwAA9MfBto_pwU8ZJ-oRj7RkTuo40OxqfM5Jh-0kk=ioQ@mail.gmail.com>
<CA+B_3Vmc6pCe_-_SfECBX9dmAuXgXiPeFzshQcRQd=6LpYMNNA@mail.gmail.com>
<CA+B_3VkuxN5SUzJxVCq+q8BGatPxeLQ2=92Fs+rZq97KOpdRxg@mail.gmail.com>
<CA+B_3V=PzKs4m1FK1tXSCTYMVWgQZ0HUxG7f7FwzKBWwn_5ZXQ@mail.gmail.com>
<CAJnzarwPoS4EELAdQMUiOkCJmdWgPe32aZk+h0-yn2uO3WkRcQ@mail.gmail.com>
<CA+B_3V=Zs1MbOyFeiZN-ZLsOqBnvdK-2jRdsswO0nX-OVvmpfA@mail.gmail.com>
<[email protected]>
<CAJnzarwo63ip4mTr4seoJPEfUdnPWQ=+fHpNd9Eqr837QuH7EQ@mail.gmail.com>
<CA+B_3V=Knx21MFYMNzEg9JTUd4PBPgkVHWaY9JpQ4VMQkyCdzA@mail.gmail.com>
<[email protected]>
Hi
You redirect stats from pg_class and pg_statistics to a local hash table.
> This is pretty hairy :(
> I guess you'd also need to handle pg_statistic_ext and ext_data.
> pg_stats doesn't work, since the data isn't in pg_statistic - it'd need to
> look
> at pg_get_gtt_statistics.
>
Without this, the GTT will be terribly slow like current temporary tables
with a lot of problems with bloating of pg_class, pg_attribute and
pg_depend tables.
Regards
Pavel
view thread (3+ messages)
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: [Proposal] Global temporary tables
In-Reply-To: <CAFj8pRBiijh6nD0V0hZO5jgXNou5abPRDS5kMbw40fdO_xsSOw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox