Commit bddc2f7
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 fdeb6e6 commit bddc2f7
1 file changed
+3
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | 415 | | |
422 | 416 | | |
423 | 417 | | |
| |||
7130 | 7124 | | |
7131 | 7125 | | |
7132 | 7126 | | |
7133 | | - | |
7134 | 7127 | | |
7135 | 7128 | | |
7136 | 7129 | | |
| |||
7171 | 7164 | | |
7172 | 7165 | | |
7173 | 7166 | | |
7174 | | - | |
7175 | | - | |
7176 | | - | |
7177 | | - | |
7178 | | - | |
7179 | | - | |
7180 | | - | |
7181 | | - | |
7182 | | - | |
7183 | 7167 | | |
7184 | 7168 | | |
7185 | 7169 | | |
| |||
7198 | 7182 | | |
7199 | 7183 | | |
7200 | 7184 | | |
7201 | | - | |
7202 | 7185 | | |
7203 | 7186 | | |
7204 | 7187 | | |
7205 | 7188 | | |
7206 | 7189 | | |
7207 | | - | |
7208 | 7190 | | |
7209 | 7191 | | |
7210 | 7192 | | |
| |||
7772 | 7754 | | |
7773 | 7755 | | |
7774 | 7756 | | |
7775 | | - | |
7776 | | - | |
| 7757 | + | |
| 7758 | + | |
7777 | 7759 | | |
7778 | 7760 | | |
7779 | | - | |
| 7761 | + | |
7780 | 7762 | | |
7781 | 7763 | | |
7782 | 7764 | | |
| |||
0 commit comments