text field constraint advice

Поиск
Список
Период
Сортировка
От Dale Sykora
Тема text field constraint advice
Дата
Msg-id 41F73845.6010606@czexan.net
обсуждение исходный текст
Ответы Re: text field constraint advice  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
PostgreSQL users,
    I would like to use a text field in a table and limit the size to
reduce the chance of denial-of-service/buffer overflow/etc.  I assume I
can define table fields similar to the following
"field_name text check (len(field) < 160)" although my syntax is
probably wrong.  Is checking text length considered a good idea?  If so,
what would be a reasonable limit?  I was thinking about 10 *
average_field_char_length (if avg value is 16 char, set limit to 160
char).  Thanks in advance for your opinions.

Thanks,

Dale



В списке pgsql-general по дате отправления:

Предыдущее
От: Robby Russell
Дата:
Сообщение: Re: Good PostgreSQL Based Shopping Cart Software ... ?
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: visualizing B-tree index coverage