On Tue, 26 Oct 2004, Mike Mascari wrote:
[color=blue]
> Stephan Szabo wrote:[color=green]
> > On Tue, 26 Oct 2004, Mike Mascari wrote:
> >
> >[color=darkred]
> >>I'd like to ensure that the creation of a department also implies the
> >>creation of two to eight projects; no more, no less:[/color][/color]
>[color=green][color=darkred]
> >>Is there no way to achieve the above stated goal in the server? Must I
> >>rely on the application to enforce consistency?[/color]
> >
> >
> > Well. It's not exactly meant to be a user facing feature, but check out
> > CREATE CONSTRAINT TRIGGER.[/color]
>
> Thanks, Stephan!
>
> I read the disclaimer "It is not intended for general use" but am
> curious as to why it isn't a user-facing feature? Is it a function of
> just exposing a cleaner SQL interface, or is it a function of the
> trigger queue having been written after user-defined triggers, or is
> there some philosophical argument against allowing user-definable
> triggers to be deferred?[/color]
I should also add that it's also not likely to get upgraded to handle new
trigger features (for example statement triggers) quickly unless someone
wants to step up and do so.
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org