how to change xtknewid sequence to custom dedicated sequence on custom schema | Community
Skip to main content
Level 4
February 29, 2024
Solved

how to change xtknewid sequence to custom dedicated sequence on custom schema

  • February 29, 2024
  • 1 reply
  • 581 views
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AnirbanSi

you can create a new sequence by adding the pkSequence="sequenceName" in the element tag of the schema & autopk=true

 

Also you need to create sequence in database level 

 

CREATE SEQUENCE sequenceName START 101;

https://www.postgresql.org/docs/current/sql-createsequence.html

1 reply

AnirbanSiAccepted solution
March 1, 2024

you can create a new sequence by adding the pkSequence="sequenceName" in the element tag of the schema & autopk=true

 

Also you need to create sequence in database level 

 

CREATE SEQUENCE sequenceName START 101;

https://www.postgresql.org/docs/current/sql-createsequence.html