Re: How to get rid of notices for create table?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Pablo Santiago Blum de Aguiar <pbaguiar(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to get rid of notices for create table?
Date: 2004-12-12 00:40:17
Message-ID: 20041212004017.GA43034@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Dec 11, 2004 at 02:20:06PM -0800, Pablo Santiago Blum de Aguiar wrote:

> Ok. I read the CREATE INDEX manual section and I could
> create an index but then I get an error message
> telling that relation "pk_cliente" already exists when
> creating the table. How do I explicitly request
> PostgreSQL to create those index for the table?

You could omit the PRIMARY KEY and UNIQUE constraints in the table
definition and create UNIQUE indexes after creating the table. But
what problem are you trying to solve? Your original message asks
how to get rid of the NOTICE messages for the implicitly-created
indexes; you can do this by setting configuration variables that
tell PostgreSQL what level of messages you want to see.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Geoffrey 2004-12-12 01:50:44 Re: postgresql and javascript
Previous Message Pablo Santiago Blum de Aguiar 2004-12-11 22:20:06 Re: How to get rid of notices for create table?