pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedever growing pkey files
5+ messages / 2 participants
[nested] [flat]
* ever growing pkey files
@ 2001-08-14 14:50 matthew.copeland@honeywell.com
2001-08-14 17:58 ` Re: ever growing pkey files Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: matthew.copeland@honeywell.com @ 2001-08-14 14:50 UTC (permalink / raw)
To: pgsql-admin
I have a database that has two tables. One of the tables gets changed
very often. (like every 5 minutes). The values that where in the table
are replaced with a new set of values with new unique keys. Now, I vacuum
these tables fairly often, but the pkey files for these tables never seem
to get smaller. They just keep growing. What do I have to do to make the
pkey files flush there extra blocks?
PostgreSQL version 7.0.3 running under Linux.
Matthew M. Copeland
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: ever growing pkey files
2001-08-14 14:50 ever growing pkey files matthew.copeland@honeywell.com
@ 2001-08-14 17:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-08-14 19:56 ` Re: ever growing pkey files matthew.copeland@honeywell.com
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2001-08-14 17:58 UTC (permalink / raw)
To: matthew.copeland@honeywell.com; +Cc: pgsql-admin
matthew.copeland@honeywell.com writes:
> I have a database that has two tables. One of the tables gets changed
> very often. (like every 5 minutes). The values that where in the table
> are replaced with a new set of values with new unique keys. Now, I vacuum
> these tables fairly often, but the pkey files for these tables never seem
> to get smaller. They just keep growing. What do I have to do to make the
> pkey files flush there extra blocks?
Yeah, VACUUM doesn't shrink indexes presently (it's on the TODO
list...).
> PostgreSQL version 7.0.3 running under Linux.
You could try REINDEX to rebuild the indexes, but I'd recommend updating
to 7.1.2 (or soon, 7.1.3) first. I don't recall whether REINDEX is
available/trustworthy in 7.0.
A grottier solution is to DROP and re-CREATE the indexes.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: ever growing pkey files
2001-08-14 14:50 ever growing pkey files matthew.copeland@honeywell.com
2001-08-14 17:58 ` Re: ever growing pkey files Tom Lane <tgl@sss.pgh.pa.us>
@ 2001-08-14 19:56 ` matthew.copeland@honeywell.com
2001-08-14 20:10 ` Re: ever growing pkey files Tom Lane <tgl@sss.pgh.pa.us>
2001-08-15 14:04 ` Re: ever growing pkey files matthew.copeland@honeywell.com
0 siblings, 2 replies; 5+ messages in thread
From: matthew.copeland@honeywell.com @ 2001-08-14 19:56 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
> Yeah, VACUUM doesn't shrink indexes presently (it's on the TODO
> list...).
>
> > PostgreSQL version 7.0.3 running under Linux.
>
> You could try REINDEX to rebuild the indexes, but I'd recommend updating
> to 7.1.2 (or soon, 7.1.3) first. I don't recall whether REINDEX is
> available/trustworthy in 7.0.
>
> A grottier solution is to DROP and re-CREATE the indexes.
I can do that on a primary key? I didn't realize that. I tried switching
to PostgreSQL 7.1 when it first came out, but it now handles ansynchronous
notification differently to the point where my old code doesn't work
anymore. It mentioned something at the time about not having the feature
implemented or it being wrong or something. (when 7.1 first campe out, so
I don't quite remember.) Anyhow, I have to have that feature. Do you
know whether it is working again in the current 7.1.3? I will take a look
at it and see if I can get it working though.
Thanks for all the help,
Matthew M. Copeland
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: ever growing pkey files
2001-08-14 14:50 ever growing pkey files matthew.copeland@honeywell.com
2001-08-14 17:58 ` Re: ever growing pkey files Tom Lane <tgl@sss.pgh.pa.us>
2001-08-14 19:56 ` Re: ever growing pkey files matthew.copeland@honeywell.com
@ 2001-08-14 20:10 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 5+ messages in thread
From: Tom Lane @ 2001-08-14 20:10 UTC (permalink / raw)
To: matthew.copeland@honeywell.com; +Cc: pgsql-admin
matthew.copeland@honeywell.com writes:
> I tried switching
> to PostgreSQL 7.1 when it first came out, but it now handles ansynchronous
> notification differently to the point where my old code doesn't work
> anymore.
Uh ... what? I don't recall that we changed NOTIFY behavior in 7.1.
There's certainly no outstanding bug report in that area; if you're
unhappy, you'd best file a complaint rather than waiting for something
to happen magically.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: ever growing pkey files
2001-08-14 14:50 ever growing pkey files matthew.copeland@honeywell.com
2001-08-14 17:58 ` Re: ever growing pkey files Tom Lane <tgl@sss.pgh.pa.us>
2001-08-14 19:56 ` Re: ever growing pkey files matthew.copeland@honeywell.com
@ 2001-08-15 14:04 ` matthew.copeland@honeywell.com
1 sibling, 0 replies; 5+ messages in thread
From: matthew.copeland@honeywell.com @ 2001-08-15 14:04 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
Well, I reindexed on 7.0.3, and that worked. I also upgraded, and that
worked with my code also, so ignore the not working comment.
Thanks for the help,
Matthew M. Copeland
On Tue, 14 Aug 2001 matthew.copeland@honeywell.com wrote:
> > Yeah, VACUUM doesn't shrink indexes presently (it's on the TODO
> > list...).
> >
> > > PostgreSQL version 7.0.3 running under Linux.
> >
> > You could try REINDEX to rebuild the indexes, but I'd recommend updating
> > to 7.1.2 (or soon, 7.1.3) first. I don't recall whether REINDEX is
> > available/trustworthy in 7.0.
> >
> > A grottier solution is to DROP and re-CREATE the indexes.
>
> I can do that on a primary key? I didn't realize that. I tried switching
> to PostgreSQL 7.1 when it first came out, but it now handles ansynchronous
> notification differently to the point where my old code doesn't work
> anymore. It mentioned something at the time about not having the feature
> implemented or it being wrong or something. (when 7.1 first campe out, so
> I don't quite remember.) Anyhow, I have to have that feature. Do you
> know whether it is working again in the current 7.1.3? I will take a look
> at it and see if I can get it working though.
>
> Thanks for all the help,
>
> Matthew M. Copeland
>
>
> ---------------------------(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
>
--
You may be sure that when a man begins to call himself a "realist," he
is preparing to do something he is secretly ashamed of doing.
-- Sydney Harris
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2001-08-15 14:04 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-08-14 14:50 ever growing pkey files matthew.copeland@honeywell.com
2001-08-14 17:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-08-14 19:56 ` matthew.copeland@honeywell.com
2001-08-14 20:10 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-08-15 14:04 ` matthew.copeland@honeywell.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