# Import keeping old post ids in Discourse

**URL:** <https://meta.discourse.org/t/import-keeping-old-post-ids-in-discourse/99852>\
**Category:** Migration\
**Tags:** kunena\
**Created:** [10월 18, 2018, 10:53오전 UTC](https://meta.discourse.org/t/import-keeping-old-post-ids-in-discourse/99852 "2018-10-18T10:53:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pgr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pgr/32/156783_2.png) [@pgr](https://meta.discourse.org/u/pgr)\
**Post date:** [10월 18, 2018, 12:09오후 UTC](https://meta.discourse.org/t/import-keeping-old-post-ids-in-discourse/99852/5 "2018-10-18T12:09:07Z")

</div>

It seems Discourse relies on PostgreSQL to assign the id, which is numeric:

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/6/c6fdd783a23cc0b2aa33458a02d1ed7b5196fb52.png)

And it seems PostgreSQL allows manipulation of that “sequence object”:

> **[9.17. Sequence Manipulation Functions](https://www.postgresql.org/docs/8.3/functions-sequence.html)**
>
> 9.17. Sequence Manipulation Functions # This section describes functions for operating on sequence objects, also called sequence generators or just sequences. …

So I guess my number 2 is answered “yes” and my number 3 is answered “no”. My question number 1 is probably what you mean by “very hard”, right? ☹

EDIT: let me just add that `posts` uses the same mechanism as `topics`

---

_[View the full topic](https://meta.discourse.org/t/import-keeping-old-post-ids-in-discourse/99852)._
