Re: Returned mail: Service unavailable

From: Dado Feigenblatt <dado(at)wildbrain(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Returned mail: Service unavailable
Date: 2001-08-10 17:59:06
Message-ID: 3B7420EA.5080500@wildbrain.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Steve SAUTETNER wrote:

> Hello !
>
> I've got 2 databases. In the first i've got users described in a table
> (name, adress ..).
> In the second, i've got a table with products informations (id, price,
> owner
> ...).
> I must create a trigger in the second table on insert that verify that
> the
> product's owner exists in the first database.
>
> Anyone has an idea on how to do it ?
> (i can't merge the two databases)
>
> have a nice day !
>
Not very experienced on triggers mysefl, but if you're talking about two
tables in the same database, that can be done and you'd be better off
taking advice on how to implement that from somebody other than me :)
But if you're *really* saying you have 2 *distinct* databases, then
you're out of luck :(. Triggers can work across tables on the same DB,
but not across DBs.
Am I wrong on that one?

--
Dado Feigenblatt Wild Brain, Inc.
Technical Director (415) 216-2053
dado(at)wildbrain(dot)com San Francisco, CA.

Browse pgsql-general by date

  From Date Subject
Next Message Fernando Schapachnik 2001-08-10 18:05:56 Re: why does this select hang postgres???
Previous Message Jeremy Hansen 2001-08-10 17:48:56 why does this select hang postgres???