I'm trying to use arithmetic calculation:
\set startSmallOffset 1000000
\set traineeNext :startSmallOffset+2000
ALTER SEQUENCE record_trainee_id_seq RESTART WITH :traineeNext
The error:
ERROR: syntax error at or near "+" LINE 1: ALTER SEQUENCE record_trainee_id_seq RESTART WITH 1000000+2000...
It works if I remove '+2000'
Appreciate any advice