Re: SQL command to dump the contents of table failed: PQendcopy() - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: SQL command to dump the contents of table failed: PQendcopy()
Date
Msg-id 20050928111103.GF2436@svana.org
Whole thread Raw
In response to Re: SQL command to dump the contents of table failed: PQendcopy()  (ruben <ruben20@superguai.com>)
Responses Re: SQL command to dump the contents of table failed: PQendcopy()
List pgsql-general
On Wed, Sep 28, 2005 at 11:40:11AM +0200, ruben wrote:
> Hi Tom:
>
> No way to get the core dump, this is what I did:
>
> 1) Add "ulimit" to /etc/rc.d/init.d/postgresql just before pg_ctl start
> in the "start" section of the script:

<snip>

> 2) Restart postmaster
>
>    /etc/rc.d/init.d/postgresql restart

Does that run the start section? Maybe you need to stop/start. Maybe
the bash_profile/bashrc for the postgres user resets the core limit.

> 4) Search core file:
>
>    -bash-2.05b$ find /usr/local/pgsql/ -name '*core*' -print
>    -bash-2.05b$

It'll be under $PGDATA, where is that? It may be under
/var/lib/postgres, depending on how you installed...

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: trigger self recursion
Next
From: Richard Huxton
Date:
Subject: Re: Triggers after a rule