Re: [HACKERS] idea: custom log_line_prefix components besides application_name

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] idea: custom log_line_prefix components besides application_name
Дата
Msg-id 17068.1494357861@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] idea: custom log_line_prefix components besidesapplication_name  (David Fetter <david@fetter.org>)
Список pgsql-hackers
David Fetter <david@fetter.org> writes:
> On Tue, May 09, 2017 at 12:48:01PM -0400, Tom Lane wrote:
>> I don't think that's a problem: while psql will remove "--" and everything
>> following it until newline, it won't remove the newline.  So there's still
>> a token boundary there.

> We may still need to be careful.

> davidfetter@davidfetter=# SELECT 'foo'-- stuff goes here
> 'bar';
>  ?column?
> ----------
>  foobar
> (1 row)

If you read the SQL spec, you'll find that particular behavior is
required by spec, and would still be required by spec with or
without the comment.  Perhaps it's a trap for unwary SQL programmers,
but psql isn't making it worse.
        regards, tom lane



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] proposal psql \gdesc
Следующее
От: Serge Rielau
Дата:
Сообщение: Re: [HACKERS] CTE inlining