forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcd03c6e
committed
Let ALTER TABLE Phase 2 routines manage the relation pointer
Struct AlteredRelationInfo gains a new Relation member, to be used onlyby Phase 2 (ATRewriteCatalogs); this allows ATExecCmd() subroutines openand close the relation internally.A future commit will use this facility to implement an ALTER TABLEsubcommand that closes and reopens the relation across transactionboundaries.(It is possible to keep the relation open past phase 2 to be used byphase 3 instead of having to reopen it that point, but there are someminor complications with that; it's not clear that there is much to bewon from doing that, though.)Author: Álvaro Herrera <alvherre@alvh.no-ip.org>Discussion:https://postgr.es/m/20200803234854.GA24158@alvherre.pgsql1 parent4669cac commitcd03c6e
1 file changed
+13
-6
lines changedLines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
| 160 | + | |
| 161 | + | |
160 | 162 |
| |
161 | 163 |
| |
162 | 164 |
| |
| |||
354 | 356 |
| |
355 | 357 |
| |
356 | 358 |
| |
357 |
| - | |
| 359 | + | |
358 | 360 |
| |
359 | 361 |
| |
360 | 362 |
| |
| |||
4569 | 4571 |
| |
4570 | 4572 |
| |
4571 | 4573 |
| |
4572 |
| - | |
4573 | 4574 |
| |
4574 | 4575 |
| |
4575 | 4576 |
| |
| |||
4578 | 4579 |
| |
4579 | 4580 |
| |
4580 | 4581 |
| |
4581 |
| - | |
| 4582 | + | |
4582 | 4583 |
| |
4583 | 4584 |
| |
4584 |
| - | |
| 4585 | + | |
4585 | 4586 |
| |
4586 | 4587 |
| |
4587 | 4588 |
| |
| |||
4593 | 4594 |
| |
4594 | 4595 |
| |
4595 | 4596 |
| |
4596 |
| - | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
4597 | 4602 |
| |
4598 | 4603 |
| |
4599 | 4604 |
| |
| |||
4619 | 4624 |
| |
4620 | 4625 |
| |
4621 | 4626 |
| |
4622 |
| - | |
| 4627 | + | |
4623 | 4628 |
| |
4624 | 4629 |
| |
4625 | 4630 |
| |
4626 | 4631 |
| |
| 4632 | + | |
4627 | 4633 |
| |
4628 | 4634 |
| |
4629 | 4635 |
| |
| |||
5730 | 5736 |
| |
5731 | 5737 |
| |
5732 | 5738 |
| |
| 5739 | + | |
5733 | 5740 |
| |
5734 | 5741 |
| |
5735 | 5742 |
| |
|
0 commit comments
Comments
(0)