Skip site navigation (1) Skip section navigation (2)

Re: PostgreSQL GIT mirror status

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Daniel Farina <drfarina(at)acm(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-www(at)postgresql(dot)org, Jeff Davis <pgsql(at)j-davis(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Subject: Re: PostgreSQL GIT mirror status
Date: 2009-01-09 11:06:14
Message-ID: 49672FA6.10007@enterprisedb.com (view raw or flat)
Thread:
Lists: pgsql-www
Daniel Farina wrote:
> Secondly, 'git gc' has the '--aggressive' option. This used to do
> something really misleading, but I'm pretty sure it's fixed 'now',
> although I couldn't point you to an exact version. This makes life
> easy: just run 'git gc --aggressive' once in a long while. Given the
> current data it seems that the pack should be about 100M
> afterwards.

Wow, that's impressive! How long does a "git gc --agressive" run take?

> Thirdly, I found a lot of garbage. There was no garbage when I used
> wget to fetch a copy of repo (and over 600000 objects) but then when I
> pushed to a git clone git chose only to send something in the 300000
> object range. I suspect the difference is in the reflog or something,
> but I still can't explain why there was so much garbage that's not
> connected to branches or tags. Regardless, all the branches seem
> present and 'git fsck' says everything is okay. I'm trying to figure
> out where those extra objects are reachable from, but that's mostly
> for completeness -- everything seems to be working convincingly.

That could be because of the duplicated history we had there in 
December, that I then fixed. I reset the branches to just before the 
screwup, and then ran fromcvs to catch up with CVS HEAD again. That 
duplicated history is probably still there, but nor reachable from any 
branches or tags.

Should we run "git prune" to get rid of the garbage?

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

In response to

Responses

pgsql-www by date

Next:From: EvgeniyDate: 2009-01-09 11:22:48
Subject: BUG #4607: Site bug
Previous:From: Daniel FarinaDate: 2009-01-09 10:55:17
Subject: Re: PostgreSQL GIT mirror status

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group