Re: [Proposal] Global temporary tables - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: [Proposal] Global temporary tables
Date
Msg-id CAFj8pRBiijh6nD0V0hZO5jgXNou5abPRDS5kMbw40fdO_xsSOw@mail.gmail.com
Whole thread Raw
In response to Re: [Proposal] Global temporary tables  (Justin Pryzby <pryzby@telsasoft.com>)
Responses Re: [Proposal] Global temporary tables
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: Adding CI to our tree
Next
From: Andres Freund
Date:
Subject: Re: Adding CI to our tree