In Vertica the Tuple Mover process is responsible for purging old data.
The data that is eligible for purging will listen to the value that the HistoryRetentionTime parameter is set.
The default value of this parameter is set to -1, this values tells Vertica that no deleted data will be saved and once the Tuple Mover executes the deleted data will be purged.
Let's alter the value of this parameter and see how Vertica database reacts.
we will set it to 10 minutes(600 seconds), the value will be set in seconds.
Now let's create a table in insert some data and delete some data as well.
Insert some data into your table
Check the epoch values once more
Delete the data from the table ans check the epochs
Insert some data and check the content of the table
important to know is that all the selects without using historical queries statements will use the current epoch as a guide.
Now we will do a select on the deleted data using the historical query statement.
To disable the purge policy you need to set the value of the parameter back to -1 or use the clear statement.
Using the set_config_parameter:
Using the clear statement: