Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Is a backend id or something available for use as a foreign key? - Mailing list pgsql-sql

From Tom Lane
Subject Re: Is a backend id or something available for use as a foreign key?
Date
Msg-id [email protected]
Whole thread Raw
In response to Is a backend id or something available for use as a foreign key?  (Markus Bertheau <[email protected]>)
List pgsql-sql
Markus Bertheau <[email protected]> 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


pgsql-sql by date:

Previous
From: Andreas Haumer
Date:
Subject: Trigger functions with dynamic SQL
Next
From: Tom Lane
Date:
Subject: Re: Trigger functions with dynamic SQL