I wanna create bulk. I have script:
drop index idx_1;
drop index idx_2;
drop index idx_3;
COPY games FROM '/usr/share/nginx/html/var/dumps/games#1000000.sql' DELIMITER ',';
So, I wanna drop indexes, make insertions and then rollback my indexes. (I think it is simpliest than recreating it back by "manually".)
I tried it with savepoints but failed: it doing rollback before or with inserts although I need rollback after inserts for indexes only.
How can I solve this problem? Thx