forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcae0d4f
committed
Teach libpq to decode server version correctly from future servers.
Beginning with the next development cycle, PG servers will report two-partnot three-part version numbers. Fix libpq so that it will compute thecorrect numeric representation of such server versions for reporting byPQserverVersion(). It's desirable to get this into the field andback-patched ASAP, so that older clients are more likely to understand thenew server version numbering by the time any such servers are in the wild.(The results with an old client would probably not be catastrophic anywayfor a released server; for example "10.1" would be interpreted as 100100which would be wrong in detail but would not likely cause an old client tomisbehave badly. But "10devel" or "10beta1" would result in sversion==0which at best would result in disabling all use of modern features.)Extracted from a patch by Peter Eisentraut; comments added by mePatch: <802ec140-635d-ad86-5fdf-d3af0e260c22@2ndquadrant.com>1 parentb07058c commitcae0d4f
1 file changed
+22
-5
lines changedLines changed: 22 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
982 | 982 |
| |
983 | 983 |
| |
984 | 984 |
| |
985 |
| - | |
986 |
| - | |
987 |
| - | |
| 985 | + | |
988 | 986 |
| |
989 |
| - | |
990 |
| - | |
| 987 | + | |
991 | 988 |
| |
992 | 989 |
| |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
993 | 1010 |
| |
994 | 1011 |
| |
995 | 1012 |
| |
|
0 commit comments
Comments
(0)