From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Emil Rachovsky <zsevgymko@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Sybase Connection_Property('number') equivalent in PostGre
Date: Fri, 2 Dec 2005 12:36:25 +0200 (EET)
Message-ID: <Pine.LNX.4.44.0512021235400.10815-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <20051202090419.351.qmail@web54301.mail.yahoo.com>
O Emil Rachovsky Ýãñáøå óôéò Dec 2, 2005 :
>
> I am trying to find out the PostGre equivalent to
> the Sybase function Connection_Property (which returns
> the connection id, given the parameter 'number') ,but
> without success so far. Can anyone tell me how to
> retrieve the connection id in PostGre?
> Thanks in advance,
> Emil
I think pg_backend_pid() and pg_stat_get_backend_pid(integeger)
are your best bets.
>
>
>
> __________________________________
> Start your day with Yahoo! - Make it your home page!
> http://www.yahoo.com/r/hs
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
--
-Achilleus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: achill@matrix.gatewaynet.com, zsevgymko@yahoo.com
Subject: Re: Sybase Connection_Property('number') equivalent in PostGre
In-Reply-To: <Pine.LNX.4.44.0512021235400.10815-100000@matrix.gatewaynet.com>
References: <20051202090419.351.qmail@web54301.mail.yahoo.com> <Pine.LNX.4.44.0512021235400.10815-100000@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox