autovacuum daemon

Started by Abdul Rahmanabout 17 years ago12 messagesgeneral
Jump to latest
#1Abdul Rahman
abr_ora@yahoo.com

Deal All,

I have set postgresql.conf for autovacuum and need to know weather the process is running/working or not.

Regards,
Avdul Rehman.

In reply to: Abdul Rahman (#1)
Re: autovacuum daemon

On 21/01/2009 07:47, Abdul Rahman wrote:

I have set postgresql.conf for autovacuum and need to know weather
the process is running/working or not.

ps ax | grep postgres

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

In reply to: Raymond O'Donnell (#2)
Re: autovacuum daemon

On 21/01/2009 14:57, Raymond O'Donnell wrote:

On 21/01/2009 07:47, Abdul Rahman wrote:

I have set postgresql.conf for autovacuum and need to know weather
the process is running/working or not.

ps ax | grep postgres

Also, in psql:

postgres=# show autovacuum;
autovacuum
------------
on
(1 row)

HTH,

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

#4Grzegorz Jaśkiewicz
gryzman@gmail.com
In reply to: Abdul Rahman (#1)
Re: autovacuum daemon

select * from pg_autovacuum;

--
GJ

#5Andreas Wenk
a.wenk@netzmeister-st-pauli.de
In reply to: Abdul Rahman (#1)
Re: autovacuum daemon

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Abdul Rahman schrieb:

Deal All,

I have set postgresql.conf for autovacuum and need to know weather the
process is running/working or not.

Hi Abdul,

1. you could check the log file

2. select setting from pg_settings where name = 'autovacuum';

Cheers

Andy

- -- Andreas Wenk St.Pauli - Hamburg - Germany

Regards,
Avdul Rehman.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJdzk6Va7znmSP9AwRAk2nAJ9eeGtXGZbyMoPFZwukmg0T/4sWtgCg28iN
B6m0nEgLALvIv2ZGZt9syvs=
=4zR5
-----END PGP SIGNATURE-----

#6Sam Mason
sam@samason.me.uk
In reply to: Grzegorz Jaśkiewicz (#4)
Re: autovacuum daemon

[ Grzegorz, please include some context ]

On Wed, Jan 21, 2009 at 03:01:39PM +0000, Grzegorz Jaaakiewicz wrote:

Avdul Rehman wrote:

I have set postgresql.conf for autovacuum and need to know weather
the process is running/working or not.

select * from pg_autovacuum;

This won't do what the OP was asking for; pg_autovacuum only records
non-default autovacuum parameters where they have been set by the
user/admin. More details here:

http://www.postgresql.org/docs/current/static/catalog-pg-autovacuum.html

--
Sam http://samason.me.uk/

#7Abdul Rahman
abr_ora@yahoo.com
In reply to: Sam Mason (#6)
Re: autovacuum daemon

Dear All,

Thanks for fruitful replies. But I checked it by running ANALYZE on psql. First updated 10000 rows in a table and got certain number of dead rows in result of ANALYZE. After few minutes the number of dead rows becomes zero which assured me that AUTOVACUUM is running in background.

Now, kindly let me know the detail about the solution send by Ray, i.e.

ps ax | grep postgres

Regards,
Abdul Rehman.

#8Abdul Rahman
abr_ora@yahoo.com
In reply to: Abdul Rahman (#7)
Re: autovacuum daemon

Thanks Ray,

Your solution of using ps command is for Linux but I am using WinXp. That is why it confused me.

Regards,
Abdul Rehman.

In reply to: Abdul Rahman (#8)
Re: autovacuum daemon

On 22/01/2009 07:15, Abdul Rahman wrote:

Your solution of using ps command is for Linux but I am using WinXp.
That is why it confused me.

No problem! :-) It occurred to me after I sent the email that you might
not be on Linux....

It's a good idea, when posting questions, to include as much background
detail as you can - platform, PG version, etc etc - it helps you get an
answer to your specific problem more quickly, as it saves back-and-forth
questions about this stuff.

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

#10Thomas Kellerer
spam_eater@gmx.net
In reply to: Abdul Rahman (#7)
Re: autovacuum daemon

Abdul Rahman wrote on 22.01.2009 07:06:

Now, kindly let me know the detail about the solution send by Ray, i.e.

ps ax | grep postgres

For WindowsXP the above command can be written as:

tasklist /v /fi "imagename eq postgres.exe"

Thomas

In reply to: Thomas Kellerer (#10)
Re: autovacuum daemon

On 25/01/2009 13:37, Thomas Kellerer wrote:

Abdul Rahman wrote on 22.01.2009 07:06:

Now, kindly let me know the detail about the solution send by Ray, i.e.

ps ax | grep postgres

For WindowsXP the above command can be written as:

tasklist /v /fi "imagename eq postgres.exe"

Cool! I didn't know that one. Must R some more FMs.... :-)

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

#12Thomas Kellerer
spam_eater@gmx.net
In reply to: Raymond O'Donnell (#11)
Re: autovacuum daemon

Raymond O'Donnell wrote on 25.01.2009 19:28:

For WindowsXP the above command can be written as:

tasklist /v /fi "imagename eq postgres.exe"

Cool! I didn't know that one. Must R some more FMs.... :-)

No need for manuals :)

Just enter "takslist /?"

Regards
Thomas