forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0853630
committed
Fix lost persistence setting during REINDEX INDEX
ReindexIndex() trusts a parser-built RangeVar with the persistence touse for the new copy of the index; but the parser naturally does notknow what's the persistence of the original index. To find out thecorrect persistence, grab it from relcache.This bug was introduced by commit85b506b, and therefore nobackpatch is necessary.Bug reported by Thom Brown, analysis and patch by Michael Paquier; testcase provided by Fabrízio de Royes Mello.1 parent542320c commit0853630
File tree
3 files changed
+44
-2
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+44
-2
lines changedLines changed: 16 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1685 | 1685 |
| |
1686 | 1686 |
| |
1687 | 1687 |
| |
| 1688 | + | |
| 1689 | + | |
1688 | 1690 |
| |
1689 |
| - | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
1690 | 1696 |
| |
1691 | 1697 |
| |
1692 | 1698 |
| |
1693 | 1699 |
| |
1694 | 1700 |
| |
1695 |
| - | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
1696 | 1710 |
| |
1697 | 1711 |
| |
1698 | 1712 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
211 | 233 |
| |
212 | 234 |
| |
213 | 235 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
246 | 246 |
| |
247 | 247 |
| |
248 | 248 |
| |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
249 | 255 |
| |
250 | 256 |
| |
251 | 257 |
| |
|
0 commit comments
Comments
(0)