forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitee63709
committed
Solve cross-version-upgrade testing problem induced by1fb57af.
Renaming varchar_transform to varchar_support had a side effectI hadn't foreseen: the core regression tests leave around atransform object that relies on that function, so the namechange breaks cross-version upgrade tests, because the nameused in the older branches doesn't match.Since the dependency on varchar_transform was chosen with theaid of a dartboard anyway (it would surely not work as alanguage transform support function), fix by just choosinga different random builtin function with the right signature.Also add some comments explaining why this isn't horribly unsafe.I chose to make the same substitution in a couple of othercopied-and-pasted test cases, for consistency, though thosearen't directly contributing to the testing problem.Per buildfarm. Back-patch, else it doesn't fix the problem.1 parentef9bf35 commitee63709
File tree
5 files changed
+16
-8
lines changed- src
- bin/pg_dump/t
- test
- modules/test_ddl_deparse
- expected
- sql
- regress
- expected
- sql
5 files changed
+16
-8
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1936 | 1936 |
| |
1937 | 1937 |
| |
1938 | 1938 |
| |
1939 |
| - | |
| 1939 | + | |
1940 | 1940 |
| |
1941 |
| - | |
| 1941 | + | |
1942 | 1942 |
| |
1943 | 1943 |
| |
1944 | 1944 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 |
| |
10 |
| - | |
| 12 | + | |
11 | 13 |
| |
12 | 14 |
| |
13 | 15 |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 |
| |
11 |
| - | |
| 13 | + | |
12 | 14 |
| |
13 | 15 |
| |
14 | 16 |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
| 41 | + | |
40 | 42 |
| |
41 |
| - | |
| 43 | + | |
42 | 44 |
| |
43 | 45 |
| |
44 | 46 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
| 44 | + | |
43 | 45 |
| |
44 |
| - | |
| 46 | + | |
45 | 47 |
| |
46 | 48 |
| |
47 | 49 |
| |
|
0 commit comments
Comments
(0)