Gracias por tu pronta ayuda, pero no entiendo bien lo del DDL, cuando doy el comando esto es todo lo que sale: Puedes guiarme que debo hacer?.
Gracias [root@oip-20 ~]# ps aux | grep postgres postgres 2630 0.0 0.2 1301840 11024 ? S 12:00 0:00 /usr/pgsql-9.3/bin/postmaster -p 5433 -D /var/lib/pgsql/9.3/data postgres 2632 0.0 0.0 177544 556 ? Ds 12:00 0:01 postgres: logger process postgres 3388 0.0 0.6 1304392 24624 ? Ds 12:01 0:00 postgres: checkpointer process postgres 3389 0.0 0.0 1302344 1420 ? Ss 12:01 0:00 postgres: writer process postgres 3390 0.0 0.0 1302344 2644 ? Ds 12:01 0:00 postgres: wal writer process postgres 3391 0.0 0.0 1303304 1048 ? Ss 12:01 0:00 postgres: autovacuum launcher process postgres 3392 0.0 0.0 180716 1416 ? Ss 12:01 0:00 postgres: stats collector process postgres 3394 0.0 3.1 1405792 121504 ? Ds 12:01 0:02 postgres: postgres gpnext localhost.localdomain(33682) SELECT postgres 3406 0.0 3.7 1403244 145736 ? Ds 12:01 0:02 postgres: postgres gpnext localhost.localdomain(33746) SELECT postgres 3409 0.0 3.3 1401568 129172 ? Ds 12:01 0:02 postgres: postgres gpnext localhost.localdomain(33764) SELECT postgres 3415 0.1 2.4 1377016 97624 ? Ds 12:01 0:04 postgres: postgres gpnext localhost.localdomain(33802) SELECT postgres 3416 0.0 2.9 1383152 115820 ? Ds 12:01 0:02 postgres: postgres gpnext localhost.localdomain(33812) SELECT postgres 3422 0.1 3.6 1403568 140900 ? Ds 12:01 0:04 postgres: postgres gpnext localhost.localdomain(33832) SELECT postgres 3423 0.0 2.7 1377372 108304 ? Ss 12:01 0:03 postgres: postgres gpnext localhost.localdomain(33834) idle postgres 3430 0.1 4.3 1419668 169652 ? Ds 12:01 0:04 postgres: postgres gpnext localhost.localdomain(33856) SELECT postgres 3433 0.1 3.3 1405848 129904 ? Ds 12:01 0:05 postgres: postgres gpnext localhost.localdomain(33866) SELECT postgres 3442 0.1 3.6 1417892 140696 ? Ds 12:01 0:05 postgres: postgres gpnext localhost.localdomain(33876) SELECT postgres 3445 0.1 2.8 1374556 111248 ? Ds 12:01 0:04 postgres: postgres gpnext localhost.localdomain(33888) SELECT postgres 3447 0.0 4.0 1429364 159596 ? Ds 12:01 0:03 postgres: postgres gpnext localhost.localdomain(33900) SELECT postgres 3449 0.1 3.4 1403396 136304 ? Ds 12:01 0:03 postgres: postgres gpnext localhost.localdomain(33910) SELECT postgres 3471 0.0 3.4 1403680 133880 ? Ds 12:01 0:03 postgres: postgres gpnext localhost.localdomain(33954) SELECT postgres 3479 0.0 3.3 1403264 129808 ? Ds 12:01 0:03 postgres: postgres gpnext localhost.localdomain(33984) SELECT postgres 3481 0.1 4.2 1401164 164788 ? Ds 12:01 0:04 postgres: postgres gpnext localhost.localdomain(33988) SELECT postgres 3646 0.0 0.1 1324888 7304 ? Ss 12:02 0:01 postgres: autovacuum worker process gpnext postgres 3647 0.1 3.2 1403684 125364 ? Ds 12:02 0:04 postgres: postgres gpnext localhost.localdomain(34454) SELECT postgres 3655 0.0 0.1 1341960 7344 ? Ds 12:02 0:01 postgres: autovacuum worker process gpnext postgres 3658 0.0 3.0 1403552 119376 ? Ds 12:02 0:02 postgres: postgres gpnext localhost.localdomain(34526) SELECT postgres 3661 0.0 2.8 1383520 111964 ? Ds 12:02 0:03 postgres: postgres gpnext localhost.localdomain(34536) SELECT postgres 3662 0.1 3.7 1405896 146504 ? Ds 12:02 0:05 postgres: postgres gpnext localhost.localdomain(34540) SELECT postgres 3663 0.0 2.7 1375332 108640 ? Ds 12:02 0:03 postgres: postgres gpnext localhost.localdomain(34546) SELECT postgres 3667 0.0 2.6 1401400 102876 ? Ds 12:02 0:01 postgres: postgres gpnext localhost.localdomain(34558) SELECT postgres 3668 0.0 0.1 1320384 7584 ? Ss 12:02 0:01 postgres: autovacuum worker process gpnext postgres 3674 0.0 2.8 1374464 112084 ? Ds 12:02 0:03 postgres: postgres gpnext localhost.localdomain(34562) SELECT postgres 3755 0.0 3.5 1403228 139588 ? Ds 12:03 0:03 postgres: postgres gpnext localhost.localdomain(34806) SELECT postgres 5732 0.1 4.2 1364576 167372 ? Ds 12:31 0:03 postgres: postgres gpnext localhost.localdomain(40192) SELECT postgres 5779 0.0 3.4 1362928 136200 ? Ds 12:32 0:01 postgres: postgres gpnext localhost.localdomain(40260) SELECT postgres 5780 0.1 4.0 1420668 157120 ? Ds 12:32 0:02 postgres: postgres gpnext localhost.localdomain(40270) SELECT postgres 5781 0.0 3.3 1411164 130712 ? Ds 12:32 0:01 postgres: postgres gpnext localhost.localdomain(40272) SELECT postgres 5783 0.1 4.2 1365316 166340 ? Ds 12:32 0:03 postgres: postgres gpnext localhost.localdomain(40278) SELECT postgres 5784 0.1 4.6 1410944 182732 ? Ds 12:32 0:03 postgres: postgres gpnext localhost.localdomain(40280) SELECT postgres 5785 0.0 2.7 1366712 107484 ? Ds 12:32 0:01 postgres: postgres gpnext localhost.localdomain(40282) SELECT postgres 5786 0.0 3.7 1412280 145892 ? Ds 12:32 0:01 postgres: postgres gpnext localhost.localdomain(40284) idle postgres 5787 0.1 4.4 1408836 172472 ? Ds 12:32 0:02 postgres: postgres gpnext localhost.localdomain(40286) SELECT postgres 5788 0.0 3.0 1374636 120276 ? Ds 12:32 0:02 postgres: postgres gpnext localhost.localdomain(40288) SELECT postgres 5789 0.0 2.9 1372048 116512 ? Ds 12:32 0:01 postgres: postgres gpnext localhost.localdomain(40290) SELECT postgres 5851 0.1 4.9 1395992 193332 ? Ds 12:32 0:02 postgres: postgres gpnext localhost.localdomain(40334) SELECT postgres 5853 0.0 3.3 1403216 131396 ? Ds 12:32 0:01 postgres: postgres gpnext localhost.localdomain(40356) SELECT postgres 5857 0.2 3.5 1372084 137048 ? Ds 12:32 0:04 postgres: postgres gpnext localhost.localdomain(40394) SELECT postgres 5859 0.1 4.8 1412384 188252 ? Ds 12:32 0:02 postgres: postgres gpnext localhost.localdomain(40408) SELECT postgres 5861 0.0 3.4 1374956 133000 ? Ds 12:32 0:01 postgres: postgres gpnext localhost.localdomain(40416) SELECT postgres 5865 0.1 4.3 1393872 170584 ? Ds 12:32 0:02 postgres: postgres gpnext localhost.localdomain(40428) SELECT postgres 5866 0.1 2.6 1368016 102244 ? Ds 12:32 0:03 postgres: postgres gpnext localhost.localdomain(40430) SELECT postgres 5867 0.1 4.8 1413344 189440 ? Ds 12:32 0:03 postgres: postgres gpnext localhost.localdomain(40432) SELECT postgres 5868 0.1 1.9 1337380 76220 ? Ds 12:32 0:02 postgres: postgres gpnext localhost.localdomain(40434) SELECT postgres 5879 0.0 3.3 1362512 131040 ? Ds 12:33 0:01 postgres: postgres gpnext localhost.localdomain(40476) SELECT postgres 5880 0.0 2.5 1369984 101120 ? Ds 12:33 0:01 postgres: postgres gpnext localhost.localdomain(40478) SELECT postgres 5881 0.1 5.3 1413180 208396 ? Ds 12:33 0:02 postgres: postgres gpnext localhost.localdomain(40480) RESET postgres 5882 0.0 3.4 1375060 135916 ? Ds 12:33 0:01 postgres: postgres gpnext localhost.localdomain(40482) idle postgres 5883 0.1 4.9 1396708 191792 ? Ds 12:33 0:02 postgres: postgres gpnext localhost.localdomain(40484) SELECT postgres 6720 0.0 3.7 1375948 147852 ? Ds 12:45 0:01 postgres: postgres gpnext localhost.localdomain(45282) SELECT postgres 6722 0.2 2.3 1336960 93300 ? Ds 12:45 0:02 postgres: postgres gpnext localhost.localdomain(45612) SELECT postgres 6723 0.0 3.1 1372016 124196 ? Ds 12:45 0:01 postgres: postgres gpnext localhost.localdomain(45614) SELECT postgres 6819 0.1 3.5 1360952 139576 ? Ds 12:46 0:01 postgres: postgres gpnext localhost.localdomain(46122) SELECT postgres 6846 0.2 5.7 1407512 225840 ? Ds 12:46 0:02 postgres: postgres gpnext localhost.localdomain(46156) SELECT postgres 6860 0.1 2.1 1333844 84484 ? Ds 12:46 0:02 postgres: postgres gpnext localhost.localdomain(46186) SELECT postgres 6862 0.0 1.7 1334736 68044 ? Ds 12:46 0:00 postgres: postgres gpnext localhost.localdomain(46200) SELECT postgres 6863 0.1 3.6 1362488 141764 ? Ds 12:46 0:02 postgres: postgres gpnext localhost.localdomain(46202) SELECT postgres 7803 0.0 0.4 1330636 19416 ? Ds 13:03 0:00 postgres: postgres gpnext localhost.localdomain(47508) SELECT postgres 7848 0.0 0.4 1327748 18100 ? Ds 13:04 0:00 postgres: postgres gpnext localhost.localdomain(48176) SELECT postgres 7874 0.0 0.6 1329004 26028 ? Ds 13:05 0:00 postgres: postgres gpnext localhost.localdomain(48424) SELECT postgres 7960 0.0 0.0 1301840 572 ? D 13:06 0:00 /usr/pgsql-9.3/bin/postmaster -p 5433 -D /var/lib/pgsql/9.3/data postgres 7961 0.0 0.0 1301840 572 ? D 13:06 0:00 /usr/pgsql-9.3/bin/postmaster -p 5433 -D /var/lib/pgsql/9.3/data root 7997 0.0 0.0 103328 872 pts/0 S+ 13:06 0:00 grep postgres [root@oip-20 ~]# ps aux | grep postgres *Flor de María A. Avila Elias* *Gerente de Operaciones y Desarrollo* *Telef.: + 51 1 277-2172* *Móvil : + 51 989589647* *Calle Martín de Murua 150 Oficina 808 - San Miguel* *Facebook: fav...@ditelgroup.com <fav...@ditelgroup.com>* *www.gepesat.com <http://www.gepesat.com>* NOTA DE CONFIDENCIALIDAD La información contenida en este correo es privilegiada, confidencial y solo de interés para el destinatario. La lectura, difusión, distribución o copia de este correo está prohibida. Si usted no es el destinatario legítimo del mismo, por favor repórtelo inmediatamente al remitente del correo y bórrelo CONFIDENTIALITY NOTE The information contained in this e-mail is privileged and confidential and is intended only for its addressee. Any review, dissemination, distribution or copying of this e-mail is prohibited. If you have received it in error please delete the original message and e-mail us. El vie., 31 may. 2019 a las 13:10, Alvaro Herrera (<alvhe...@2ndquadrant.com>) escribió: > FLOR AVILA ELIAS escribió: > > Buenas tardes, > > Quisiera sus comentarios, cada fin de mes sin aparente motivo toda la > > plataforma que tenemos y que usa postgres deja de estar operativo o mejor > > dicho funciona y deja de funcionar, pensamos que eran reportes pero hoy > > note que cuando doy ps aux | grep postgres sale lo que muestro lineas > > abajo, el que aparece resaltado me llama la atencion porque es autovacumm > > laucher process, podrian indicar cuando se ejecuta este y si el podria > ser > > el que hace mi base de datos deje de operar?, de ser asi como cancelo ese > > proceso? > > autovacuum launcher es un proceso normal de mantención que ciertamente > no deja la BD en un estado crítico. Impedir que haga su trabajo te > puede causar problemas. > > Lo que sospecho que está pasando (porque es lo típico) es que algún > autovacuum worker está trabajando "for wraparound", y tienes algún DDL > que queda pegado detrás de él, y ese DDL está dejando pegado a todo el > resto del mundo. Sugiero que dejes a autovacuum tranquilo y mates al > DDL en vez. Te puede ayudar hacer que el autovacuum vaya más rápido, > bajando el valor de autovacuum_vacuum_cost_delay de 20ms a un valor > mucho más bajo, quizás 1ms o 0ms, hasta que haya pasado la tormenta. > (Puedes necesitar hacer que ese vacuum empiece de nuevo). > > -- > Álvaro Herrera https://www.2ndQuadrant.com/ > PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services >