forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaa5d7d5
committed
Add a server version check to pg_basebackup and pg_receivexlog.
These programs don't work against 9.0 or earlier servers, so check that whenthe connection is made. That's better than a cryptic error message you gotbefore.Also, these programs won't work with a 9.3 server, because the WAL streamingprotocol was changed in a non-backwards-compatible way. As a general rule,we don't make any guarantee that an old client will work with a new server,so check that. However, allow a 9.1 client to connect to a 9.2 server, toavoid breaking environments that currently work; a 9.1 client happens towork with a 9.2 server, even though we didn't make any great effort toensure that.This patch is for the 9.1 and 9.2 branches, I'll commit a similar patch tomaster later. Although this isn't a critical bug fix, it seems safe enoughto back-patch. The error message you got when connecting to a 9.3develserver without this patch was cryptic enough to warrant backpatching.1 parentf1bd8a8 commitaa5d7d5
1 file changed
+21
-0
lines changedLines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
816 | 816 |
| |
817 | 817 |
| |
818 | 818 |
| |
| 819 | + | |
| 820 | + | |
| 821 | + | |
819 | 822 |
| |
820 | 823 |
| |
821 | 824 |
| |
822 | 825 |
| |
823 | 826 |
| |
824 | 827 |
| |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
825 | 846 |
| |
826 | 847 |
| |
827 | 848 |
| |
|
0 commit comments
Comments
(0)