Re: PG query - Mailing list pgsql-admin

From Tim Clarke
Subject Re: PG query
Date
Msg-id 92c088a9-c41e-384d-20f0-dedfffba6839@minerva.info
Whole thread Raw
In response to PG query  (Nikhil Ingale <niks.bgm@gmail.com>)
List pgsql-admin
On 14/03/2022 12:41, Nikhil Ingale wrote:
Hi
I'm trying to retrieve the data from different tables and store it in variables to display in tabular format in python. Can someone help here?

Regards,
Nikhil Ingale


The psycopg3 https://www.psycopg.org/psycopg3/ project will probably be what you need, you can get data from postgres into python using that in just a few lines.

Tim Clarke BSc (Hons), MBCS
IT Director
Direct: +44 (0)1376 504510 | Mobile: +44 (0)7887 563420

 

Telephone: Witham: +44(0)1376 503500 | London: +44 (0)20 3009 0853 | Frankfurt: +49 (0)69 7191 6000 | Hong Kong: +852 5803 1687 | Toronto: +1 647 503 2848
Web: https://www.manifest.co.uk/

Watch our latest Minerva Briefings on BrightTALK

 

Minerva Analytics Ltd - A Solactive Company
9 Freebournes Court | Newland Street | Witham | Essex | CM8 2BL | United Kingdom


Copyright: This e-mail may contain confidential or legally privileged information. If you are not the named addressee you must not use or disclose such information, instead please report it to admin@minerva.info
Legal: Minerva Analytics is the trading name of: Minerva Analytics Ltd: Registered in England Number 11260966 & The Manifest Voting Agency Ltd: Registered in England Number 2920820 Registered Office at above address. Please Click Here https://www.manifest.co.uk/legal/ for further information.

pgsql-admin by date:

Previous
From: Nikhil Ingale
Date:
Subject: PG query
Next
From: Graham Myers
Date:
Subject: RE: DB grow overtime with autovacuum (postgres 9.6.9)