pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Vacuum causing stange changes in DB
2+ messages / 2 participants
[nested] [flat]

* Vacuum causing stange changes in DB
@ 2001-01-16 01:33  andrew@ernie.2sheds.de
  0 siblings, 1 reply; 2+ messages in thread

From: andrew@ernie.2sheds.de @ 2001-01-16 01:33 UTC (permalink / raw)
  To: pgsql-admin

Hi!

What does Vacuumdb actually do!?

I have a perl script which inserts records based on certain
critera. I have noticed that if I do a vacuum WHILE my script
is running, that I get a message:

DBD::Pg::st execute failed: ERROR:  Unable to locate type oid 150 in catalog

I am starting postgres with '-i -B 4096 -o -F' options.

The other question is there any other way to get more performace
out of postgres? Vacuum seems to hang for a very long time on a
table with about 120,000 records (3 indexes), and causes all access
to this table to stop. I notice this slowdown when the postmaster
has reached its maximum memory limit... Before that it seems to
run quickly...

Regards

Andrew



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

* Re: Vacuum causing stange changes in DB
@ 2001-01-16 01:49  Tom Lane <tgl@sss.pgh.pa.us>
  parent: andrew@ernie.2sheds.de
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2001-01-16 01:49 UTC (permalink / raw)
  To: andrew@ernie.2sheds.de; +Cc: pgsql-admin

andrew@ernie.2sheds.de writes:
> I have a perl script which inserts records based on certain
> critera. I have noticed that if I do a vacuum WHILE my script
> is running, that I get a message:
> DBD::Pg::st execute failed: ERROR:  Unable to locate type oid 150 in catalog

Hmm ... considering that OID 150 is not a type at all (it's the function
int4ge), this would seem to indicate that garbage data is being picked
up and fed to a catalog lookup.  I suspect that what you are seeing is
an example of the infamous catalog-cache-entry-dropped-while-in-use
problem, and that the intended type-OID value is being picked up from a
catalog cache row that isn't there anymore due to vacuum having forced
it to be invalidated.

How reproducible is the behavior --- do you get an error consistently,
or only sometimes?  Do you always see exactly this same message, or does
it vary?  The less reproducible it is, the more I'd tend to think it's
the entry-drop bug.

The bug is fixed (at long last) for 7.1, but in prior versions the only
good workaround is not to vacuum system tables while there are other
active backends.

			regards, tom lane



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


end of thread, other threads:[~2001-01-16 01:49 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-16 01:33 Vacuum causing stange changes in DB andrew@ernie.2sheds.de
2001-01-16 01:49 ` Tom Lane <tgl@sss.pgh.pa.us>

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