- Notifications
You must be signed in to change notification settings - Fork28
Commit2132e06
committed
I made it so it rolled over files at 1MB. My table ended up with 120
segments, and my indexes had 3(Yes, it DOES work!).DROP TABLE removed ALL segments from the table, but only the main indexsegment.So it looks like removing the table itself is using mdunlink in md.c,while removing indexes uses FileNameUnlink() which only unlinks 1 file.As far as I can tell, calling FileNameUnlink() and mdunlink() is basicallythe same, except mdunlink() deletes any extra segments.I've done some testing and it seems to work. It also passes regressiontests(except float8, geometry and rules, but that's normal).If this patch is right, this fixes all known multi-segment problems onLinux.Ole Gjerde1 parentde81fbd commit2132e06
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
1187 | 1187 |
| |
1188 | 1188 |
| |
1189 | 1189 |
| |
1190 |
| - | |
| 1190 | + | |
1191 | 1191 |
| |
1192 | 1192 |
| |
1193 | 1193 |
| |
|
0 commit comments
Comments
(0)