getting dbname through SPI

From: Gregory Scott WEBBER <gsw(at)students(dot)cs(dot)mu(dot)OZ(dot)AU>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: getting dbname through SPI
Date: 1998-10-13 07:00:37
Message-ID: Pine.GSO.3.95.981013163641.8303A-100000@holly.cs.mu.OZ.AU
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi All,

Is it possible to get the dbname via SPI? The situation is as that from
many trigger functions our package installs on tables with a db, an
external daemon is contacted with some information about particular
transactions that have taken place. In the situation where multiple
(similarly configured) databases are simultaneously live it is imperative
that the database in which the trigger was fired is known (by name) so the
aforementioned daemon can deal with the incoming information properly.

Thanks in advance,

Greg

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Gregory Scott WEBBER 1998-10-13 08:17:29 Re: getting dbname through SPI
Previous Message brian 1998-10-13 03:18:13 Re: pgsql-interfaces-digest V1 #105