Re: elog() patch

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: elog() patch
Date: 2002-03-02 23:00:43
Message-ID: 200203022300.g22N0hP10317@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Peter is also concerned if allowing clients to see elog() messages is a
> > security problem. Clients can't see postmaster messages because there
> > is no client at the time, but backend messages will be visible. I can't
> > think of any server log messages that shouldn't be seen by the client.
>
> The only thing I can think of is the detailed authorization-failure
> messages that the postmaster has traditionally logged but not sent to
> the client. We need to be sure that the client cannot change that
> behavior by setting PGOPTIONS. I *think* this is OK, since client
> options aren't processed till after the auth cycle finishes --- but
> check it. If you are using IsUnderPostmaster to control things then
> you might have a problem, because that gets set too soon.

Is this what you were looking for? I set client_min_messages to the max
of debug5 and the output is attached.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Attachment Content-Type Size
unknown_filename text/plain 756 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-03-02 23:19:54 Re: elog() patch
Previous Message Hannu Krosing 2002-03-02 22:21:56 Re: Oracle vs PostgreSQL in real life : NEWS!!!