I\'m trying to set a sequence to a specific value.
SELECT setval(\'payments_id_seq\'), 21, true
This gives an error:
The parentheses are misplaced:
SELECT setval('payments_id_seq', 21, true); # next value will be 22
Otherwise you're calling setval with a single argument, while it requires two or three.
setval