Re: Avoiding "will create implicit index" NOTICE

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: Avoiding "will create implicit index" NOTICE
Дата
Msg-id 20090611073106.GB16593@a-kretschmer.de
обсуждение исходный текст
Ответ на Re: Avoiding "will create implicit index" NOTICE  (Bryce Nesbitt <bryce2@obviously.com>)
Ответы Re: Avoiding "will create implicit index" NOTICE  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-sql
In response to Bryce Nesbitt :
> Hmm, no.  I still get the NOTICE. How can I create the primary key
> without triggering a NOTICE?

Sure, set client_min_messages='...'

test=*# create table bla(id int primary key);
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "bla_pkey" for table "bla"
CREATE TABLE
test=*# rollback;
ROLLBACK
test=# set client_min_messages='warning';
SET
test=*# create table bla(id int primary key);
CREATE TABLE
test=*#


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net


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

Предыдущее
От: Bryce Nesbitt
Дата:
Сообщение: Re: Avoiding "will create implicit index" NOTICE
Следующее
От: "Jyoti Seth"
Дата:
Сообщение: dynamic columns in a query