postgresql/contrib/btree_gist
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
..
data Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
expected Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
sql Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
btree_bit.c Use CallerFInfoFunctionCall with btree_gist for varlena types 2017-03-21 10:43:27 -04:00
btree_bytea.c Use CallerFInfoFunctionCall with btree_gist for varlena types 2017-03-21 10:43:27 -04:00
btree_cash.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_date.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_enum.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_float4.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_float8.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_gist--1.0--1.1.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--1.1--1.2.sql Handle contrib's GIN/GIST support function signature changes honestly. 2016-06-09 16:44:25 -04:00
btree_gist--1.2--1.3.sql Add uuid to the set of types supported by contrib/btree_gist. 2016-11-29 14:08:34 -05:00
btree_gist--1.2.sql Handle contrib's GIN/GIST support function signature changes honestly. 2016-06-09 16:44:25 -04:00
btree_gist--1.3--1.4.sql Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
btree_gist--1.4--1.5.sql Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
btree_gist--unpackaged--1.0.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
btree_gist.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
btree_gist.control Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
btree_gist.h Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
btree_inet.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_int2.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_int4.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_int8.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_interval.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_macaddr.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_macaddr8.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_numeric.c Use CallerFInfoFunctionCall with btree_gist for varlena types 2017-03-21 10:43:27 -04:00
btree_oid.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_text.c Make DatumGetFoo/PG_GETARG_FOO/PG_RETURN_FOO macro names more consistent. 2017-09-18 15:21:23 -04:00
btree_time.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_ts.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
btree_utils_num.c Reduce excessive dereferencing of function pointers 2017-09-07 13:56:09 -04:00
btree_utils_num.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
btree_utils_var.c Make DatumGetFoo/PG_GETARG_FOO/PG_RETURN_FOO macro names more consistent. 2017-09-18 15:21:23 -04:00
btree_utils_var.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
btree_uuid.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00