Re: Is a backend id or something available for use as a foreign key?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Is a backend id or something available for use as a foreign key?
Date: 2004-07-24 14:39:48
Message-ID: 4195.1090679988@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Markus Bertheau <twanger(at)bluetwanger(dot)de> writes:
> Is there a backend id available or something similar that would allow
> me to define a view like this:

IIRC there is a function to get your backend's PID. It was meant for
identifying rows relevant to you in the pg_stat views, so look in that
part of the documentation.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2004-07-24 15:01:47 Re: Trigger functions with dynamic SQL
Previous Message Andreas Haumer 2004-07-24 14:31:09 Trigger functions with dynamic SQL