Re: Sybase Connection_Property('number') equivalent in PostGre - Mailing list pgsql-sql

From Achilleus Mantzios
Subject Re: Sybase Connection_Property('number') equivalent in PostGre
Date
Msg-id Pine.LNX.4.44.0512021235400.10815-100000@matrix.gatewaynet.com
Whole thread Raw
In response to Sybase Connection_Property('number') equivalent in PostGre ?  (Emil Rachovsky <zsevgymko@yahoo.com>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Emil Rachovsky
Date:
Subject: Sybase Connection_Property('number') equivalent in PostGre ?
Next
From: Mark Fenbers
Date:
Subject: Just 1 in a series...