forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2f397a0
committed
Clean up pg_basebackup libpq usage
When using libpq, it's generally preferrable to just use the stringswhich are in the PQ structures instead of copying them out, so dothat instead in BaseBackup(), eliminating the strcpy()'s used there.Also, in ReceiveAndUnpackTarFile(), check the string length for thedirectory returned by the server for the tablespace path.1 parent3cb7a39 commit2f397a0
1 file changed
+10
-7
lines changedLines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
509 | 509 |
| |
510 | 510 |
| |
511 | 511 |
| |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
512 | 519 |
| |
| 520 | + | |
513 | 521 |
| |
514 | 522 |
| |
515 | 523 |
| |
| |||
814 | 822 |
| |
815 | 823 |
| |
816 | 824 |
| |
817 |
| - | |
818 |
| - | |
819 | 825 |
| |
820 | 826 |
| |
821 | 827 |
| |
| |||
877 | 883 |
| |
878 | 884 |
| |
879 | 885 |
| |
880 |
| - | |
881 | 886 |
| |
882 |
| - | |
| 887 | + | |
883 | 888 |
| |
884 |
| - | |
885 | 889 |
| |
886 | 890 |
| |
887 | 891 |
| |
| |||
962 | 966 |
| |
963 | 967 |
| |
964 | 968 |
| |
965 |
| - | |
966 | 969 |
| |
967 |
| - | |
| 970 | + | |
968 | 971 |
| |
969 | 972 |
| |
970 | 973 |
| |
|
0 commit comments
Comments
(0)