Re: newlines at end of generated SQL

Поиск
Список
Период
Сортировка
От Fabrízio de Royes Mello
Тема Re: newlines at end of generated SQL
Дата
Msg-id CAFcNs+qSKJdv6fBB5M7HB4H4rad99iZPL5ZvXmJXPmg2UiS0jg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: newlines at end of generated SQL  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: newlines at end of generated SQL  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers

On Sat, Jan 11, 2014 at 1:21 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
>
> On Thu, 2014-01-09 at 15:52 -0200, Fabrízio de Royes Mello wrote:
> >
> > On Thu, Jan 9, 2014 at 3:34 PM, Robert Haas <robertmhaas@gmail.com>
> > wrote:
> > >
> > > On Wed, Jan 8, 2014 at 10:17 PM, Peter Eisentraut <peter_e@gmx.net>
> > wrote:
> > > > Is there a reason why the programs in src/bin/scripts all put
> > newlines
> > > > at the end of the SQL commands they generate?  This produces
> > useless
> > > > empty lines in the server log (and client output, if selected).
> > >
> > > If you're asking whether you can go ahead and fix that, +1 from me.
> > >
> >
> > Well... I did that...
>
> But you also need to add the newlines back for the --echo output.
> (Might as well use puts() then.)
>

Done!

--
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL
>> Timbira: http://www.timbira.com.br
>> Blog sobre TI: http://fabriziomello.blogspot.com
>> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello
>> Twitter: http://twitter.com/fabriziomello
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Partitioning performance: cache stringToNode() of pg_constraint.ccbin
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Recovery to backup point