pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedregression database
5+ messages / 2 participants
[nested] [flat]
* regression database
@ 2004-08-25 18:53 kris pal <kristhegambler@yahoo.com>
2004-08-26 02:00 ` Re: regression database Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: kris pal @ 2004-08-25 18:53 UTC (permalink / raw)
To: pgsql-admin
Hello,
I inherited a production Postgres database server which has a "Regression" database. The problem is that the size of the objects with in the Regression database are increasing so much that the database has grown into several GB. (Ex: pg_attribute and its index have grown into 2GB each and so on with few other objects as well).
I am not sure what the implications of completely deleting the 'Regression' database (I don't need the regression testing). I found the documentation on how to do the regression tests but can you tell me if there is a documentation of how to take care of these space issues for "Regression" database? Or is there a way to reduce the space used by 'Regression' database?
I would appreciate your help in resolving this issue.
thanks,
Kris.
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: regression database
2004-08-25 18:53 regression database kris pal <kristhegambler@yahoo.com>
@ 2004-08-26 02:00 ` Tom Lane <tgl@sss.pgh.pa.us>
2004-08-26 17:32 ` Re: regression database kris pal <kristhegambler@yahoo.com>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2004-08-26 02:00 UTC (permalink / raw)
To: kris pal <kristhegambler@yahoo.com>; +Cc: pgsql-admin
kris pal <kristhegambler@yahoo.com> writes:
> I am not sure what the implications of completely deleting the
> 'Regression' database (I don't need the regression testing).
Is it named "Regression" with a capital R? If so, that's not the DB that
is made by the standard regression tests --- that is called "regression".
There is not any reason not to drop the standard regression database, if
you're not using it. But there is no way that that DB would get that
large unless something in your installation is using it. I'd suggest
you find out what.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: regression database
2004-08-25 18:53 regression database kris pal <kristhegambler@yahoo.com>
2004-08-26 02:00 ` Re: regression database Tom Lane <tgl@sss.pgh.pa.us>
@ 2004-08-26 17:32 ` kris pal <kristhegambler@yahoo.com>
2004-08-26 21:15 ` Re: regression database kris pal <kristhegambler@yahoo.com>
0 siblings, 1 reply; 5+ messages in thread
From: kris pal @ 2004-08-26 17:32 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
Hi tom,
It is actually named 'regression'. I spoke with the person who build the server but apparently he is not well worsed in Postgres. He didn't explicitly create 'regression', I guess he selected some default installation options.
I am not sure how to find out what is causing the 'regression' database to increase in size. Its size is not due to the tables with in the 'regression' but due to the system tables like "pg_attribute" with in 'regression' database. If you chould point to a resource which would help me understand how this 'regression' database is handled internally (what activity writes to this database) that would be great.
Pls see below, the directory 2034862 corresponds to 'regression':
____________________________________________________
[postgres@dds base]$ du -sk /home/postgres/data/base/2034862
6236920 /home/postgres/data/base/2034862
[postgres@dds base]$
[postgres@dds base]$ cd /home/postgres/data/base/2034862
[postgres@dds 2034862]$ du -sk * | awk '{if ($1 > 512000) print $1" --> "$2}'
1049604 --> 1249 (over 1GB)
949484 --> 1249.1 (abt 1GB)
1049604 --> 16609
821104 --> 16609.1
The relname for the corresponding relfilenode:
--------------+-------------
pg_attribute | 1249
pg_attribute_relid_attnam_index | 16609
--------------+-------------
____________________________________________________
So am not sure why this thing is growing progressively.
Any feedback/ help is greatly appreciated.
thanks,
Kris Pal.
Tom Lane <tgl@sss.pgh.pa.us> wrote:kris pal writes:
> I am not sure what the implications of completely deleting the
> 'Regression' database (I don't need the regression testing).
Is it named "Regression" with a capital R? If so, that's not the DB that
is made by the standard regression tests --- that is called "regression".
There is not any reason not to drop the standard regression database, if
you're not using it. But there is no way that that DB would get that
large unless something in your installation is using it. I'd suggest
you find out what.
regards, tom lane
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: regression database
2004-08-25 18:53 regression database kris pal <kristhegambler@yahoo.com>
2004-08-26 02:00 ` Re: regression database Tom Lane <tgl@sss.pgh.pa.us>
2004-08-26 17:32 ` Re: regression database kris pal <kristhegambler@yahoo.com>
@ 2004-08-26 21:15 ` kris pal <kristhegambler@yahoo.com>
2004-08-27 03:29 ` Re: regression database Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: kris pal @ 2004-08-26 21:15 UTC (permalink / raw)
To: kris pal <kristhegambler@yahoo.com>; Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
Actually I just noticed something. Previously for some reason, I thought the data directory corresponded to 'regression'. But I double checked it now with oid2name and it corresponds to our main database say "dds".
But the issue still remains. In the sense that pg_attribute etc are still so huge and I have no idea why. This table is not the one we created in the schema.
thanks,
Kris Pal.
kris pal <kristhegambler@yahoo.com> wrote:Hi tom,
It is actually named 'regression'. I spoke with the person who build the server but apparently he is not well worsed in Postgres. He didn't explicitly create 'regression', I guess he selected some default installation options.
I am not sure how to find out what is causing the 'regression' database to increase in size. Its size is not due to the tables with in the 'regression' but due to the system tables like "pg_attribute" with in 'regression' database. If you chould point to a resource which would help me understand how this 'regression' database is handled internally (what activity writes to this database) that would be great.
Pls see below, the directory 2034862 corresponds to 'regression':
____________________________________________________
[postgres@dds base]$ du -sk /home/postgres/data/base/2034862
6236920 /home/postgres/data/base/2034862
[postgres@dds base]$
[postgres@dds base]$ cd /home/postgres/data/base/2034862
[postgres@dds 2034862]$ du -sk * | awk '{if ($1 > 512000) print $1" --> "$2}'
1049604 --> 1249 (over 1GB)
949484 --> 1249.1 (abt 1GB)
1049604 --> 16609
821104 --> 16609.1
The relname for the corresponding relfilenode:
--------------+-------------
pg_attribute | 1249
pg_attribute_relid_attnam_index | 16609
--------------+-------------
____________________________________________________
So am not sure why this thing is growing progressively.
Any feedback/ help is greatly appreciated.
thanks,
Kris Pal.
Tom Lane <tgl@sss.pgh.pa.us> wrote: kris pal writes:
> I am not sure what the implications of completely deleting the
> 'Regression' database (I don't need the regression testing).
Is it named "Regression" with a capital R? If so, that's not the DB that
is made by the standard regression tests --- that is called "regression".
There is not any reason not to drop the standard regression database, if
you're not using it. But there is no way that that DB would get that
large unless something in your installation is using it. I'd suggest
you find out what.
regards, tom lane
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: regression database
2004-08-25 18:53 regression database kris pal <kristhegambler@yahoo.com>
2004-08-26 02:00 ` Re: regression database Tom Lane <tgl@sss.pgh.pa.us>
2004-08-26 17:32 ` Re: regression database kris pal <kristhegambler@yahoo.com>
2004-08-26 21:15 ` Re: regression database kris pal <kristhegambler@yahoo.com>
@ 2004-08-27 03:29 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2004-08-27 03:29 UTC (permalink / raw)
To: kris pal <kristhegambler@yahoo.com>; +Cc: pgsql-admin
kris pal <kristhegambler@yahoo.com> writes:
> Actually I just noticed something. Previously for some reason, I
> thought the data directory corresponded to 'regression'. But I double
> checked it now with oid2name and it corresponds to our main database
> say "dds".
Ah, that makes more sense.
> But the issue still remains. In the sense that pg_attribute etc are
> still so huge and I have no idea why.
Probably because you've created and deleted a lot of tables (does your
app use temp tables a lot?). If you aren't good about vacuuming the
system catalogs then you're going to get table bloat. If you're using
something pre-7.4 then you may get index bloat even if you *are*
vacuuming regularly :-(.
My suggestions are to update to 7.4, if you're not there already
(if you are, you may need to do VACUUM FULL and REINDEX to get rid
of the bloat); then adopt a stricter regime of routine vacuuming.
And check your FSM settings.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2004-08-27 03:29 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-25 18:53 regression database kris pal <kristhegambler@yahoo.com>
2004-08-26 02:00 ` Tom Lane <tgl@sss.pgh.pa.us>
2004-08-26 17:32 ` kris pal <kristhegambler@yahoo.com>
2004-08-26 21:15 ` kris pal <kristhegambler@yahoo.com>
2004-08-27 03:29 ` 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