Commit 659e534
committed
Fix union for pgstat message types
The message type for temp files and for checksum failures were missing
from the union. Due to the coding style used there was no compiler error
when this happend. So change the code to actively use the union thereby
producing a compiler error if the same mistake happens again, suggested
by Tom Lane.
Author: Julien Rouhaud
Reported-By: Tomas Vondra
Discussion: https://postgr.es/m/20190430163328.zd4rrlnbvgaqlcdz@development1 parent 809c9b4 commit 659e534
2 files changed
+25
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4477 | 4477 | | |
4478 | 4478 | | |
4479 | 4479 | | |
4480 | | - | |
| 4480 | + | |
4481 | 4481 | | |
4482 | 4482 | | |
4483 | 4483 | | |
4484 | | - | |
| 4484 | + | |
4485 | 4485 | | |
4486 | 4486 | | |
4487 | 4487 | | |
4488 | | - | |
| 4488 | + | |
4489 | 4489 | | |
4490 | 4490 | | |
4491 | 4491 | | |
4492 | | - | |
| 4492 | + | |
4493 | 4493 | | |
4494 | 4494 | | |
4495 | 4495 | | |
4496 | | - | |
4497 | | - | |
| 4496 | + | |
4498 | 4497 | | |
4499 | 4498 | | |
4500 | 4499 | | |
4501 | 4500 | | |
4502 | | - | |
| 4501 | + | |
4503 | 4502 | | |
4504 | 4503 | | |
4505 | 4504 | | |
4506 | 4505 | | |
4507 | 4506 | | |
4508 | | - | |
| 4507 | + | |
4509 | 4508 | | |
4510 | 4509 | | |
4511 | 4510 | | |
4512 | 4511 | | |
4513 | | - | |
| 4512 | + | |
4514 | 4513 | | |
4515 | 4514 | | |
4516 | 4515 | | |
4517 | | - | |
| 4516 | + | |
4518 | 4517 | | |
4519 | 4518 | | |
4520 | 4519 | | |
4521 | | - | |
| 4520 | + | |
4522 | 4521 | | |
4523 | 4522 | | |
4524 | 4523 | | |
4525 | | - | |
| 4524 | + | |
4526 | 4525 | | |
4527 | 4526 | | |
4528 | 4527 | | |
4529 | | - | |
| 4528 | + | |
4530 | 4529 | | |
4531 | 4530 | | |
4532 | 4531 | | |
4533 | | - | |
| 4532 | + | |
4534 | 4533 | | |
4535 | 4534 | | |
4536 | 4535 | | |
4537 | | - | |
| 4536 | + | |
4538 | 4537 | | |
4539 | 4538 | | |
4540 | 4539 | | |
4541 | | - | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
4542 | 4543 | | |
4543 | 4544 | | |
4544 | 4545 | | |
4545 | | - | |
| 4546 | + | |
4546 | 4547 | | |
4547 | 4548 | | |
4548 | 4549 | | |
4549 | | - | |
| 4550 | + | |
4550 | 4551 | | |
4551 | 4552 | | |
4552 | 4553 | | |
4553 | | - | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
4554 | 4557 | | |
4555 | 4558 | | |
4556 | 4559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| 572 | + | |
| 573 | + | |
572 | 574 | | |
573 | 575 | | |
574 | 576 | | |
| |||
0 commit comments