From: | Ygor Degani <ygordegani(at)gmail(dot)com> |
---|---|
To: | Greg Stark <gsstark(at)mit(dot)edu> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Duplicated Keys in PITR |
Date: | 2009-08-20 19:22:39 |
Message-ID: | 4bb7c9f80908201222g31fd8e11ldb14b0647d623e69@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> How are your duplicate keys being generated? Is there a unique index on
them?
They are generated during recover. Yes, there is a unique index.
> Are the keys there if you use a sequential scan or only if you use an
> index to look them up?
I used a sequential scan.
>Have you been running 8.3.5 the whole time or were you running older
>8.3 releases for some of the time? Why aren't you running 8.3.7 --
>there are known bugs in 8.3.5 though none which look to be related.
I can migrate for version 8.3.7, but it will fix my problem?
>How long has the archive been running, is it feasible to give someone
>the backup and complete archives going back to when it was taken?
At least 6 months. This database has 270GB. Soon, it is impossible to use
pg_dump, because the restore takes around 22 hours to finish.
>Can you dump the pages with the bad keys using the pageinspect contrib
>module? Do you need instructions on how to do that?
Yes. I do.
Thanks,
Ygor Degani
2009/8/20 Greg Stark <gsstark(at)mit(dot)edu>
> On Thu, Aug 20, 2009 at 4:13 PM, Ygor Degani<ygordegani(at)gmail(dot)com> wrote:
> > When recover a database using a continuous archive backup, i detected
> some
> > duplicated keys. This there isn't in the production database.
> > I use postgres-8.3.5.
> > anyone know why this happens?
>
> Uhm, well it's not supposed to. Do you have more information?
>
> How are your duplicate keys being generated? Is there a unique index on
> them?
>
> Are the keys there if you use a sequential scan or only if you use an
> index to look them up?
>
> Have you been running 8.3.5 the whole time or were you running older
> 8.3 releases for some of the time? Why aren't you running 8.3.7 --
> there are known bugs in 8.3.5 though none which look to be related.
>
> How long has the archive been running, is it feasible to give someone
> the backup and complete archives going back to when it was taken?
>
> Can you dump the pages with the bad keys using the pageinspect contrib
> module? Do you need instructions on how to do that?
>
>
>
> --
> greg
> http://mit.edu/~gsstark/resume.pdf <http://mit.edu/%7Egsstark/resume.pdf>
>
--
Ygor Degani
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2009-08-20 20:17:49 | UPDATE ... SET (a, b, c) = (expr) |
Previous Message | Alvaro Herrera | 2009-08-20 19:06:04 | Re: GRANT ON ALL IN schema |