forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4d66285
committed
Fix pg_mcv_list_items() to produce text[]
The function pg_mcv_list_items() returns values stored in MCV items. Theitems may contain columns with different data types, so the function wasgenerating text array-like representation, but in an ad-hoc way withoutproperly escaping various characters etc.Fixed by simply building a text[] array, which also makes it easier touse from queries etc.Requires changes to pg_proc entry, so bump catversion.Backpatch to 12, where multi-column MCV lists were introduced.Author: Tomas VondraReviewed-by: Dean RasheedDiscussion:https://postgr.es/m/20190618205920.qtlzcu73whfpfqne@development1 parente365a58 commit4d66285
File tree
4 files changed
+51
-87
lines changed- src
- backend/statistics
- include/catalog
- test/regress/expected
4 files changed
+51
-87
lines changedLines changed: 46 additions & 82 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1248 | 1248 |
| |
1249 | 1249 |
| |
1250 | 1250 |
| |
1251 |
| - | |
1252 |
| - | |
1253 |
| - | |
1254 | 1251 |
| |
1255 | 1252 |
| |
1256 | 1253 |
| |
| |||
1280 | 1277 |
| |
1281 | 1278 |
| |
1282 | 1279 |
| |
| 1280 | + | |
1283 | 1281 |
| |
1284 | 1282 |
| |
1285 | 1283 |
| |
1286 | 1284 |
| |
1287 | 1285 |
| |
1288 |
| - | |
1289 |
| - | |
| 1286 | + | |
1290 | 1287 |
| |
1291 | 1288 |
| |
1292 | 1289 |
| |
1293 | 1290 |
| |
1294 | 1291 |
| |
1295 | 1292 |
| |
1296 | 1293 |
| |
1297 |
| - | |
1298 |
| - | |
1299 |
| - | |
1300 |
| - | |
1301 |
| - | |
| 1294 | + | |
1302 | 1295 |
| |
1303 |
| - | |
| 1296 | + | |
| 1297 | + | |
1304 | 1298 |
| |
1305 | 1299 |
| |
1306 |
| - | |
1307 |
| - | |
1308 |
| - | |
| 1300 | + | |
| 1301 | + | |
1309 | 1302 |
| |
1310 | 1303 |
| |
1311 |
| - | |
1312 |
| - | |
1313 |
| - | |
1314 |
| - | |
1315 | 1304 |
| |
1316 | 1305 |
| |
1317 | 1306 |
| |
1318 | 1307 |
| |
1319 | 1308 |
| |
1320 |
| - | |
1321 |
| - | |
1322 |
| - | |
1323 |
| - | |
1324 |
| - | |
1325 |
| - | |
1326 |
| - | |
1327 |
| - | |
1328 |
| - | |
1329 |
| - | |
1330 |
| - | |
1331 |
| - | |
1332 |
| - | |
1333 |
| - | |
| 1309 | + | |
1334 | 1310 |
| |
1335 |
| - | |
1336 |
| - | |
| 1311 | + | |
1337 | 1312 |
| |
1338 | 1313 |
| |
1339 | 1314 |
| |
1340 |
| - | |
1341 |
| - | |
1342 |
| - | |
1343 |
| - | |
1344 |
| - | |
1345 |
| - | |
1346 | 1315 |
| |
1347 |
| - | |
1348 |
| - | |
1349 |
| - | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1350 | 1321 |
| |
1351 |
| - | |
1352 |
| - | |
1353 |
| - | |
1354 |
| - | |
1355 |
| - | |
1356 |
| - | |
1357 |
| - | |
1358 |
| - | |
1359 |
| - | |
| 1322 | + | |
1360 | 1323 |
| |
1361 |
| - | |
1362 |
| - | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1363 | 1342 |
| |
1364 |
| - | |
1365 |
| - | |
1366 |
| - | |
1367 | 1343 |
| |
1368 |
| - | |
1369 |
| - | |
1370 |
| - | |
1371 |
| - | |
1372 |
| - | |
1373 |
| - | |
1374 |
| - | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
1375 | 1349 |
| |
1376 | 1350 |
| |
1377 |
| - | |
1378 |
| - | |
1379 |
| - | |
1380 |
| - | |
1381 |
| - | |
1382 |
| - | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
1383 | 1356 |
| |
1384 |
| - | |
1385 |
| - | |
| 1357 | + | |
| 1358 | + | |
1386 | 1359 |
| |
1387 | 1360 |
| |
1388 |
| - | |
| 1361 | + | |
1389 | 1362 |
| |
1390 | 1363 |
| |
1391 | 1364 |
| |
1392 | 1365 |
| |
1393 |
| - | |
1394 |
| - | |
1395 |
| - | |
1396 |
| - | |
1397 |
| - | |
1398 |
| - | |
1399 |
| - | |
1400 |
| - | |
1401 |
| - | |
1402 | 1366 |
| |
1403 | 1367 |
| |
1404 | 1368 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5019 | 5019 |
| |
5020 | 5020 |
| |
5021 | 5021 |
| |
5022 |
| - | |
| 5022 | + | |
5023 | 5023 |
| |
5024 | 5024 |
| |
5025 | 5025 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
614 | 614 |
| |
615 | 615 |
| |
616 | 616 |
| |
617 |
| - | |
618 |
| - | |
619 |
| - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
620 | 620 |
| |
621 | 621 |
| |
622 | 622 |
| |
|
0 commit comments
Comments
(0)