forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit733e99d
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 parentd8c3ed4 commit733e99d
1 file changed
+2
-20
lines changedLines changed: 2 additions & 20 deletions
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 |
| |
| |||
7091 | 7085 |
| |
7092 | 7086 |
| |
7093 | 7087 |
| |
7094 |
| - | |
7095 | 7088 |
| |
7096 | 7089 |
| |
7097 | 7090 |
| |
| |||
7132 | 7125 |
| |
7133 | 7126 |
| |
7134 | 7127 |
| |
7135 |
| - | |
7136 |
| - | |
7137 |
| - | |
7138 |
| - | |
7139 |
| - | |
7140 |
| - | |
7141 |
| - | |
7142 |
| - | |
7143 |
| - | |
7144 | 7128 |
| |
7145 | 7129 |
| |
7146 | 7130 |
| |
| |||
7159 | 7143 |
| |
7160 | 7144 |
| |
7161 | 7145 |
| |
7162 |
| - | |
7163 | 7146 |
| |
7164 | 7147 |
| |
7165 | 7148 |
| |
7166 | 7149 |
| |
7167 | 7150 |
| |
7168 |
| - | |
7169 | 7151 |
| |
7170 | 7152 |
| |
7171 | 7153 |
| |
| |||
7734 | 7716 |
| |
7735 | 7717 |
| |
7736 | 7718 |
| |
7737 |
| - | |
| 7719 | + | |
7738 | 7720 |
| |
7739 | 7721 |
| |
7740 |
| - | |
| 7722 | + | |
7741 | 7723 |
| |
7742 | 7724 |
| |
7743 | 7725 |
| |
|
0 commit comments
Comments
(0)