-- we add the concept of segments to api.records -- implemented as a multidimensional text array, s3_segments. -- the first value is the s3 id, the second value is the s3 key -- [id, key] ALTER TABLE IF EXISTS api.records ADD COLUMN s3_segments text[][];