Re: Psycopg2 and postgresql 12

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Dale Arntson <arnt(at)uchicago(dot)edu>, "psycopg(at)lists(dot)postgresql(dot)org" <psycopg(at)lists(dot)postgresql(dot)org>
Subject: Re: Psycopg2 and postgresql 12
Date: 2019-10-01 20:02:15
Message-ID: 4a2959f3-26ff-705a-4102-bbef4d9b6316@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)aklaver(dot)com

In response to

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2019-10-02 10:05:11 Re: Psycopg2 and postgresql 12
Previous Message Dale Arntson 2019-10-01 19:10:09 Psycopg2 and postgresql 12