Drop any statistics of table after it's truncated - Mailing list pgsql-hackers

From Sawada Masahiko
Subject Drop any statistics of table after it's truncated
Date
Msg-id CAD21AoBhE7pX2cxUNNAHZv3RO5LmoW6UqeW3pbQLwOr+-RCM1A@mail.gmail.com
Whole thread Raw
Responses Re: Drop any statistics of table after it's truncated
List pgsql-hackers
Hi all,

I found that the statistics are still remained after it's truncated.
In addition, the analyzing ignores table does not have any tuple.
After table truncated, the entry of statistics continues to remain
unless insertion and analyzing are executed.
There is reason why statistics are remained?

Attached patch is one line patch adds RemoveStatistics() into
ExecuteTruncate(), to remove statistics entry of table.

--
Regards,

-------
Sawada Masahiko

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: WIP: dynahash replacement for buffer table
Next
From: Merlin Moncure
Date:
Subject: Re: Wait free LW_SHARED acquisition - v0.9