Any way to have the query still continue running even if the original calling client has shut down?
I have an ETL server with 64 cores.
I want to run a COPY
command after I process many files per day.
COPY takes a really long time and that ETL server should only exist if it has more files to process, it's a waste of money to run it waiting on SQL Copy commands.
I could send a ready status to SQS and have it be picked up by a nano server, which can wait on SQL commands to finish all day without worry.
But it would probably better if I could just submit the SQL to the redshift server and have it work on it async.
Commands like psql -c "query..."
will block until query is finished. If the psql process gets interrupted, it will cancel and roll back thq query. Is there a way to send an async query that does not rely on the server being online to complete the query.