On Mon, Feb 13, 2017 at 3:09 AM, Jim Nasby <Jim.Nasby@bluetreble.com> wrote:
> On 2/7/17 9:16 AM, Daniele Varrazzo wrote:
>>
>> Thank you for the clarification: I will assume the behaviour cannot be
>> maintained on PG 10 and think whether the treatment of '{}' is too
>> magical and drop it instead.
>
>
> BTW, I would hope that passing '{}' into a defined array field still works,
> since an empty array isn't treated the same as NULL, which means you need
> some way to create an empty array.
Yes, that didn't change. The issue was only reading data from postgres
to python.
There is a beta of next psycopg version available on testpypi which
implements the new behaviour, if you want to take a look at it. You
can use
pip install -i https://testpypi.python.org/pypi psycopg2==2.7b1
to install it.
-- Daniele