From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
---|---|
To: | "Alvaro Herrera" <alvherre(at)commandprompt(dot)com> |
Cc: | "Diego Barreto" <diegob(at)allytech(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: ayuda |
Date: | 2007-08-07 23:42:09 |
Message-ID: | c2d9e70e0708071642x2dd4b02akd5ac1caf3ca7c9a7@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On 8/2/07, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
>
> Uff. Creo que el problema es que los catalogos de sistema pasaron mucho
> tiempo sin vacuum. No logro entender por que el sistema no entro en
> estado catatonico (negarse a aceptar conexiones) antes de que pasara
> algo; se supone que hay codigo en 8.1 nuevo para eso :-(
>
eso es porque esta usando 8.0.x... :(
sera que algun dia actualizara?
ok. recapitulemos...
--extracto del mail original ---
template0=# select datname, age(datfrozenxid), datfrozenxid,
current_date, current_time FROM pg_database;
select datname, age(datfrozenxid), datfrozenxid, current_date,
current_time FROM pg_database;
datname | age | datfrozenxid | date | timetz
--------------+-------------+--------------+------------+--------------------
template0 | -1272184968 | 553 | 2007-08-02 | 12:04:07.589532+00
template0 | 1073741910 | 1949040971 | 2007-08-02 | 12:04:07.589532+00
template1 | 495 | 3022782386 | 2007-08-02 | 12:04:07.589532+00
sapo | 1944943099 | 1077839782 | 2007-08-02 | 12:04:07.589532+00
dbase | 1944942302 | 1077840579 | 2007-08-02 | 12:04:07.589532+00
datositio | 1073742448 | 1949040433 | 2007-08-02 | 12:04:07.589532+00
(6 rows)
quise borrar ese registro asi
template0=# delete from pg_database where datvacuumxid=553;
delete from pg_database where datvacuumxid=553;
DELETE 0
--- fin extracto ---
vuelve a ejecutar el mismo select del extracto pero cambia
current_date y current_time por algo mas util como xmin y xmax... ahhh
y añade ctid
SELECT datname, age(datfrozenxid), datfrozenxid, xmin, xmax, ctid
FROM pg_database;
(la verdad, no se que queria saber alvaro de pg_shadow pero me sirvio
para saber que estas en 8.0)
imagino que donde dices "datvacuumxid" quisiste decir "datfrozenxid"
--
Atentamente,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook
From | Date | Subject | |
---|---|---|---|
Next Message | Guido Barosio | 2007-08-08 00:02:34 | roadmap postgresql |
Previous Message | Miguel Panuera | 2007-08-07 23:16:22 | Re: como devolver una consulta modificada?¿ |