I should say I'd pad them to match length with the input value.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных