# Error restoring backup "key is duplicated"

**URL:** <https://meta.discourse.org/t/error-restoring-backup-key-is-duplicated/68999>\
**Category:** Self-hosting\
**Created:** [August 29, 2017, 3:40pm UTC](https://meta.discourse.org/t/error-restoring-backup-key-is-duplicated/68999 "2017-08-29T15:40:45Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![appcomq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/appcomq/32/84767_2.png) [@appcomq](https://meta.discourse.org/u/appcomq)\
**Post date:** [August 30, 2017, 8:22am UTC](https://meta.discourse.org/t/error-restoring-backup-key-is-duplicated/68999/6 "2017-08-30T08:22:38Z")

</div>

```
discourse=> \d topic_users_id_seq
     Sequence "public.topic_users_id_seq"
    Column | Type | Value        
---------------+---------+---------------------
 sequence_name | name | topic_users_id_seq
 last_value | bigint | 2481334
 start_value | bigint | 1
 increment_by | bigint | 1
 max_value | bigint | 9223372036854775807
 min_value | bigint | 1
 cache_value | bigint | 1
 log_cnt | bigint | 0
 is_cycled | boolean | f
 is_called | boolean | f
Owned by: public.topic_users.id

discourse=> select count(id),max(id) from topic_users;
  count | max   
---------+---------
 2467987 | 2481334
(1 row)

```

---

_[View the full topic](https://meta.discourse.org/t/error-restoring-backup-key-is-duplicated/68999)._
