forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit90fb0d1
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 parentef82d88 commit90fb0d1
1 file changed
+2
-20
lines changedLines changed: 2 additions & 20 deletions
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 |
| |
| |||
6927 | 6921 |
| |
6928 | 6922 |
| |
6929 | 6923 |
| |
6930 |
| - | |
6931 | 6924 |
| |
6932 | 6925 |
| |
6933 | 6926 |
| |
| |||
6968 | 6961 |
| |
6969 | 6962 |
| |
6970 | 6963 |
| |
6971 |
| - | |
6972 |
| - | |
6973 |
| - | |
6974 |
| - | |
6975 |
| - | |
6976 |
| - | |
6977 |
| - | |
6978 |
| - | |
6979 |
| - | |
6980 | 6964 |
| |
6981 | 6965 |
| |
6982 | 6966 |
| |
| |||
6995 | 6979 |
| |
6996 | 6980 |
| |
6997 | 6981 |
| |
6998 |
| - | |
6999 | 6982 |
| |
7000 | 6983 |
| |
7001 | 6984 |
| |
7002 | 6985 |
| |
7003 | 6986 |
| |
7004 |
| - | |
7005 | 6987 |
| |
7006 | 6988 |
| |
7007 | 6989 |
| |
| |||
7521 | 7503 |
| |
7522 | 7504 |
| |
7523 | 7505 |
| |
7524 |
| - | |
| 7506 | + | |
7525 | 7507 |
| |
7526 | 7508 |
| |
7527 |
| - | |
| 7509 | + | |
7528 | 7510 |
| |
7529 | 7511 |
| |
7530 | 7512 |
| |
|
0 commit comments
Comments
(0)