Skip to content

Error running decompress_backfill: "permission denied for table bgw_job_stat" #28

@crstffr

Description

@crstffr

I'm evaluating Timescale Cloud and am following the instructions on how to backfill data into compressed chunks, found here.

  1. I added all of the backfill extra procedures found here in backfill.sql
  2. I created a temp table called import_temp from the schema of an existing hypertable
  3. I populated the temp table with data I want to backfill
  4. I ran CALL decompress_backfill(staging_table=>'import_temp', destination_hypertable=>'mytable');

Result is the following error:

ERROR:  permission denied for table bgw_job_stat
CONTEXT:  SQL statement "SELECT next_start FROM _timescaledb_internal.bgw_job_stat WHERE job_id = compression_job_id FOR UPDATE"
PL/pgSQL function move_compression_job(integer,name,name,timestamp with time zone) line 19 at SQL statement
SQL statement "SELECT move_compression_job(hypertable_row.id, hypertable_row.schema_name, hypertable_row.table_name, now() + compression_job_push_interval)"
PL/pgSQL function decompress_backfill(regclass,regclass,text,boolean,interval,text[],boolean) line 45 at SQL statement

This type of backfilling will be common for our business case, and as such, this error prevents me from further evaluating Timescale.

Please let me know if I can provide you with further information, I would like to get this resolved quickly.

Thank you,
Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions