Re: get rid of psql welcome message

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: get rid of psql welcome message
Date: 2008-04-19 15:38:19
Message-ID: 9270.1208619499@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> I think everyone will find a mode they like here.

+1. A marginal style suggestion: if you did

var_welcome_message = GetVariable(pset.vars, "WELCOME_MESSAGE");
if (!var_welcome_message)
var_welcome_message = "";

then the subsequent tests would not need null-guards and would become
much more readable IMHO.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2008-04-19 15:40:36 TODO, FAQs to Wiki?
Previous Message Bruce Momjian 2008-04-19 15:33:20 TODO.detail removed