Skip site navigation (1) Skip section navigation (2)

And what about that Debugfile?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: And what about that Debugfile?
Date: 2001-06-06 19:43:53
Message-ID: Pine.LNX.4.30.0106062128460.757-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-hackers
There is a "postgres" option -o which can redirect the server output to a
file.  The postmaster output will still go to stderr.  Does anyone recall
how this was supposed to be useful?

Interesting code (from elog):

    /* NOTE: debug file is typically pointed at stderr */
    write(Debugfile, msg_buf, len);

    ...

    /*
     * fflush here is just to improve the odds that we get to see
     * the error message, in case things are so hosed that
     * proc_exit crashes. [...]
     */
    fflush(stdout);
    fflush(stderr);

Fat chance.  ;-)

-- 
Peter Eisentraut   peter_e(at)gmx(dot)net   http://funkturm.homeip.net/~peter


Responses

pgsql-hackers by date

Next:From: Thomas LockhartDate: 2001-06-06 20:55:42
Subject: Re: Timestamp change - 8601 compliance
Previous:From: Nathan MyersDate: 2001-06-06 19:43:22
Subject: Re: Idea: quicker abort after loss of client connection

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group