pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Vaccuum/Analyze
6+ messages / 4 participants
[nested] [flat]

* Vaccuum/Analyze
@ 2002-09-12 14:40 Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com>
  2002-09-12 19:03 ` Re: Vaccuum/Analyze Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 6+ messages in thread

From: Brickley Jeff-RA9607 @ 2002-09-12 14:40 UTC (permalink / raw)
  To: pgsql-admin

I am running PostgreSQL 7.2.1 on a Sun 5.8 OS.  I have a database named metrics with 4 tables.  A few of the tables contain approx. 10 million records. When I run a vaccuum/analyze with the following command:
vacuumdb -d metrics -z -v
the process 'hangs' for several hours and then an error message appears that says:
vacuumdb: vacuum metrics failed.
ERROR: RelationClearRelation: Relation 16599 deleted while still in use. 
 
Watching the stdout I see the process is 'hanging' on analyzing one of my tables called file_dup.  This table has no data in it.   What strikes me as odd is that I ran vacuumdb against the file_dup table itself:
(vacuumdb -z -v -t 'file_dup' metrics) and it completed within seconds without errors.  
 
I tried to run the vacuumdb against the entire database again and it 'hung' in the same place.
 
Any suggestions?
 
Jeff Brickley

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

* Re: Vaccuum/Analyze
  2002-09-12 14:40 Vaccuum/Analyze Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com>
@ 2002-09-12 19:03 ` Tom Lane <tgl@sss.pgh.pa.us>
  2002-09-12 20:44   ` Re: Vaccuum/Analyze Mel Jamero <mel@gmanmi.tv>
  2002-09-13 01:09   ` Re: Vaccuum/Analyze Naomi Walker <nwalker@eldocomp.com>
  0 siblings, 2 replies; 6+ messages in thread

From: Tom Lane @ 2002-09-12 19:03 UTC (permalink / raw)
  To: Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com>; +Cc: pgsql-admin

Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com> writes:
> I am running PostgreSQL 7.2.1 on a Sun 5.8 OS.  I have a database named metrics with 4 tables.  A few of the tables contain approx. 10 million records. When I run a vaccuum/analyze with the following command:
> vacuumdb -d metrics -z -v
> the process 'hangs' for several hours and then an error message appears that says:
> vacuumdb: vacuum metrics failed.
> ERROR: RelationClearRelation: Relation 16599 deleted while still in use. 
 
> Watching the stdout I see the process is 'hanging' on analyzing one of my tables called file_dup.  This table has no data in it.   What strikes me as odd is that I ran vacuumdb against the file_dup table itself:
> (vacuumdb -z -v -t 'file_dup' metrics) and it completed within seconds without errors.  

I'd be inclined to wonder what else is accessing that database.  Could
some other process be sitting with an open transaction that has that
table locked?

			regards, tom lane



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

