Re: DEFERRABLE NOT NULL constraint

From: Bèrto ëd Sèra <berto(dot)d(dot)sera(at)gmail(dot)com>
To: Chris Angelico <rosuav(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: DEFERRABLE NOT NULL constraint
Date: 2013-02-05 13:31:39
Message-ID: CAKwGa_-Ur4QgYcHObaah=AFyNhiEbnk=d1rYG+VP6k7bGG8Hsw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Chris,

> Why do that as a trigger, then? Why not simply call a procedure that
> generates the value and inserts it?

Because this must be unknown to whoever makes the call and I'm not
supposed to expose any detail of what's going on behind the scenes.
Outsourcing part of sensitive apps also means that you do not want all
of the outside devs to know all that company X is doing, and how it is
doing it, sometimes.

Cheers
Bèrto

--
==============================
If Pac-Man had affected us as kids, we'd all be running around in a
darkened room munching pills and listening to repetitive music.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bèrto ëd Sèra 2013-02-05 13:38:59 tablespace directories
Previous Message Chris Angelico 2013-02-05 13:26:40 Re: DEFERRABLE NOT NULL constraint