From: | Catalin Iacob <iacobcatalin(at)gmail(dot)com> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Craig Ringer <craig(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal: PL/Pythonu - function ereport |
Date: | 2016-02-29 16:42:19 |
Message-ID: | CAHg_5gra9pB4+P-Wj+HpB5Q_UTN5OBT2AbawrFmnVFdvikbVYw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2/26/16, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> Sending updated version
I did some changes on top of your last version as that was easier than
commenting about them, see attached.
0001 and 0005 are comment changes.
0002 is really needed, without it the tests fail on Python2.4.
0004 removes more code related to the unused position.
0003 is the most controversial. It removes the ability to pass message
as keyword argument. My reasoning was that keyword arguments are
usually optional and configure extra aspects of the function call
while message is required and fundamental so therefore it should be
positional. If you allow it as keyword as well, you have to deal with
the ambiguity of writing plpy.info('a message', message='a keyword arg
message, does this overwrite the first one or what?').
For the code with my patches on top on I ran the PL/Python tests for
2.4, 2.5, 2.6, 2.7 and 3.5. Everything passed.
Can you have a look at the patches, fold the ones you agree with on
top of yours and send the final version? With that I think this will
be Ready for Committer.
Attachment | Content-Type | Size |
---|---|---|
0001-Comment-improvements.patch | binary/octet-stream | 3.3 KB |
0002-Fix-tests-for-Python-2.4.patch | binary/octet-stream | 2.7 KB |
0003-Pass-message-only-as-positional-argument.patch | binary/octet-stream | 5.5 KB |
0004-Get-rid-of-setting-unused-position.patch | binary/octet-stream | 1.6 KB |
0005-Improve-comments.patch | binary/octet-stream | 1.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2016-02-29 16:53:15 | Re: proposal: PL/Pythonu - function ereport |
Previous Message | Tom Lane | 2016-02-29 15:57:45 | Re: Convert pltcl from strings to objects |