Skip to content

Commit e0477db

Browse files
author
Antonin Houska
committed
Added Assert() to distinguish partitioned table from non-partitioned.
1 parent 8a12b08 commit e0477db

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

concurrent.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ pg_rewrite_process_concurrent_changes(EState *estate,
9696
DecodingOutputState *dstate;
9797
bool done;
9898

99+
/*
100+
* Some arguments are specific to partitioned table, some to
101+
* non-partitioned one. XXX Is some refactoring needed here, such as using
102+
* an union?
103+
*/
104+
Assert((ident_index && ind_slot && partitions == NULL && proute == NULL) ||
105+
(ident_index == NULL && ind_slot == NULL && partitions && proute));
106+
99107
dstate = (DecodingOutputState *) ctx->output_writer_private;
100108
done = false;
101109
while (!done)

0 commit comments

Comments
 (0)