From: | FOUTE K(dot) Jaurès <jauresfoute(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: PostgreSQL 12 - ERROR: invalid attribute number 2 for ad_user_pkey - Urgent |
Date: | 2021-09-01 16:59:05 |
Message-ID: | CAHQ1jffcF3Jv0j1hGWp=kVo4a8sOu96SrC7WZSmAQwfL+ZRQMw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
After running: REINDEX TABLE pg_catalog.pg_attribute ;
Le mer. 1 sept. 2021 à 17:54, FOUTE K. Jaurès <jauresfoute(at)gmail(dot)com> a
écrit :
> Hello Tom,
>
> Thank You for your Answer. It solves the problem.
> Thank you very much for your support.
>
> Le mer. 1 sept. 2021 à 16:46, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> a écrit :
>
>> =?UTF-8?Q?FOUTE_K=2E_Jaur=C3=A8s?= <jauresfoute(at)gmail(dot)com> writes:
>> > For all table except the pg_catalo table.
>> > The dump on the database is not possible too. (pg_dump: error: invalid
>> > column numbering in table "xxxxxx")
>>
>> It seems that pg_attribute is messed up. If you are really lucky,
>> it might be only a problem in pg_attribute's indexes, in which case
>> reindexing pg_attribute would fix it. However, I recommend proceeding
>> on the assumption that you have possibly-irrecoverable damage. Before
>> you do ANYTHING, make a complete filesystem-level backup of the cluster
>> (stop the server, then do "tar cf backup.tar $PGDATA" or equivalent).
>>
>> Even if reindexing pg_attribute seems to fix it, I'd counsel then doing
>> a pg_dump and restore, in hopes of curing any other problems that may
>> have stemmed from the same root cause.
>>
>> Speaking of root cause, have you had any crashes lately? Is your
>> Postgres up-to-date? How about the underlying OS?
>>
>> regards, tom lane
>>
>
>
> --
> Jaurès FOUTE
>
--
Jaurès FOUTE
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew Tice | 2021-09-01 20:34:48 | datfrozenxid not dropping after vacuum |
Previous Message | FOUTE K. Jaurès | 2021-09-01 16:54:29 | Re: PostgreSQL 12 - ERROR: invalid attribute number 2 for ad_user_pkey - Urgent |