forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita681e3c
committed
Support the old signature of BRIN consistent function
Commita1c649d changed the signature of the BRIN consistent functionby adding a new required parameter. Treating the parameter as optional,which would make the change backwards incompatibile, was rejected withthe justification that there are few out-of-core extensions, so it's notworth adding making the code more complex, and it's better to deal withthat in the extension.But after further thought, that would be rather problematic, becausepg_upgrade simply dumps catalog contents and the same version of anextension needs to work on both PostgreSQL versions. Supporting bothvariants of the consistent function (with 3 or 4 arguments) makes thatpossible.The signature is not the only thing that changed, as commit72ccf55moved handling of IS [NOT] NULL keys from the support procedures. Butthis change is backward compatible - handling the keys in exension isunnecessary, but harmless. The consistent function will do a bit ofunnecessary work, but it should be very cheap.This also undoes most of the changes to the existing opclasses (minmaxand inclusion), making them use the old signature again. This shouldmake backpatching simpler.Catversion bump, because of changes in pg_amproc.Author: Tomas Vondra <tomas.vondra@postgresql.org>Author: Nikita Glukhov <n.gluhov@postgrespro.ru>Reviewed-by: Mark Dilger <hornschnorter@gmail.com>Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>Reviewed-by: Masahiko Sawada <masahiko.sawada@enterprisedb.com>Reviewed-by: John Naylor <john.naylor@enterprisedb.com>Discussion:https://postgr.es/m/c1138ead-7668-f0e1-0638-c3be3237e812@2ndquadrant.com1 parenta68dfa2 commita681e3c
File tree
7 files changed
+121
-146
lines changed- doc/src/sgml
- src
- backend/access/brin
- include/catalog
7 files changed
+121
-146
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
476 | 476 |
| |
477 | 477 |
| |
478 | 478 |
| |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
479 | 492 |
| |
480 | 493 |
| |
481 | 494 |
| |
|
Lines changed: 46 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
634 | 634 |
| |
635 | 635 |
| |
636 | 636 |
| |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
637 | 643 |
| |
638 | 644 |
| |
639 | 645 |
| |
640 | 646 |
| |
641 | 647 |
| |
642 |
| - | |
643 |
| - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
644 | 653 |
| |
645 |
| - | |
646 |
| - | |
647 |
| - | |
648 |
| - | |
649 |
| - | |
650 |
| - | |
651 |
| - | |
652 |
| - | |
653 |
| - | |
654 |
| - | |
655 |
| - | |
656 |
| - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
657 | 689 |
| |
658 | 690 |
| |
659 | 691 |
| |
|
Lines changed: 40 additions & 76 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
89 |
| - | |
90 | 88 |
| |
91 | 89 |
| |
92 | 90 |
| |
| |||
243 | 241 |
| |
244 | 242 |
| |
245 | 243 |
| |
246 |
| - | |
247 |
| - | |
248 |
| - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
249 | 247 |
| |
250 | 248 |
| |
251 | 249 |
| |
| |||
254 | 252 |
| |
255 | 253 |
| |
256 | 254 |
| |
257 |
| - | |
258 |
| - | |
259 |
| - | |
260 |
| - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
261 | 263 |
| |
262 |
| - | |
263 |
| - | |
| 264 | + | |
| 265 | + | |
264 | 266 |
| |
265 |
| - | |
266 |
| - | |
267 |
| - | |
268 |
| - | |
269 |
| - | |
270 |
| - | |
| 267 | + | |
| 268 | + | |
271 | 269 |
| |
272 | 270 |
| |
273 | 271 |
| |
274 | 272 |
| |
275 | 273 |
| |
276 |
| - | |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 |
| - | |
286 |
| - | |
287 |
| - | |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
292 |
| - | |
293 |
| - | |
294 |
| - | |
295 |
| - | |
296 |
| - | |
297 |
| - | |
298 |
| - | |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 |
| - | |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
307 |
| - | |
308 |
| - | |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 |
| - | |
313 |
| - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
314 | 278 |
| |
315 | 279 |
| |
316 | 280 |
| |
| |||
330 | 294 |
| |
331 | 295 |
| |
332 | 296 |
| |
333 |
| - | |
| 297 | + | |
334 | 298 |
| |
335 | 299 |
| |
336 | 300 |
| |
337 | 301 |
| |
338 | 302 |
| |
339 |
| - | |
| 303 | + | |
340 | 304 |
| |
341 | 305 |
| |
342 | 306 |
| |
343 | 307 |
| |
344 | 308 |
| |
345 |
| - | |
| 309 | + | |
346 | 310 |
| |
347 | 311 |
| |
348 | 312 |
| |
349 | 313 |
| |
350 | 314 |
| |
351 |
| - | |
| 315 | + | |
352 | 316 |
| |
353 | 317 |
| |
354 | 318 |
| |
355 | 319 |
| |
356 | 320 |
| |
357 |
| - | |
| 321 | + | |
358 | 322 |
| |
359 | 323 |
| |
360 | 324 |
| |
361 | 325 |
| |
362 | 326 |
| |
363 |
| - | |
| 327 | + | |
364 | 328 |
| |
365 | 329 |
| |
366 | 330 |
| |
367 | 331 |
| |
368 | 332 |
| |
369 |
| - | |
| 333 | + | |
370 | 334 |
| |
371 | 335 |
| |
372 | 336 |
| |
373 | 337 |
| |
374 | 338 |
| |
375 |
| - | |
| 339 | + | |
376 | 340 |
| |
377 | 341 |
| |
378 | 342 |
| |
| |||
390 | 354 |
| |
391 | 355 |
| |
392 | 356 |
| |
393 |
| - | |
| 357 | + | |
394 | 358 |
| |
395 | 359 |
| |
396 | 360 |
| |
| |||
410 | 374 |
| |
411 | 375 |
| |
412 | 376 |
| |
413 |
| - | |
| 377 | + | |
414 | 378 |
| |
415 |
| - | |
| 379 | + | |
416 | 380 |
| |
417 | 381 |
| |
418 | 382 |
| |
| |||
429 | 393 |
| |
430 | 394 |
| |
431 | 395 |
| |
432 |
| - | |
| 396 | + | |
433 | 397 |
| |
434 | 398 |
| |
435 | 399 |
| |
436 | 400 |
| |
437 |
| - | |
| 401 | + | |
438 | 402 |
| |
439 | 403 |
| |
440 | 404 |
| |
| |||
464 | 428 |
| |
465 | 429 |
| |
466 | 430 |
| |
467 |
| - | |
| 431 | + | |
468 | 432 |
| |
469 |
| - | |
| 433 | + | |
470 | 434 |
| |
471 | 435 |
| |
472 | 436 |
| |
473 | 437 |
| |
474 | 438 |
| |
475 | 439 |
| |
476 | 440 |
| |
477 |
| - | |
| 441 | + | |
478 | 442 |
| |
479 |
| - | |
| 443 | + | |
480 | 444 |
| |
481 | 445 |
| |
482 | 446 |
| |
483 | 447 |
| |
484 | 448 |
| |
485 | 449 |
| |
486 |
| - | |
| 450 | + | |
487 | 451 |
| |
488 |
| - | |
| 452 | + | |
489 | 453 |
| |
490 | 454 |
| |
491 | 455 |
| |
492 | 456 |
| |
493 | 457 |
| |
494 | 458 |
| |
495 |
| - | |
| 459 | + | |
496 | 460 |
| |
497 | 461 |
| |
498 | 462 |
| |
499 | 463 |
| |
500 |
| - | |
| 464 | + | |
501 | 465 |
| |
502 | 466 |
| |
503 | 467 |
| |
|
0 commit comments
Comments
(0)