Re: Single Row Table?

Поиск
Список
Период
Сортировка
От Mike Nolan
Тема Re: Single Row Table?
Дата
Msg-id 200408311547.i7VFlkxK012921@gw.tssi.com
обсуждение исходный текст
Ответ на Re: Single Row Table?  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
Список pgsql-general
> ISTM most natural to do this with a rule, e.g.:
>
> CREATE RULE my_insert_rule AS ON INSERT TO my_table DO
> INSTEAD NOTHING;
>
> Which will cause all inserts to be silently dropped.

This strikes me as bad programming practice.  Errors should be reported,
not silently ignored.  If the application is doing an insert when it doesn't
need to, then the application is flawed as well.
--
Mike Nolan

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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: Change config of running PGSQL
Следующее
От: Elie Nacache
Дата:
Сообщение: Re: Hebrew support -- please help !