getpid() function

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: getpid() function
Date: 2002-07-31 00:40:13
Message-ID: 200207310040.g6V0eDU03264@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Attachment Content-Type Size
unknown_filename text/plain 2.1 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2002-07-31 01:17:58 Re: getpid() function
Previous Message Martijn van Oosterhout 2002-07-31 00:26:37 Re: sorting by week?

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew T. O'Connor 2002-07-31 01:09:01 Re: Why is MySQL more chosen over PostgreSQL?
Previous Message Curt Sampson 2002-07-31 00:09:28 Re: WAL file location