>> name| ids >> ------------------------- >> Peter| 2, 3, 4, 5 >> Jack| 100, 34, 3 >> >> Both name and ids are in text format. IF you really do not want to use a link table (user_id, flag_id), you could use an array of ints instead of a string...
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных