forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit28e4921
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 parent1f3ffbe commit28e4921
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 |
| |
| |||
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
Comments
(0)