Re: psql: core dumped

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Jeremy Drake <pgsql(at)jdrake(dot)com>
Cc: Philip Yarra <philip(at)utiba(dot)com>, Mario <gonzalemario(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql: core dumped
Date: 2006-12-20 01:12:41
Message-ID: 20061220011241.GT3036@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeremy Drake wrote:
> On Wed, 20 Dec 2006, Philip Yarra wrote:
>
> > Mario wrote:
> > > Even if you get a core dumped every time you press CTRL+\ ? why?
> >
> > Try ulimit -c 0, then run it (you should get no core dump)
> > Then ulimit -c 500000, then run it (you should get a core dump)
> >
> > SIGQUIT is supposed to dump core. Ulimit settings can suppress generation of
> > core files. The difference between your machine and your friend's is likely
> > just the ulimit settings.
>
> If you want to type CTRL+\ you can redefine what char generates SIGQUIT
> with stty quit command.

I think the problem Mario is really trying to solve is quitting at
psql's "Password: " prompt. Ctrl-C is ignored at that point apparently.
SIGQUIT (thus Ctrl-\ in most people's setup) does it but it also dumps
core.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Glen Parker 2006-12-20 01:16:48 Re: Autovacuum Improvements
Previous Message Joshua D. Drake 2006-12-20 01:04:29 Re: effective_cache_size vs units