pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to find current running process
6+ messages / 5 participants
[nested] [flat]

* How to find current running process
@ 2006-05-04 18:06 Shivaji S <s.shivaji@rediffmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Shivaji S @ 2006-05-04 18:06 UTC (permalink / raw)
  To: pgsql-admin

  
Hi,


Is there any command to find current running threads/queries on postgres.

and how to find the uptime of my database.Please guide me

Regards,
Shivaji

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: How to find current running process
@ 2006-05-04 18:19 Tomeh, Husam <htomeh@firstam.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Tomeh, Husam @ 2006-05-04 18:19 UTC (permalink / raw)
  To: Shivaji S <s.shivaji@rediffmail.com>; pgsql-admin

You may use the pg_stat_activity view to find out what's running on the
database, ie. select * from pg_stat_activity ;
You may also use the pg_postmaster_start_time() function to find out
postmaster startup time, ie. select pg_postmaster_start_time() ;
 
----
 
    Husam 
    http://firstdba.googlepages.com
 

________________________________

From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Shivaji S
Sent: Thursday, May 04, 2006 11:06 AM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] How to find current running process




Hi,


Is there any command to find current running threads/queries on
postgres.

and how to find the uptime of my database.Please guide me

Regards,
Shivaji 



 
<http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/s
ignature-home.htm/1507191490@Middle5?PARTNER=3>  

**********************************************************************
This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged.  If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited.  If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.

Thank you.

                                   FADLD Tag
**********************************************************************

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: How to find current running process
@ 2006-05-04 20:21 Shivaji S <s.shivaji@rediffmail.com>
  2006-05-04 20:46 ` Re: How to find current running process Scott Marlowe <smarlowe@g2switchworks.com>
  2006-05-04 20:48 ` Re: How to find current running process Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 6+ messages in thread

From: Shivaji S @ 2006-05-04 20:21 UTC (permalink / raw)
  To: Tomeh,Husam <htomeh@firstam.com>; +Cc: pgsql-admin

tom thanks for the input ,but the below queries doesn't support for my postgres version 7.1.1 it shows the error 

ERROR:  Function 'pg_postmaster_start_time()' does not exist
Unable to identify a function that satisfies the given argument types
You may need to add explicit typecasts

Regards,
Shivaji

On Thu, 04 May 2006 Tomeh,Husam wrote :
>You may use the pg_stat_activity view to find out what's running on the
>database, ie. select * from pg_stat_activity ;
>You may also use the pg_postmaster_start_time() function to find out
>postmaster startup time, ie. select pg_postmaster_start_time() ;
>
>----
>
>     Husam
>     http://firstdba.googlepages.com
>
>
>________________________________
>
> From: pgsql-admin-owner@postgresql.org
>[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Shivaji S
>Sent: Thursday, May 04, 2006 11:06 AM
>To: pgsql-admin@postgresql.org
>Subject: [ADMIN] How to find current running process
>
>
>
>
>Hi,
>
>
>Is there any command to find current running threads/queries on
>postgres.
>
>and how to find the uptime of my database.Please guide me
>
>Regards,
>Shivaji
>
>
>
>
><http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/s
>ignature-home.htm/1507191490@Middle5?PARTNER=3>
>
>**********************************************************************
>This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged.  If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited.  If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.
>
>Thank you.
>
>                                    FADLD Tag
>**********************************************************************


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: How to find current running process
  2006-05-04 20:21 Re: How to find current running process Shivaji S <s.shivaji@rediffmail.com>
@ 2006-05-04 20:46 ` Scott Marlowe <smarlowe@g2switchworks.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Scott Marlowe @ 2006-05-04 20:46 UTC (permalink / raw)
  To: Shivaji S <s.shivaji@rediffmail.com>; +Cc: Tomeh,Husam <htomeh@firstam.com>; pgsql-admin

On Thu, 2006-05-04 at 15:21, Shivaji S wrote:
> tom thanks for the input ,but the below queries doesn't support for my
> postgres version 7.1.1 it shows the error 
> 
> ERROR:  Function 'pg_postmaster_start_time()' does not exist
> Unable to identify a function that satisfies the given argument types
> You may need to add explicit typecasts

That's a seriously OLD OLD OLD version of PostgreSQL.  It has known data
loss and stability bugs, as well as the deadly transaction wrap around
issue.  I'd recommend updating to at least 8.0.x where x is the highest
version currently out yet) or better yet go to 8.1.

You'll get no sympathy from anyone here if or when your 7.1.x database
acts up...



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: How to find current running process
  2006-05-04 20:21 Re: How to find current running process Shivaji S <s.shivaji@rediffmail.com>
@ 2006-05-04 20:48 ` Tom Lane <tgl@sss.pgh.pa.us>
  2006-05-05 08:47   ` Re: How to find current running process Steve Burrows <steve@jla.com>
  1 sibling, 1 reply; 6+ messages in thread

From: Tom Lane @ 2006-05-04 20:48 UTC (permalink / raw)
  To: Shivaji S <s.shivaji@rediffmail.com>; +Cc: Tomeh,Husam <htomeh@firstam.com>; pgsql-admin

"Shivaji S" <s.shivaji@rediffmail.com> writes:
> tom thanks for the input ,but the below queries doesn't support for my post=
> gres version 7.1.1

7.1.1?  Egad.  Update to something remotely modern, before it eats
your data.  The list of bugs fixed since then would curl your toes.
See for yourself:
http://developer.postgresql.org/docs/postgres/release.html

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: How to find current running process
  2006-05-04 20:21 Re: How to find current running process Shivaji S <s.shivaji@rediffmail.com>
  2006-05-04 20:48 ` Re: How to find current running process Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-05-05 08:47   ` Steve Burrows <steve@jla.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Steve Burrows @ 2006-05-05 08:47 UTC (permalink / raw)
  To: ; +Cc: Shivaji S <s.shivaji@rediffmail.com>; pgsql-admin

Got to echo this sentiment. I started using Postgresql commercially with 
version 6.5.  I used Postgresql 7.1 from its release until earlier this 
year when it ate my data warehouse! Didn't upgrade because the solution 
was stable for several years then the whole thing blew up with the 
wraparound problem. I had to work very hard and was very lucky to 
recover it all. Please upgrade ASAP, it will be unpleasant, you may have 
to adjust code in some applications because of syntax changes etc., but 
that's a lot cheaper than losing your data.

Steve

Tom Lane wrote:
> "Shivaji S" <s.shivaji@rediffmail.com> writes:
>   
>> tom thanks for the input ,but the below queries doesn't support for my post=
>> gres version 7.1.1
>>     
>
> 7.1.1?  Egad.  Update to something remotely modern, before it eats
> your data.  The list of bugs fixed since then would curl your toes.
> See for yourself:
> http://developer.postgresql.org/docs/postgres/release.html
>
> 			regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>   

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2006-05-05 08:47 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04 18:06 How to find current running process Shivaji S <s.shivaji@rediffmail.com>
2006-05-04 18:19 Re: How to find current running process Tomeh, Husam <htomeh@firstam.com>
2006-05-04 20:21 Re: How to find current running process Shivaji S <s.shivaji@rediffmail.com>
2006-05-04 20:46 ` Scott Marlowe <smarlowe@g2switchworks.com>
2006-05-04 20:48 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-05-05 08:47   ` Steve Burrows <steve@jla.com>

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