forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3e2e0d5
committed
Set all variable-length fields of pg_attribute to null on column drop
When a column is dropped, the fields attacl, attoptions, andattfdwoptions were kept unchanged. This is probably harmless, but itseems wasteful, and leaves potentially dangling data lying around (forexample, attacl could contain references to users that are later alsodropped).Change this to set those fields to null when a column is marked asdropped.Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>Discussion:https://www.postgresql.org/message-id/flat/249d819d-1763-4580-8110-0bf91a0f08b7@eisentraut.org1 parente2b73f4 commit3e2e0d5
1 file changed
+21
-18
lines changedLines changed: 21 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1647 | 1647 |
| |
1648 | 1648 |
| |
1649 | 1649 |
| |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
1650 | 1653 |
| |
1651 | 1654 |
| |
1652 | 1655 |
| |
| |||
1695 | 1698 |
| |
1696 | 1699 |
| |
1697 | 1700 |
| |
1698 |
| - | |
1699 |
| - | |
1700 |
| - | |
1701 |
| - | |
1702 |
| - | |
1703 |
| - | |
1704 |
| - | |
1705 |
| - | |
1706 |
| - | |
1707 |
| - | |
1708 |
| - | |
1709 |
| - | |
1710 |
| - | |
1711 |
| - | |
1712 |
| - | |
1713 |
| - | |
1714 |
| - | |
1715 |
| - | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
1716 | 1719 |
| |
1717 | 1720 |
| |
1718 | 1721 |
| |
|
0 commit comments
Comments
(0)