My question might not have a clear answer so please let me know if what I am trying to do is unrealistic.
I have a Python script that runs several independent SQL statements. Due to timeout limits, waiting for the statements to finish execution is not an option. The statements are for maintenance and no output is expected. Is there a way to asynchronously trigger these?
For example, using psycopg2.cursor, I am expecting to do the following:
cursor.execute(sql_statement)
# Run next code block