- Notifications
You must be signed in to change notification settings - Fork28
Commit1a31baf
committed
Fix objectaddress.c code for publication relations.
getObjectDescription and getObjectIdentity failed to schema-qualifythe name of the published table, which is bad in getObjectDescription andunforgivable in getObjectIdentity. Actually, getObjectIdentity failed toemit the table's name at all unless "objname" output is requested, whichaccidentally works for some (all?) extant callers but is clearly not theintended API. Somebody had also not gotten the memo that the output ofgetObjectIdentity is not to be translated.To fix getObjectDescription, I made it call getRelationDescription, whichrequired refactoring the translatable string for the case, but is morefuture-proof in case we ever publish relations that aren't plain tables.While at it, I made the English output look like "publication of table Xin publication Y"; the added "of" seems to me to make it read much better.Back-patch to v10 where publications were introduced.Discussion:https://postgr.es/m/20180522.182020.114074746.horiguchi.kyotaro@lab.ntt.co.jp1 parent056f52d commit1a31baf
File tree
2 files changed
+14
-9
lines changed- src
- backend/catalog
- test/regress/expected
2 files changed
+14
-9
lines changedLines changed: 13 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3467 | 3467 |
| |
3468 | 3468 |
| |
3469 | 3469 |
| |
| 3470 | + | |
3470 | 3471 |
| |
3471 | 3472 |
| |
3472 | 3473 |
| |
| |||
3477 | 3478 |
| |
3478 | 3479 |
| |
3479 | 3480 |
| |
3480 |
| - | |
3481 |
| - | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
3482 | 3488 |
| |
3483 | 3489 |
| |
3484 | 3490 |
| |
| |||
3537 | 3543 |
| |
3538 | 3544 |
| |
3539 | 3545 |
| |
| 3546 | + | |
| 3547 | + | |
3540 | 3548 |
| |
3541 | 3549 |
| |
3542 | 3550 |
| |
| |||
5007 | 5015 |
| |
5008 | 5016 |
| |
5009 | 5017 |
| |
5010 |
| - | |
5011 |
| - | |
| 5018 | + | |
| 5019 | + | |
5012 | 5020 |
| |
5013 |
| - | |
5014 |
| - | |
5015 |
| - | |
| 5021 | + | |
5016 | 5022 |
| |
5017 |
| - | |
5018 | 5023 |
| |
5019 | 5024 |
| |
5020 | 5025 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
477 | 477 |
| |
478 | 478 |
| |
479 | 479 |
| |
480 |
| - | |
| 480 | + | |
481 | 481 |
| |
482 | 482 |
| |
483 | 483 |
| |
|
0 commit comments
Comments
(0)