Re: CREATE IF NOT EXISTS INDEX

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: CREATE IF NOT EXISTS INDEX
Дата
Msg-id 20140930225348.GX2084@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: CREATE IF NOT EXISTS INDEX  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2014-09-30 18:47:24 -0400, Tom Lane wrote:
> Josh Berkus <josh@agliodbs.com> writes:
> > On 09/30/2014 02:43 PM, Tom Lane wrote:
> >> Fabrízio de Royes Mello <fabriziomello@gmail.com> writes:
> >>> What's your thoughts about we implement IF NOT EXISTS for CREATE INDEX?
> 
> >> It's got the same semantic problems as every other variant of CINE.
> 
> > I do think it should be name-based.
> 
> Name-based, eh?  Don't you recall that in modern practice, people
> generally don't specify names for indexes at all?  They've usually
> got system-generated names, which doesn't seem like a very cool thing
> to have scripts depending on.

Good point. I think it's fair enough to only allow CINE on named
indexes.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CREATE IF NOT EXISTS INDEX
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: CREATE IF NOT EXISTS INDEX