Commit 9e8a18d
committed
Doc: remove misleading info about ecpg's CONNECT/DISCONNECT DEFAULT.
As far as I can see, ecpg has no notion of a "default" open
connection. You can do "CONNECT TO DEFAULT" but that just specifies
letting libpq use all its default connection parameters --- the
resulting connection is not special subsequently. In particular,
SET CONNECTION = DEFAULT and DISCONNECT DEFAULT simply act on a
connection named DEFAULT, if you've made one; they do not have
special lookup rules. But the documentation of these commands
makes it look like they do.
Simplest fix, I think, is just to remove the paras suggesting that
DEFAULT is special here.
Also, SET CONNECTION *does* have one special lookup rule, which
is that it recognizes CURRENT as an alias for the currently selected
connection. SET CONNECTION = CURRENT is a no-op, so it's pretty
useless, but nonetheless it does something different from selecting
a connection by name; so we'd better document it.
Per report from Sylvain Frandaz. Back-patch to all supported
versions.
Discussion: https://postgr.es/m/169824721149.1769274.1553568436817652238@wrigleys.postgresql.org1 parent 93e1d5c commit 9e8a18d
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 | | |
| |||
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