Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
akuzm committed Nov 5, 2024
1 parent 9245abd commit 7c8107f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/chunk_index.c
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,9 @@ Datum
ts_chunk_index_clone(PG_FUNCTION_ARGS)
{
Oid chunk_index_oid = PG_GETARG_OID(0);
if (!OidIsValid(chunk_index_oid))
ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("invalid chunk index")));

Relation chunk_index_rel;
Relation hypertable_rel;
Relation chunk_rel;
Expand Down Expand Up @@ -1228,7 +1231,13 @@ Datum
ts_chunk_index_replace(PG_FUNCTION_ARGS)
{
Oid chunk_index_oid_old = PG_GETARG_OID(0);
if (!OidIsValid(chunk_index_oid_old))
ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("invalid chunk index")));

Oid chunk_index_oid_new = PG_GETARG_OID(1);
if (!OidIsValid(chunk_index_oid_new))
ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("invalid chunk index")));

Relation index_rel;
Chunk *chunk;
ChunkIndexMapping cim;
Expand Down

0 comments on commit 7c8107f

Please sign in to comment.