forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7a622b2
committed
Rename pgbench min/max to least/greatest, and fix handling of double args.
These functions behave like the backend's least/greatest functions,not like min/max, so the originally-chosen names invite confusion.Per discussion, rename to least/greatest.I also took it upon myself to make them return double if any input isdouble. The previous behavior of silently coercing all inputs to intsurely does not meet the principle of least astonishment.Copy-edit some of the other new functions' documentation, too.1 parentc311f78 commit7a622b2
File tree
4 files changed
+67
-34
lines changed- doc/src/sgml/ref
- src/bin/pgbench
4 files changed
+67
-34
lines changedLines changed: 13 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
935 | 935 |
| |
936 | 936 |
| |
937 | 937 |
| |
938 |
| - | |
| 938 | + | |
939 | 939 |
| |
940 | 940 |
| |
941 | 941 |
| |
942 | 942 |
| |
943 | 943 |
| |
944 | 944 |
| |
945 |
| - | |
| 945 | + | |
| 946 | + | |
946 | 947 |
| |
947 | 948 |
| |
948 | 949 |
| |
| |||
961 | 962 |
| |
962 | 963 |
| |
963 | 964 |
| |
964 |
| - | |
965 |
| - | |
966 |
| - | |
967 |
| - | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
968 | 969 |
| |
969 | 970 |
| |
970 | 971 |
| |
971 |
| - | |
972 |
| - | |
973 |
| - | |
974 |
| - | |
975 |
| - | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
976 | 977 |
| |
977 | 978 |
| |
978 | 979 |
| |
979 | 980 |
| |
980 |
| - | |
| 981 | + | |
981 | 982 |
| |
982 | 983 |
| |
983 | 984 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
| 134 | + | |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| |||
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
165 |
| - | |
| 165 | + | |
166 | 166 |
| |
167 | 167 |
| |
168 |
| - | |
| 168 | + | |
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
| |||
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
277 |
| - | |
| 277 | + | |
278 | 278 |
| |
279 | 279 |
| |
280 | 280 |
| |
|
Lines changed: 48 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1298 | 1298 |
| |
1299 | 1299 |
| |
1300 | 1300 |
| |
1301 |
| - | |
1302 |
| - | |
1303 |
| - | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1304 | 1304 |
| |
1305 |
| - | |
| 1305 | + | |
1306 | 1306 |
| |
1307 |
| - | |
1308 | 1307 |
| |
1309 |
| - | |
1310 |
| - | |
| 1308 | + | |
1311 | 1309 |
| |
1312 |
| - | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
1313 | 1313 |
| |
1314 |
| - | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
1315 | 1323 |
| |
1316 |
| - | |
| 1324 | + | |
1317 | 1325 |
| |
1318 |
| - | |
1319 |
| - | |
1320 |
| - | |
1321 |
| - | |
1322 |
| - | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
1323 | 1338 |
| |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1324 | 1342 |
| |
1325 |
| - | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1326 | 1358 |
| |
1327 | 1359 |
| |
1328 | 1360 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
70 |
| - | |
71 |
| - | |
| 70 | + | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
|
0 commit comments
Comments
(0)