Re: Avoiding "will create implicit index" NOTICE - Mailing list pgsql-sql

From A. Kretschmer
Subject Re: Avoiding "will create implicit index" NOTICE
Date
Msg-id 20090611073106.GB16593@a-kretschmer.de
Whole thread Raw
In response to Re: Avoiding "will create implicit index" NOTICE  (Bryce Nesbitt <bryce2@obviously.com>)
Responses Re: Avoiding "will create implicit index" NOTICE
List 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 by date:

Previous
From: Bryce Nesbitt
Date:
Subject: Re: Avoiding "will create implicit index" NOTICE
Next
From: "Jyoti Seth"
Date:
Subject: dynamic columns in a query