forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit70b59a2
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 parent5a4c21e commit70b59a2
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 |
| |
| |||
7093 | 7087 |
| |
7094 | 7088 |
| |
7095 | 7089 |
| |
7096 |
| - | |
7097 | 7090 |
| |
7098 | 7091 |
| |
7099 | 7092 |
| |
| |||
7134 | 7127 |
| |
7135 | 7128 |
| |
7136 | 7129 |
| |
7137 |
| - | |
7138 |
| - | |
7139 |
| - | |
7140 |
| - | |
7141 |
| - | |
7142 |
| - | |
7143 |
| - | |
7144 |
| - | |
7145 |
| - | |
7146 | 7130 |
| |
7147 | 7131 |
| |
7148 | 7132 |
| |
| |||
7161 | 7145 |
| |
7162 | 7146 |
| |
7163 | 7147 |
| |
7164 |
| - | |
7165 | 7148 |
| |
7166 | 7149 |
| |
7167 | 7150 |
| |
7168 | 7151 |
| |
7169 | 7152 |
| |
7170 |
| - | |
7171 | 7153 |
| |
7172 | 7154 |
| |
7173 | 7155 |
| |
| |||
7736 | 7718 |
| |
7737 | 7719 |
| |
7738 | 7720 |
| |
7739 |
| - | |
| 7721 | + | |
7740 | 7722 |
| |
7741 | 7723 |
| |
7742 |
| - | |
| 7724 | + | |
7743 | 7725 |
| |
7744 | 7726 |
| |
7745 | 7727 |
| |
|
0 commit comments
Comments
(0)