Tell me more ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I am running postgresql 8.4 on Ubuntu 10.0.4. I was in the process of creating schemas/importing data when I came across some error messages. Here is a snippet of the output at the console:

CREATE AGGREGATE
CREATE AGGREGATE
CREATE DATABASE
FATAL:  terminating autovacuum process due to administrator command
CREATE DATABASE
CREATE DATABASE
CREATE DATABASE
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection

BTW, I have checked and the postgres processes seem to be still running:

username@localhost:~/work/scripts/init$ ps aux | grep postgres
postgres 13196  0.1  0.1 102240  6264 pts/1    S    00:23   0:00 /usr/lib/postgresql/8.4/bin/postgres -D /mydata/pgdbdata
postgres 13198  0.0  0.2 102456  8612 ?        Ss   00:23   0:00 postgres: writer process                                    
postgres 13199  0.0  0.0 102240  1584 ?        Ss   00:23   0:00 postgres: wal writer process                                
postgres 13200  0.0  0.0 102568  1888 ?        Ss   00:23   0:00 postgres: autovacuum launcher process                       
postgres 13201  0.0  0.0  73956  1576 ?        Ss   00:23   0:00 postgres: stats collector process                           
postgres 13263  0.0  0.1 104276  6484 ?        Ss   00:25   0:00 postgres: postgres postgres 127.0.0.1(42338) idle 

What is likely to be causing this and how may I resolve the problem?.

share|improve this question
Normally the first message is the result of stopping a process manually by some sort of administrator. Are you sure that can't be the case? – dezso Jun 22 '12 at 6:38
The log output is unusual, mixing client-side and server-side messages. On a non-customized postgres on ubuntu, the server-side log files are in /var/log/postgresql. Can you check that instead? – Daniel Vérité Jun 22 '12 at 14:18

closed as too localized by dezso, Max Vernon, RolandoMySQLDBA, StanleyJohns, Derek Downey Apr 29 at 20:25

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

the output suggests that PostgreSQL has been started from the console and that multiple client connections are fighting for resources. My recommendations:

  1. Start PostgreSQL in a way that properly logs, ideally via the init scripts

  2. Try reducing your maximum settings allowed. This often increases performance. Double your number of cores is a good place to start.

  3. If these happen and it continues please post both PostgreSQL and Syslog snippets.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.