forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc45a45f
committed
Doc: remove misleading info about ecpg's CONNECT/DISCONNECT DEFAULT.
As far as I can see, ecpg has no notion of a "default" openconnection. You can do "CONNECT TO DEFAULT" but that just specifiesletting libpq use all its default connection parameters --- theresulting connection is not special subsequently. In particular,SET CONNECTION = DEFAULT and DISCONNECT DEFAULT simply act on aconnection named DEFAULT, if you've made one; they do not havespecial lookup rules. But the documentation of these commandsmakes it look like they do.Simplest fix, I think, is just to remove the paras suggesting thatDEFAULT is special here.Also, SET CONNECTION *does* have one special lookup rule, whichis that it recognizes CURRENT as an alias for the currently selectedconnection. SET CONNECTION = CURRENT is a no-op, so it's prettyuseless, but nonetheless it does something different from selectinga connection by name; so we'd better document it.Per report from Sylvain Frandaz. Back-patch to all supportedversions.Discussion:https://postgr.es/m/169824721149.1769274.1553568436817652238@wrigleys.postgresql.org1 parent85b9e88 commitc45a45f
1 file changed
+2
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | 346 | | |
353 | 347 | | |
354 | 348 | | |
| |||
6909 | 6903 | | |
6910 | 6904 | | |
6911 | 6905 | | |
6912 | | - | |
6913 | 6906 | | |
6914 | 6907 | | |
6915 | 6908 | | |
| |||
6950 | 6943 | | |
6951 | 6944 | | |
6952 | 6945 | | |
6953 | | - | |
6954 | | - | |
6955 | | - | |
6956 | | - | |
6957 | | - | |
6958 | | - | |
6959 | | - | |
6960 | | - | |
6961 | | - | |
6962 | 6946 | | |
6963 | 6947 | | |
6964 | 6948 | | |
| |||
6977 | 6961 | | |
6978 | 6962 | | |
6979 | 6963 | | |
6980 | | - | |
6981 | 6964 | | |
6982 | 6965 | | |
6983 | 6966 | | |
6984 | 6967 | | |
6985 | 6968 | | |
6986 | | - | |
6987 | 6969 | | |
6988 | 6970 | | |
6989 | 6971 | | |
| |||
7503 | 7485 | | |
7504 | 7486 | | |
7505 | 7487 | | |
7506 | | - | |
| 7488 | + | |
7507 | 7489 | | |
7508 | 7490 | | |
7509 | | - | |
| 7491 | + | |
7510 | 7492 | | |
7511 | 7493 | | |
7512 | 7494 | | |
| |||
0 commit comments
Comments
(0)