forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitecf741c
committed
Stabilize postgres_fdw test
The test fails when RESET statement_timeout takes longer than 10ms.Avoid the problem by using SET LOCAL instead.Overall, this test is not ideal: 10ms could be shorter than the time tohave sent the query to the "remote" server, so it's possible that onsome machines this test doesn't actually witness a remote query beingcancelled. We may want to improve on this someday by using some othertesting technique, but for now it's better than nothing. I verifiedmanually that one round of remote cancellation occurs when this runs onmy machine.Discussion:https://postgr.es/m/CAGECzQRsdWnj=YaaPCnA8d7E1AdbxRPBYmyBQRMPUijR2MpM_w@mail.gmail.com1 parent056c565 commitecf741c
File tree
2 files changed
+6
-4
lines changed- contrib/postgres_fdw
- expected
- sql
2 files changed
+6
-4
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2750 | 2750 |
| |
2751 | 2751 |
| |
2752 | 2752 |
| |
2753 |
| - | |
| 2753 | + | |
| 2754 | + | |
2754 | 2755 |
| |
2755 | 2756 |
| |
2756 |
| - | |
| 2757 | + | |
2757 | 2758 |
| |
2758 | 2759 |
| |
2759 | 2760 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
740 | 740 |
| |
741 | 741 |
| |
742 | 742 |
| |
743 |
| - | |
| 743 | + | |
| 744 | + | |
744 | 745 |
| |
745 |
| - | |
| 746 | + | |
746 | 747 |
| |
747 | 748 |
| |
748 | 749 |
| |
|
0 commit comments
Comments
(0)