Re: [PATCH] parser: optionally warn about missing AS for column and table aliases

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: [PATCH] parser: optionally warn about missing AS for column and table aliases
Дата
Msg-id 540A25EA.8070002@joh.to
обсуждение исходный текст
Ответ на Re: [PATCH] parser: optionally warn about missing AS for column and table aliases  (Oskari Saarenmaa <os@ohmu.fi>)
Ответы Re: [PATCH] parser: optionally warn about missing AS for column and table aliases  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On 2014-09-05 22:56, Oskari Saarenmaa wrote:
> What'd be a good name for the GUC controlling this,
> missing_column_as_warning?

I don't know about others, but I've previously had the idea of having 
more warnings like this (my go-to example is  DELETE FROM foo WHERE bar 
IN (SELECT bar FROM barlesstable);  where "barlesstable" doesn't have a 
column "bar").  Perhaps it would be better to have a guc with a list of 
warnings, similarly to what we did for plpgsql.extra_warnings?

Now that I start thinking about it, more ideas for such warnings start 
springing up..


.marko



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

Предыдущее
От: Oskari Saarenmaa
Дата:
Сообщение: Re: [PATCH] parser: optionally warn about missing AS for column and table aliases
Следующее
От: Oskari Saarenmaa
Дата:
Сообщение: Re: [PATCH] Filter error log statements by sqlstate