pgsql: Fix hstore_plpython for Python 3.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix hstore_plpython for Python 3.
Date: 2016-10-04 13:38:50
Message-ID: E1brPvm-0006Zn-7O@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix hstore_plpython for Python 3.

In commit d51924be8, I overlooked the need to provide linkage for
PLyUnicode_FromStringAndSize, because that's only used (and indeed
only exists) in Python 3 builds.

In light of the need to #if this item, rearrange the ordering of
the code related to each function pointer, so as not to need more
#if's than absolutely necessary.

Per buildfarm.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/490ed1ebb9b26fb342a1e3240107092e9c5aec02

Modified Files
--------------
contrib/hstore_plpython/hstore_plpython.c | 34 +++++++++++++++++++------------
1 file changed, 21 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-10-04 15:02:22 pgsql: Extend framework from commit 53be0b1ad to report latch waits.
Previous Message Heikki Linnakangas 2016-10-04 06:49:15 pgsql: Update comment.