Programmatic control of redshift COPY operations