forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfda15b3
committed
As part of the work for making relocatable installs, I have re-factored
all the code that looks for other binaries. I move FindExec intoport/exec.c (and renamed it to find_my_binary()). I also addedfind_other_binary that looks for another binary in the same directory asthe calling program, and checks the version string.The only behavior change was that initdb and pg_dump would look in thehard-coded bindir directory if it can't find the requested binary in thesame directory as the caller. The new code throws an error. The oldbehavior seemed too error prone for version mismatches.1 parent270c9aa commitfda15b3
File tree
15 files changed
+305
-447
lines changed- src
- backend
- postmaster
- tcop
- utils/init
- bin
- initdb
- pg_dump
- include
- port
15 files changed
+305
-447
lines changedLines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12011 | 12011 |
| |
12012 | 12012 |
| |
12013 | 12013 |
| |
12014 |
| - | |
12015 | 12014 |
| |
12016 | 12015 |
| |
12017 | 12016 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
892 | 892 |
| |
893 | 893 |
| |
894 | 894 |
| |
895 |
| - | |
896 | 895 |
| |
897 | 896 |
| |
898 | 897 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
342 |
| - | |
| 342 | + | |
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
692 | 692 |
| |
693 | 693 |
| |
694 | 694 |
| |
695 |
| - | |
| 695 | + | |
696 | 696 |
| |
697 | 697 |
| |
698 | 698 |
| |
| |||
3222 | 3222 |
| |
3223 | 3223 |
| |
3224 | 3224 |
| |
3225 |
| - | |
| 3225 | + | |
3226 | 3226 |
| |
3227 | 3227 |
| |
3228 | 3228 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
2649 | 2649 |
| |
2650 | 2650 |
| |
2651 | 2651 |
| |
2652 |
| - | |
| 2652 | + | |
2653 | 2653 |
| |
2654 | 2654 |
| |
2655 | 2655 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
|
Lines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
| 19 | + | |
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 |
| |
26 | 30 |
| |
27 | 31 |
| |
| |||
32 | 36 |
| |
33 | 37 |
| |
34 | 38 |
| |
35 |
| - | |
| 39 | + | |
36 | 40 |
| |
37 | 41 |
| |
38 |
| - | |
| 42 | + | |
39 | 43 |
|
0 commit comments
Comments
(0)