Thread: Getting the query id

Getting the query id

From
Daniel Son
Date:
Hi,

I am using psycopg2 to connect to our Redshift clusters.

Is there a way to get the Redshift query id from the cursor?

I wish to use the query_id to pull and record query data from the Redshift systems tables.

Thanks,
Daniel