forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4bd1994
committed
Make DatumGetFoo/PG_GETARG_FOO/PG_RETURN_FOO macro names more consistent.
By project convention, these names should include "P" when dealing with apointer 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 newertypes such as JSONB and ranges had not followed the convention, and anumber of contrib modules hadn't gotten that memo either. Rename theoffending macros to improve consistency.In passing, fix a few places that thought PG_DETOAST_DATUM() returnsa Datum; it does not, it returns "struct varlena *". ApplyingDatumGetPointer to that happens not to cause any bad effects today,but it's formally wrong. Also, adjust an ltree macro that was designedwithout 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 meDiscussion:https://postgr.es/m/EA5676F4-766F-4F38-8348-ECC7DB427C6A@gmail.com1 parent3e1683d commit4bd1994
File tree
38 files changed
+471
-461
lines changed- contrib
- btree_gist
- cube
- hstore
- hstore_plperl
- hstore_plpython
- ltree
- ltree_plpython
- src
- backend
- tsearch
- utils/adt
- include/utils
38 files changed
+471
-461
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
174 |
| - | |
| 174 | + | |
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 |
| - | |
| 162 | + | |
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
| |||
307 | 307 |
| |
308 | 308 |
| |
309 | 309 |
| |
310 |
| - | |
| 310 | + | |
311 | 311 |
| |
312 | 312 |
| |
313 | 313 |
| |
|
0 commit comments
Comments
(0)