Commit 1749332
committed
Fix pg_dump to work against pre-9.0 servers again.
getBlobs' queries for pre-9.0 servers were broken in two ways:
the 7.x/8.x query uses DISTINCT so it can't have unspecified-type
NULLs in the target list, and both that query and the 7.0 one
failed to provide the correct output column labels, so that the
subsequent code to extract data from the PGresult would fail.
Back-patch to 9.6 where the breakage was introduced (by commit 23f34fa).
Amit Langote and Tom Lane
Discussion: <0a3e7a0e-37bd-8427-29bd-958135862f0a@lab.ntt.co.jp>1 parent 2933ed0 commit 1749332
1 file changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2875 | 2875 | | |
2876 | 2876 | | |
2877 | 2877 | | |
2878 | | - | |
2879 | | - | |
| 2878 | + | |
| 2879 | + | |
2880 | 2880 | | |
2881 | 2881 | | |
2882 | 2882 | | |
2883 | 2883 | | |
2884 | | - | |
2885 | | - | |
2886 | | - | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
2887 | 2888 | | |
2888 | 2889 | | |
2889 | 2890 | | |
2890 | | - | |
| 2891 | + | |
2891 | 2892 | | |
2892 | 2893 | | |
2893 | 2894 | | |
| |||
2922 | 2923 | | |
2923 | 2924 | | |
2924 | 2925 | | |
2925 | | - | |
| 2926 | + | |
| 2927 | + | |
2926 | 2928 | | |
2927 | 2929 | | |
2928 | 2930 | | |
2929 | | - | |
2930 | 2931 | | |
2931 | 2932 | | |
2932 | 2933 | | |
| |||
0 commit comments