Re: OT: Canadian Tax Database

Поиск
Список
Период
Сортировка
От Jorge Godoy
Тема Re: OT: Canadian Tax Database
Дата
Msg-id 87fy8d9x11.fsf@gmail.com
обсуждение исходный текст
Ответ на Re: OT: Canadian Tax Database  (omar <omar2@omnicode.com>)
Ответы Re: OT: Canadian Tax Database  (Guy Fraser <guy@incentre.net>)
Список pgsql-general
omar <omar2@omnicode.com> writes:

> I'm curious what people think about the following statement considering the
> database typing talk being brought up here.  My experience is that more times
> than not I have to put data validation in my client code even when it's
> available on the server, if for no other reason that users don't understand
> what foreign key violation, etc messages mean.  It begs the question of
> whether it's really necessary on the server or not.  SQLite seems to take the
> position that it isn't since there is no referential integrity and the
> following.  To be honest, there's a lot of power in the ability to view
> everything as a string, with of course proper data validation.

I believe that data validation is essential at the server side.  The ideal
situation to me is something like data validation on server, errors /
exceptions being risen and then catched by the client code that will translate
them to a suitable message.

Inserting data validation on client side helps with simple input and eliminate
the average number of roundtrips needed for getting the data stored, but
shouldn't be the only validation done.


--
Jorge Godoy      <jgodoy@gmail.com>

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Moving from 32 to 64 bit builds on Solaris
Следующее
От: "woger151"
Дата:
Сообщение: unary operators, precedence, grouping