Re: How to get the size of JSONB in bytes?

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: How to get the size of JSONB in bytes?
Дата
Msg-id 5670B5DC.3010101@BlueTreble.com
обсуждение исходный текст
Ответ на Re: How to get the size of JSONB in bytes?  (Petr Korobeinikov <pkorobeinikov@gmail.com>)
Ответы Re: How to get the size of JSONB in bytes?
Список pgsql-general
On 12/15/15 8:24 AM, Petr Korobeinikov wrote:
> The better approach is extract your length-validation logic into your
> application.

That's really up to interpretation.

The database is the only place the data is stored, and as such is the
only place that can constrain that data in all places.

If you're accepting data from a web form or something you certainly want
it to also check things, so the user gets immediate feedback. But for
anything you need to guarantee, you need to use the database.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Trigger function, C, lookup of attribute type
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: wal receiver process always start after startup process recovering all WALs and need new WAL?