Add an internal approach to prevent xlog gc to remove file changes

This commit is contained in:
Andrey Antukh 2023-08-03 11:50:39 +02:00
parent 804addfa66
commit 1190cf837b
3 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,9 @@
ALTER TABLE file_change
ADD COLUMN label text NULL;
ALTER TABLE file_change
ALTER COLUMN label SET STORAGE external;
CREATE INDEX file_change__label__idx
ON file_change (file_id, label)
WHERE label is not null;