- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit9e8a18d
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 parent93e1d5c commit9e8a18d
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 |
| |
| |||
6879 | 6873 |
| |
6880 | 6874 |
| |
6881 | 6875 |
| |
6882 |
| - | |
6883 | 6876 |
| |
6884 | 6877 |
| |
6885 | 6878 |
| |
| |||
6920 | 6913 |
| |
6921 | 6914 |
| |
6922 | 6915 |
| |
6923 |
| - | |
6924 |
| - | |
6925 |
| - | |
6926 |
| - | |
6927 |
| - | |
6928 |
| - | |
6929 |
| - | |
6930 |
| - | |
6931 |
| - | |
6932 | 6916 |
| |
6933 | 6917 |
| |
6934 | 6918 |
| |
| |||
6947 | 6931 |
| |
6948 | 6932 |
| |
6949 | 6933 |
| |
6950 |
| - | |
6951 | 6934 |
| |
6952 | 6935 |
| |
6953 | 6936 |
| |
6954 | 6937 |
| |
6955 | 6938 |
| |
6956 |
| - | |
6957 | 6939 |
| |
6958 | 6940 |
| |
6959 | 6941 |
| |
| |||
7473 | 7455 |
| |
7474 | 7456 |
| |
7475 | 7457 |
| |
7476 |
| - | |
| 7458 | + | |
7477 | 7459 |
| |
7478 | 7460 |
| |
7479 |
| - | |
| 7461 | + | |
7480 | 7462 |
| |
7481 | 7463 |
| |
7482 | 7464 |
| |
|
0 commit comments
Comments
(0)