Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bdc2e5c

Browse files
committed
Fix reindex command
1 parent 7596c7b commit bdc2e5c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

expected/test.out

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,11 @@ select * from t where k = 1;
155155
1 | 1
156156
(1 row)
157157

158+
reindex table t;
159+
select * from t where k = 1;
160+
k | val
161+
---+-----
162+
1 | 1
163+
(1 row)
164+
158165
drop table t;

lsm3.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,6 @@ lsm3_process_utility(PlannedStmt *plannedStmt,
902902
}
903903
else
904904
{
905-
Assert (IsA(parseTree, TruncateStmt));
906905
for (int i = 0; i < 2; i++)
907906
{
908907
if (Lsm3Entry->top[i] == InvalidOid)

sql/test.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ truncate table t;
4343
insert into t values (generate_series(1,1000000), 1);
4444
select * from t where k = 1;
4545

46+
reindex table t;
47+
select * from t where k = 1;
48+
4649
drop table t;

0 commit comments

Comments
 (0)