forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbc478a0
committed
Tighten usage of PSQL_WATCH_PAGER.
Don't use PSQL_WATCH_PAGER when stdin/stdout are not a terminal.This corresponds to the restrictions on when other commands willuse [PSQL_]PAGER. There isn't a lot of sense in trying to use apager in non-interactive cases, and doing so allows an environmentsetting to break our tests.Also, ignore PSQL_WATCH_PAGER if it is set but empty or all-blank,for the same reasons we ignore such settings of [PSQL_]PAGER (seecommit18f8f78).No documentation change is really needed, since there is nothingsuggesting that these constraints on [PSQL_]PAGER didn't alreadyapply to PSQL_WATCH_PAGER too. But I rearranged the texta little to make it read more naturally (IMHO anyway).Per report from Pavel Stehule. Back-patch to v15 wherePSQL_WATCH_PAGER was introduced.Discussion:https://postgr.es/m/CAFj8pRDTwFzmEWdA-gdAcUh0ZnxUioSfTMre71WyB_wNJy-8gw@mail.gmail.com1 parent95f2827 commitbc478a0
2 files changed
+26
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3039 | 3039 | | |
3040 | 3040 | | |
3041 | 3041 | | |
3042 | | - | |
3043 | | - | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
3044 | 3057 | | |
3045 | 3058 | | |
3046 | 3059 | | |
| |||
3054 | 3067 | | |
3055 | 3068 | | |
3056 | 3069 | | |
3057 | | - | |
3058 | | - | |
3059 | | - | |
3060 | | - | |
3061 | | - | |
3062 | | - | |
3063 | | - | |
3064 | | - | |
3065 | | - | |
3066 | | - | |
3067 | | - | |
3068 | | - | |
3069 | 3070 | | |
3070 | 3071 | | |
3071 | 3072 | | |
| |||
4775 | 4776 | | |
4776 | 4777 | | |
4777 | 4778 | | |
4778 | | - | |
| 4779 | + | |
4779 | 4780 | | |
4780 | 4781 | | |
4781 | 4782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5020 | 5020 | | |
5021 | 5021 | | |
5022 | 5022 | | |
5023 | | - | |
5024 | | - | |
5025 | | - | |
| 5023 | + | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
| 5027 | + | |
5026 | 5028 | | |
5027 | 5029 | | |
5028 | 5030 | | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
5029 | 5034 | | |
5030 | | - | |
| 5035 | + | |
| 5036 | + | |
5031 | 5037 | | |
5032 | 5038 | | |
5033 | 5039 | | |
| |||
0 commit comments
Comments
(0)