Précédent   Forum du club des développeurs et IT Pro > Bases de données > PostgreSQL > Administration
Administration Forum d'entraide sur l'administration de PostgreSQL : utilisateurs, privilèges, etc.
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 28/03/2012, 18h32   #1
Michael REMY
Membre éclairé
 
Inscription : avril 2009
Messages : 674
Détails du profil
Informations personnelles :
Âge : 36
Localisation : France, Somme (Picardie)

Informations forums :
Inscription : avril 2009
Messages : 674
Points : 399
Points : 399
Par défaut problème avec pg_clog , table cruciale inaccessible, comment résoudre

bonjour,

Lors d'un reindex ou vacuum sur une table précise, j'ai une la conenxion à pg qui a échoué.
au relancement, lorsque j'essaie d'aller dans la talbe (un simple select) voire un dump j'ai ce message d'erreur :

Citation:
pg_dump: Message d'erreur du serveur : ERREUR: n'a pas pu accéder au statut de la transaction 21872912
DETAIL: n'a pas pu ouvrir le fichier « pg_clog/0014 » : Aucun fichier ou répertoire de ce type
comment résoudre ce problème ?

j'ai bien un dump d'hier mais il serait insuffisant, largement insufissant car la table contient le travail de la journée de notre équipe. c'est tout un travail de planification.

Etrangement on ne trouve pas bc pd'aide sur les probleme liés à de pg_clog

j'espère qu'une ame va m'aider.

d'avance merci.
Michael REMY est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/03/2012, 20h41   #2
Michael REMY
Membre éclairé
 
Inscription : avril 2009
Messages : 674
Détails du profil
Informations personnelles :
Âge : 36
Localisation : France, Somme (Picardie)

Informations forums :
Inscription : avril 2009
Messages : 674
Points : 399
Points : 399
bonsoir

bon toujours pas de réponse.
j'ai du mettre le backup d'hier. vraiment la cata quand-même (pour moi).

j'avais une piste :
http://www.issociate.de/board/goto/1339668/Re

mais ça n'a pas marché dans mon cas.

pour info :

Citation:
-----=_Part_4472_12282173.1149234087932
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Joao,

If you had send the Email to pgsql-admin mailing list you would have got a
faster answer to ur query..

here is what i managed to do:-
1. I deleted the
$ls -lart the pg_clog folder
total 756
-rw------- 1 postgres users 262144 2006-04-10 17:16 0001
-rw------- 1 postgres users 262144 2006-04-10 17:16 0000
drwx------ 2 postgres users 4096 2006-04-10 17:16 .
-rw------- 1 postgres users 229376 2006-05-31 18:17 0002
drwx------ 10 postgres users 4096 2006-06-02 12:22 ..
$ mv 0002 ../
$ ls
0000 0001
$psql regression
regression=# select count(1) from accounts;
ERROR: could not access status of transaction 2225656
DETAIL: could not open file "pg_clog/0002": No such file or directory
regression=# \q

This Error came since the 0002 file from the pg_clog folder was missing.
Since the logs are missing from pg_clog folder can perfom pg_resetxlogs to
reset the logs and bring up the database.

$ /usr/local/pgsql/bin/pg_ctl -D /newdisk/postgres/data -l
/newdisk/postgres/data_log stop
waiting for postmaster to shut down... done
postmaster stopped

$ /usr/local/pgsql/bin/pg_resetxlog -x 2999800 /newdisk/postgres/data
Transaction log reset

The Value 2999800 u can get if u see the postgresql output file during
startup or using
grep "next transaction ID" /newdisk/postgres/data_log

than did the following:-
/usr/local/pgsql/bin/psql regression

regression=# select count(1) from accounts;
count
---------
1000001
(1 row)

regression=# \q
You can get more info from
http://unix.business.utah.edu/doc/ap.../postgres/post gres-html/app-pgresetxlog.html

Hope this gives u some usefull information in solving ur recovery condition.

~gourish

On 6/1/06, Joao <joao.junior [at] conab.gov.br> wrote:
>
> when i try do \d in psql on a table i get this message!
> this happens too when i try to run pg_dump...
>
> ERROR: could not access status of transaction 4294967295
> DETAIL: could not open file "pg_clog/0FFF": File or directory not found
>
>
> someone could help me?? PleasE!
>
>
>
>
>
Michael REMY est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 00h09.


 
 
 
 
Partenaires

Hébergement Web