Skip to content

Commit af66da0

Browse files
committed
Merge branch 'comment-data-transform' into 'master'
Comment about data transformations See merge request postgres-ai/database-lab!66
2 parents 6adc6a8 + c825868 commit af66da0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/create_zfs_snapshot.sh

+10
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@ if $failed; then
170170
exit 1
171171
fi
172172

173+
################################################################################
174+
# We're about to finalize everything and create a snapshot that will be used
175+
# for thin cloning.
176+
#
177+
# If needed, put any data transformations here (e.g., remove personal data).
178+
# For better speed, do it in several parallel jobs (depending on resources).
179+
# All thin clones will have transformed state.
180+
# TODO: friendly interface to inject transformations.
181+
################################################################################
182+
173183
# Finally, stop Postgres and create the base snapshot ready to be used for thin provisioning
174184
${sudo_cmd} ${pg_bin_dir}/pg_ctl -D ${clone_pgdata_dir} -w stop
175185
# todo: check that it's stopped, similiraly as above

0 commit comments

Comments
 (0)