Thread: Unique ID of connection

Unique ID of connection

From
Trurl McByte
Date:
Hi all!

Very usefull sample:

 CREATE FUNCTION getpid () returns int4 as '/lib/libc.so.6' LANGUAGE 'C';
 SELECT getpid();

;))


P.S. Only for Linux!


--
      Trurl McByte, Capt. of StasisCruiser "Prince"
|InterNIC: AR3200                   RIPE: AR1627-RIPE|
|--98 C3 78 8E 90 E3 01 35  87 1F 3F EF FD 6D 84 B3--|


Re: Unique ID of connection

From
Bruce Momjian
Date:
Now there is a truly great, concise example.

>
> Hi all!
>
> Very usefull sample:
>
>  CREATE FUNCTION getpid () returns int4 as '/lib/libc.so.6' LANGUAGE 'C';
>  SELECT getpid();
>
> ;))
>
>
> P.S. Only for Linux!
>
>
> --
>       Trurl McByte, Capt. of StasisCruiser "Prince"
> |InterNIC: AR3200                   RIPE: AR1627-RIPE|
> |--98 C3 78 8E 90 E3 01 35  87 1F 3F EF FD 6D 84 B3--|
>
>


--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026