* Re: Vaccuum/Analyze
  2002-09-12 14:40 Vaccuum/Analyze Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com>
  2002-09-12 19:03 ` Re: Vaccuum/Analyze Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-09-12 20:44   ` Mel Jamero <mel@gmanmi.tv>
  2002-09-13 04:30     ` Re: Vaccuum/Analyze Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 6+ messages in thread

From: Mel Jamero @ 2002-09-12 20:44 UTC (permalink / raw)
  To: pgsql-admin


hi!

i get these notices everytime i perform a vacuum:

NOTICE:  RegisterSharedInvalid: SI buffer overflow
NOTICE:  InvalidateSharedInvalid: cache state reset
NOTICE:  RegisterSharedInvalid: SI buffer overflow
NOTICE:  InvalidateSharedInvalid: cache state reset

could anyone give me some insights please?

thanks in advance,

MEL



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

* Re: Vaccuum/Analyze
  2002-09-12 14:40 Vaccuum/Analyze Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com>
  2002-09-12 19:03 ` Re: Vaccuum/Analyze Tom Lane <tgl@sss.pgh.pa.us>
  2002-09-12 20:44   ` Re: Vaccuum/Analyze Mel Jamero <mel@gmanmi.tv>
@ 2002-09-13 04:30     ` Tom Lane <tgl@sss.pgh.pa.us>
  2002-09-13 19:11       ` Re: Vaccuum/Analyze Mel Jamero <mel@gmanmi.tv>
  0 siblings, 1 reply; 6+ messages in thread

From: Tom Lane @ 2002-09-13 04:30 UTC (permalink / raw)
  To: mel@gmanmi.tv; +Cc: pgsql-admin

"Mel Jamero" <mel@gmanmi.tv> writes:
> i get these notices everytime i perform a vacuum:

> NOTICE:  RegisterSharedInvalid: SI buffer overflow
> NOTICE:  InvalidateSharedInvalid: cache state reset
> NOTICE:  RegisterSharedInvalid: SI buffer overflow
> NOTICE:  InvalidateSharedInvalid: cache state reset

> could anyone give me some insights please?

(a) these are not particularly dangerous

(b) you are running an obsolete Postgres version; those messages were
downgraded to DEBUG level in 7.2

(c) you have clients that are laying about holding open transactions,
which is not good for concurrency.

First recommendation is to update, second is to see if you can't fix
the clients so that their idle state isn't holding an open transaction.

			regards, tom lane



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

* Re: Vaccuum/Analyze
  2002-09-12 14:40 Vaccuum/Analyze Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com>
  2002-09-12 19:03 ` Re: Vaccuum/Analyze Tom Lane <tgl@sss.pgh.pa.us>
  2002-09-12 20:44   ` Re: Vaccuum/Analyze Mel Jamero <mel@gmanmi.tv>
  2002-09-13 04:30     ` Re: Vaccuum/Analyze Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-09-13 19:11       ` Mel Jamero <mel@gmanmi.tv>
  0 siblings, 0 replies; 6+ messages in thread

From: Mel Jamero @ 2002-09-13 19:11 UTC (permalink / raw)
  To: 'Tom Lane' <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

hi tom,

thanks for your reply.

i've seen these notices quite a bit so i'm convinced they're not particulary
dangerous.

we're using 7.1.3-2 so i'll take your advice and upgrade to 7.2 in the near
future.

C programs are the main clients and a few TCL pages on AOLserver; i'll have
to check there regarding their idle state..

thanks again,

mel jamero

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Friday, September 13, 2002 12:30 PM
To: mel@gmanmi.tv
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Vaccuum/Analyze


"Mel Jamero" <mel@gmanmi.tv> writes:
> i get these notices everytime i perform a vacuum:

> NOTICE:  RegisterSharedInvalid: SI buffer overflow
> NOTICE:  InvalidateSharedInvalid: cache state reset
> NOTICE:  RegisterSharedInvalid: SI buffer overflow
> NOTICE:  InvalidateSharedInvalid: cache state reset

> could anyone give me some insights please?

(a) these are not particularly dangerous

(b) you are running an obsolete Postgres version; those messages were
downgraded to DEBUG level in 7.2

(c) you have clients that are laying about holding open transactions,
which is not good for concurrency.

First recommendation is to update, second is to see if you can't fix
the clients so that their idle state isn't holding an open transaction.

			regards, tom lane




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

* Re: Vaccuum/Analyze
  2002-09-12 14:40 Vaccuum/Analyze Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com>
  2002-09-12 19:03 ` Re: Vaccuum/Analyze Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-09-13 01:09   ` Naomi Walker <nwalker@eldocomp.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Naomi Walker @ 2002-09-13 01:09 UTC (permalink / raw)
  To: mel@gmanmi.tv; pgsql-admin


>

I get these as well, and was told not to worry about them.

>hi!
>
>i get these notices everytime i perform a vacuum:
>
>NOTICE:  RegisterSharedInvalid: SI buffer overflow
>NOTICE:  InvalidateSharedInvalid: cache state reset
>NOTICE:  RegisterSharedInvalid: SI buffer overflow
>NOTICE:  InvalidateSharedInvalid: cache state reset
>
>could anyone give me some insights please?
>
>thanks in advance,
>
>MEL
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo@postgresql.org so that your
>message can get through to the mailing list cleanly




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


end of thread, other threads:[~2002-09-13 19:11 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-09-12 14:40 Vaccuum/Analyze Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com>
2002-09-12 19:03 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-09-12 20:44   ` Mel Jamero <mel@gmanmi.tv>
2002-09-13 04:30     ` Tom Lane <tgl@sss.pgh.pa.us>
2002-09-13 19:11       ` Mel Jamero <mel@gmanmi.tv>
2002-09-13 01:09   ` Naomi Walker <nwalker@eldocomp.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