forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit52f3de8
committed
Avoid failure to open dropped detached partition
When a partition is detached and immediately dropped, a preparedstatement could try to compute a new partition descriptor that includesit. This leads to this kind of error:ERROR: could not open relation with OID 457639Avoid this by skipping the partition in expand_partitioned_rtentry if itdoesn't exist.Noted by me while investigating bug #18559. Kuntal Gosh helped toidentify the exact failure.Backpatch to 14, where DETACH CONCURRENTLY was introduced.Author: Álvaro Herrera <alvherre@alvh.no-ip.org>Reviewed-by: Kuntal Ghosh <kuntalghosh.2007@gmail.com>Reviewed-by: Junwang Zhao <zhjwpku@gmail.com>Discussion:https://postgr.es/m/202408122233.bo4adt3vh5bi@alvherre.pgsql1 parent0d06a7e commit52f3de8
1 file changed
+11
-2
lines changedLines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
386 | 386 |
| |
387 | 387 |
| |
388 | 388 |
| |
389 |
| - | |
390 |
| - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
391 | 400 |
| |
392 | 401 |
| |
393 | 402 |
| |
|
0 commit comments
Comments
(0)