Re: Single Row Table? - Mailing list pgsql-general

From Mike Nolan
Subject Re: Single Row Table?
Date
Msg-id 200408311547.i7VFlkxK012921@gw.tssi.com
Whole thread Raw
In response to Re: Single Row Table?  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
List 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 by date:

Previous
From: Doug McNaught
Date:
Subject: Re: Change config of running PGSQL
Next
From: Elie Nacache
Date:
Subject: Re: Hebrew support -- please help !