Re: Psycopg2 and postgresql 12 - Mailing list psycopg

From Adrian Klaver
Subject Re: Psycopg2 and postgresql 12
Date
Msg-id 4a2959f3-26ff-705a-4102-bbef4d9b6316@aklaver.com
Whole thread Raw
In response to Psycopg2 and postgresql 12  (Dale Arntson <arnt@uchicago.edu>)
List psycopg
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
adrian.klaver@aklaver.com



psycopg by date:

Previous
From: Dale Arntson
Date:
Subject: Psycopg2 and postgresql 12
Next
From: Daniele Varrazzo
Date:
Subject: Re: Psycopg2 and postgresql 12