From: Tim Clarke <tim.clarke@minerva.info>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: PG query
Date: Mon, 14 Mar 2022 12:57:05 +0000
Message-ID: <92c088a9-c41e-384d-20f0-dedfffba6839@minerva.info> (raw)
In-Reply-To: <CALXkTpwxY8y_MRN7PCma_+oPZ=yZcKBAcUKX2r_Po=6W6XDitQ@mail.gmail.com>
References: <CALXkTpwxY8y_MRN7PCma_+oPZ=yZcKBAcUKX2r_Po=6W6XDitQ@mail.gmail.com>
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<https://www.brighttalk.com/channel/18792/?utm_source=brighttalk-sharing&utm_medium=web&utm_c...;
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<mailto: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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tim.clarke@minerva.info, pgsql-admin@lists.postgresql.org
Subject: Re: PG query
In-Reply-To: <92c088a9-c41e-384d-20f0-dedfffba6839@minerva.info>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox