Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • psql is from PostgreSQL 10.5 but what version of PostgreSQL is the server running? Commented Aug 15, 2018 at 3:49
  • @muistooshort SELECT version(); gives me PostgreSQL 9.4.19 on x86_64-pc-linux-gnu (Ubuntu 9.4.19-1.pgdg14.04+1), compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4, 64-bit. Does it mean that I should read documentation for version 9.4 instead of 10? Commented Aug 15, 2018 at 3:55
  • Yes, check the 9.4 docs. AFAIK IDENTITY was added in version 10, you'll want to use serial with 9.4. Commented Aug 15, 2018 at 3:57
  • @muistooshort I just tried that but failed again. Would you mind checking my edits? Should I create relation serial just to create distributors? Commented Aug 15, 2018 at 4:14
  • I need a bit more space than a comment provides so I added an answer. Commented Aug 15, 2018 at 4:24