forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd76606f
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 parentcf352dd commitd76606f
1 file changed
+3
-21
lines changedLines changed: 3 additions & 21 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 |
| |
| |||
7128 | 7122 |
| |
7129 | 7123 |
| |
7130 | 7124 |
| |
7131 |
| - | |
7132 | 7125 |
| |
7133 | 7126 |
| |
7134 | 7127 |
| |
| |||
7169 | 7162 |
| |
7170 | 7163 |
| |
7171 | 7164 |
| |
7172 |
| - | |
7173 |
| - | |
7174 |
| - | |
7175 |
| - | |
7176 |
| - | |
7177 |
| - | |
7178 |
| - | |
7179 |
| - | |
7180 |
| - | |
7181 | 7165 |
| |
7182 | 7166 |
| |
7183 | 7167 |
| |
| |||
7196 | 7180 |
| |
7197 | 7181 |
| |
7198 | 7182 |
| |
7199 |
| - | |
7200 | 7183 |
| |
7201 | 7184 |
| |
7202 | 7185 |
| |
7203 | 7186 |
| |
7204 | 7187 |
| |
7205 |
| - | |
7206 | 7188 |
| |
7207 | 7189 |
| |
7208 | 7190 |
| |
| |||
7770 | 7752 |
| |
7771 | 7753 |
| |
7772 | 7754 |
| |
7773 |
| - | |
7774 |
| - | |
| 7755 | + | |
| 7756 | + | |
7775 | 7757 |
| |
7776 | 7758 |
| |
7777 |
| - | |
| 7759 | + | |
7778 | 7760 |
| |
7779 | 7761 |
| |
7780 | 7762 |
| |
|
0 commit comments
Comments
(0)