Getting the query id

From: Daniel Son <daniel(dot)son(at)knewton(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Getting the query id
Date: 2015-10-06 22:12:41
Message-ID: CAFhKaXD-c5wYK3JiLTZFTeuzuma5+ktgtaYgftjQisuDA5gNOA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

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

Browse psycopg by date

  From Date Subject
Next Message Dan Sawyer 2015-10-28 14:23:28 psycopg2 open file for reading
Previous Message Craig Ringer 2015-10-05 05:13:15 Re: Streaming replication for psycopg2