forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita14707d
committed
Show more-intuitive titles for psql commands \dt, \di, etc.
If exactly one relation type is requested in a command of the \dtisvfamily, say "tables", "indexes", etc instead of "relations". Thisshould cover the majority of actual uses, without creating a hugenumber of new translatable strings. The error messages for nomatching relations are adjusted as well.In passing, invent "pg_log_error_internal()" to be used for frontenderror messages that don't seem to need translation, analogously toerrmsg_internal() in the backend. The implementation is a bit cheesy,being just a macro to prevent xgettext from recognizing a triggerkeyword. This won't avoid a useless gettext lookup cycle at runtime--- but surely we don't care about an extra microsecond or two inwhat's supposed to be a can't-happen case. I (tgl) also made"pg_fatal_internal()", though it's not used in this patch.Author: Greg Sabino Mullane <htamfids@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CAKAnmm+7o93fQV-RFkGaN1QnP-0D4d3JTykD+cLueqjDMKdfag@mail.gmail.com1 parentee4667f commita14707d
File tree
4 files changed
+88
-28
lines changed- src
- bin/psql
- include/common
- test/regress/expected
4 files changed
+88
-28
lines changedLines changed: 59 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4011 | 4011 |
| |
4012 | 4012 |
| |
4013 | 4013 |
| |
| 4014 | + | |
4014 | 4015 |
| |
4015 | 4016 |
| |
4016 | 4017 |
| |
4017 | 4018 |
| |
4018 | 4019 |
| |
4019 | 4020 |
| |
4020 |
| - | |
4021 |
| - | |
| 4021 | + | |
| 4022 | + | |
| 4023 | + | |
| 4024 | + | |
| 4025 | + | |
4022 | 4026 |
| |
4023 | 4027 |
| |
4024 | 4028 |
| |
| |||
4169 | 4173 |
| |
4170 | 4174 |
| |
4171 | 4175 |
| |
4172 |
| - | |
4173 |
| - | |
| 4176 | + | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
4174 | 4202 |
| |
4175 |
| - | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
| 4211 | + | |
| 4212 | + | |
| 4213 | + | |
| 4214 | + | |
| 4215 | + | |
| 4216 | + | |
| 4217 | + | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
4176 | 4221 |
| |
4177 | 4222 |
| |
4178 | 4223 |
| |
4179 |
| - | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
4180 | 4233 |
| |
4181 | 4234 |
| |
4182 | 4235 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
156 | 163 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
119 |
| - | |
| 119 | + | |
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
|
Lines changed: 21 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3027 | 3027 |
| |
3028 | 3028 |
| |
3029 | 3029 |
| |
3030 |
| - | |
| 3030 | + | |
3031 | 3031 |
| |
3032 | 3032 |
| |
3033 | 3033 |
| |
3034 | 3034 |
| |
3035 | 3035 |
| |
3036 | 3036 |
| |
3037 | 3037 |
| |
3038 |
| - | |
| 3038 | + | |
3039 | 3039 |
| |
3040 | 3040 |
| |
3041 | 3041 |
| |
3042 | 3042 |
| |
3043 | 3043 |
| |
3044 | 3044 |
| |
3045 | 3045 |
| |
3046 |
| - | |
| 3046 | + | |
3047 | 3047 |
| |
3048 | 3048 |
| |
3049 | 3049 |
| |
| |||
6244 | 6244 |
| |
6245 | 6245 |
| |
6246 | 6246 |
| |
6247 |
| - | |
| 6247 | + | |
6248 | 6248 |
| |
6249 | 6249 |
| |
6250 | 6250 |
| |
| |||
6316 | 6316 |
| |
6317 | 6317 |
| |
6318 | 6318 |
| |
6319 |
| - | |
| 6319 | + | |
6320 | 6320 |
| |
6321 | 6321 |
| |
6322 | 6322 |
| |
6323 | 6323 |
| |
6324 | 6324 |
| |
6325 |
| - | |
| 6325 | + | |
6326 | 6326 |
| |
6327 | 6327 |
| |
6328 | 6328 |
| |
6329 | 6329 |
| |
6330 | 6330 |
| |
6331 |
| - | |
| 6331 | + | |
6332 | 6332 |
| |
6333 | 6333 |
| |
6334 | 6334 |
| |
6335 | 6335 |
| |
6336 | 6336 |
| |
6337 |
| - | |
| 6337 | + | |
6338 | 6338 |
| |
6339 | 6339 |
| |
6340 | 6340 |
| |
6341 | 6341 |
| |
6342 | 6342 |
| |
6343 |
| - | |
| 6343 | + | |
6344 | 6344 |
| |
6345 | 6345 |
| |
6346 | 6346 |
| |
| |||
6474 | 6474 |
| |
6475 | 6475 |
| |
6476 | 6476 |
| |
6477 |
| - | |
| 6477 | + | |
6478 | 6478 |
| |
6479 | 6479 |
| |
6480 | 6480 |
| |
| |||
6526 | 6526 |
| |
6527 | 6527 |
| |
6528 | 6528 |
| |
6529 |
| - | |
| 6529 | + | |
6530 | 6530 |
| |
6531 | 6531 |
| |
6532 | 6532 |
| |
6533 | 6533 |
| |
6534 | 6534 |
| |
6535 |
| - | |
| 6535 | + | |
6536 | 6536 |
| |
6537 | 6537 |
| |
6538 | 6538 |
| |
6539 | 6539 |
| |
6540 | 6540 |
| |
6541 |
| - | |
| 6541 | + | |
6542 | 6542 |
| |
6543 | 6543 |
| |
6544 | 6544 |
| |
6545 | 6545 |
| |
6546 | 6546 |
| |
6547 |
| - | |
| 6547 | + | |
6548 | 6548 |
| |
6549 | 6549 |
| |
6550 | 6550 |
| |
6551 | 6551 |
| |
6552 | 6552 |
| |
6553 |
| - | |
| 6553 | + | |
6554 | 6554 |
| |
6555 | 6555 |
| |
6556 | 6556 |
| |
| |||
6641 | 6641 |
| |
6642 | 6642 |
| |
6643 | 6643 |
| |
6644 |
| - | |
| 6644 | + | |
6645 | 6645 |
| |
6646 | 6646 |
| |
6647 | 6647 |
| |
| |||
6677 | 6677 |
| |
6678 | 6678 |
| |
6679 | 6679 |
| |
6680 |
| - | |
| 6680 | + | |
6681 | 6681 |
| |
6682 | 6682 |
| |
6683 | 6683 |
| |
6684 | 6684 |
| |
6685 | 6685 |
| |
6686 |
| - | |
| 6686 | + | |
6687 | 6687 |
| |
6688 | 6688 |
| |
6689 | 6689 |
| |
6690 | 6690 |
| |
6691 | 6691 |
| |
6692 |
| - | |
| 6692 | + | |
6693 | 6693 |
| |
6694 | 6694 |
| |
6695 | 6695 |
| |
6696 | 6696 |
| |
6697 | 6697 |
| |
6698 |
| - | |
| 6698 | + | |
6699 | 6699 |
| |
6700 | 6700 |
| |
6701 | 6701 |
| |
6702 | 6702 |
| |
6703 | 6703 |
| |
6704 |
| - | |
| 6704 | + | |
6705 | 6705 |
| |
6706 | 6706 |
| |
6707 | 6707 |
| |
|
0 commit comments
Comments
(0)