public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Dale Arntson <[email protected]>
To: [email protected] <[email protected]>
Subject: Re: Psycopg2 and postgresql 12
Date: Tue, 1 Oct 2019 13:02:15 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On 10/1/19 12:10 PM, Dale Arntson wrote:
> Hi all,
>
> Can anyone give me an update on the plans for psycopg2 support for
> postgresql 12?
Not sure what you are looking for specifically, but:
In [11]: psycopg2.__version__
Out[11]: '2.8.3 (dt dec pq3 ext lo64)'
In [13]: con = psycopg2.connect("dbname=postgres user=postgres
host=localhost port=5435")
In [12]: con.server_version
Out[12]: 120000
In [14]: cur = con.cursor()
In [15]: cur.execute("select * from pg_class")
In [16]: rs = cur.fetchall()
In [17]: len(rs)
Out[17]: 395
>
> Thanks,
>
> -dale
>
--
Adrian Klaver
[email protected]
view thread (3+ messages) latest in thread
reply
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Psycopg2 and postgresql 12
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox