Re: PG_GETARG_GISTENTRY?
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-04-05T16:06:43Z
Lists: pgsql-hackers
On Wed, Mar 29, 2017 at 11:54 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Andres Freund <andres@anarazel.de> writes: >> we have a good number of '(GISTENTRY *) PG_GETARG_POINTER(n)' in our >> code - looks a bit better & shorter to have PG_GETARG_GISTENTRY(n). > > Should be PG_GETARG_GISTENTRY_P to match existing conventions, > otherwise +1 I have never quite understood why some of those macros have _P or _PP on the end and others don't. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Make DatumGetFoo/PG_GETARG_FOO/PG_RETURN_FOO macro names more consistent.
- 4bd1994650fd 11.0 landed
-
Use wrappers of PG_DETOAST_DATUM_PACKED() more.
- 3a0d473192b2 10.0 cited
-
Recommend wrappers of PG_DETOAST_DATUM_PACKED().
- 9d7726c2ba06 10.0 cited