Re: WIP: generalized index constraints

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: WIP: generalized index constraints
Дата
Msg-id 20090821130134.GA5487@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: WIP: generalized index constraints  (Brendan Jurd <direvus@gmail.com>)
Ответы Re: WIP: generalized index constraints
Список pgsql-hackers
Brendan Jurd escribió:

> I would be fine with a NOTICE in the former case, so something like
> this would be cool
> 
> # CREATE TABLE foo (LIKE bar INCLUDING INDEXES);
> NOTICE: INCLUDING INDEXES will also include any constraints on those indexes.
> HINT: Specify EXCLUDING CONSTRAINTS to omit them.
> 
> To my mind the severity is similar to such notices as "NOTICE: CREATE
> TABLE / UNIQUE will create implicit index ...".
> 
> i.e., "this is probably what you wanted us to do, but just in case you
> weren't expecting this side-effect, we're letting you know about it".

NOTICEs is what we do with index creation on primary key, unique
indexes, and sequences on serial columns, and I think they are seen as
just noise by everyone except novices.  Do we want to add more?

Maybe they should be INFO, so that they are shown to the client but not
sent to the server log.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Index-only quals
Следующее
От: Zdenek Kotala
Дата:
Сообщение: SIGUSR1 pingpong between master na autovacum launcher causes crash