__gp_aovisimap_compaction_info(oid)
This function displays compaction information for an append-optimized table. The information is for the on-disk data files on Greengage DB segments that store the table data. You can use the information to determine the data files that will be compacted by a VACUUM operation on an append-optimized table.
Until a VACUUM operation deletes the row from the data file, deleted or updated data rows occupy physical space on disk even though they are hidden to new transactions.
The configuration parameter gp_appendonly_compaction controls the functionality of the VACUUM command.
This table describes the __gp_aovisimap_compaction_info() function output table.
| Column | Description |
|---|---|
content |
Greengage DB segment ID |
datafile |
ID of the data file on the segment |
compaction_possible |
The value is either The server configuration parameter |
hidden_tupcount |
In the data file, the number of hidden (deleted or updated) rows |
total_tupcount |
In the data file, the total number of rows |
percent_hidden |
In the data file, the ratio (as a percentage) of hidden (deleted or updated) rows to total rows |