getpid() function

Bruce Momjian <pgman@candle.pha.pa.us>

From: Bruce Momjian <pgman@candle.pha.pa.us>
To: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Date: 2002-07-31T00:40:13Z
Lists: pgsql-hackers, pgsql-general

Attachments

I have implemented this TODO item:

	* Add getpid() function to backend

There were a large number of pg_stat functions that access pids and
backends slots so I added it there:
	
	test=> select pg_stat_get_backend_mypid();
	 pg_stat_get_backend_mypid 
	---------------------------
	                      2757
	(1 row)

Applied.

-- 
  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