postgresql/contrib/hstore_plpython
Tom Lane 4bd1994650 Make DatumGetFoo/PG_GETARG_FOO/PG_RETURN_FOO macro names more consistent.
By project convention, these names should include "P" when dealing with a
pointer type; that is, if the result of a GETARG macro is of type FOO *,
it should be called PG_GETARG_FOO_P not just PG_GETARG_FOO.  Some newer
types such as JSONB and ranges had not followed the convention, and a
number of contrib modules hadn't gotten that memo either.  Rename the
offending macros to improve consistency.

In passing, fix a few places that thought PG_DETOAST_DATUM() returns
a Datum; it does not, it returns "struct varlena *".  Applying
DatumGetPointer to that happens not to cause any bad effects today,
but it's formally wrong.  Also, adjust an ltree macro that was designed
without any thought for what pgindent would do with it.

This is all cosmetic and shouldn't have any impact on generated code.

Mark Dilger, some further tweaks by me

Discussion: https://postgr.es/m/EA5676F4-766F-4F38-8348-ECC7DB427C6A@gmail.com
2017-09-18 15:21:23 -04:00
..
expected Drop support for Python 2.3 2017-02-21 09:49:22 -05:00
sql Drop support for Python 2.3 2017-02-21 09:49:22 -05:00
.gitignore Add transforms feature 2015-04-26 10:33:14 -04:00
Makefile Code review for avoidance of direct cross-module links. 2017-02-02 11:21:16 -05:00
hstore_plpython.c Make DatumGetFoo/PG_GETARG_FOO/PG_RETURN_FOO macro names more consistent. 2017-09-18 15:21:23 -04:00
hstore_plpython2u--1.0.sql Convert contrib/hstore_plpython to not use direct linking to other modules. 2016-10-03 22:27:11 -04:00
hstore_plpython2u.control Add transforms feature 2015-04-26 10:33:14 -04:00
hstore_plpython3u--1.0.sql Convert contrib/hstore_plpython to not use direct linking to other modules. 2016-10-03 22:27:11 -04:00
hstore_plpython3u.control Add transforms feature 2015-04-26 10:33:14 -04:00
hstore_plpythonu--1.0.sql Convert contrib/hstore_plpython to not use direct linking to other modules. 2016-10-03 22:27:11 -04:00
hstore_plpythonu.control Add transforms feature 2015-04-26 10:33:14 -04:00