pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
droping unique constraint
3+ messages / 3 participants
[nested] [flat]

* droping unique constraint
@ 2000-10-24 12:51  Marcin Mazurek <M.Mazurek@poznan.multinet.pl>
  0 siblings, 2 replies; 3+ messages in thread

From: Marcin Mazurek @ 2000-10-24 12:51 UTC (permalink / raw)
  To: pgsql-admin

Hi,
can anybody help me with dropping unique constrint on attribute. I was
looking for it in pg_attributebut I think this is done in some other way.
How can I change it without recreating whole table.

tia

ps. list archives are unfortunately unusable...


Marcin Mazurek

--  
Kierownik Działu Systemowego
MULTINET SA o/Poznan
http://www.multinet.pl/



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: droping unique constraint
@ 2000-10-24 23:33  Stephan Szabo <sszabo@megazone23.bigpanda.com>
  parent: Marcin Mazurek <M.Mazurek@poznan.multinet.pl>
  1 sibling, 0 replies; 3+ messages in thread

From: Stephan Szabo @ 2000-10-24 23:33 UTC (permalink / raw)
  To: Marcin Mazurek <M.Mazurek@poznan.multinet.pl>; +Cc: pgsql-admin

When the unique constraint was added, it should have
made a unique index on that column.  Removing that index
should remove the unique constraint (you may wish to
make a non-unique index if you have queries that were
using the index)

Stephan Szabo
sszabo@bigpanda.com

On Tue, 24 Oct 2000, Marcin Mazurek wrote:

> Hi,
> can anybody help me with dropping unique constrint on attribute. I was
> looking for it in pg_attributebut I think this is done in some other way.
> How can I change it without recreating whole table.
> 
> tia
> 
> ps. list archives are unfortunately unusable...
> 
> 
> Marcin Mazurek
> 
> --  
> Kierownik Dzia³u Systemowego
> MULTINET SA o/Poznan
> http://www.multinet.pl/
> 




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: droping unique constraint
@ 2000-10-25 20:29  Peter Eisentraut <peter_e@gmx.net>
  parent: Marcin Mazurek <M.Mazurek@poznan.multinet.pl>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2000-10-25 20:29 UTC (permalink / raw)
  To: Marcin Mazurek <M.Mazurek@poznan.multinet.pl>; +Cc: pgsql-admin

Marcin Mazurek writes:

> can anybody help me with dropping unique constrint on attribute. I was
> looking for it in pg_attributebut I think this is done in some other way.
> How can I change it without recreating whole table.

Drop the unique index on the column.  Use psql's \d command to find the
name.

> ps. list archives are unfortunately unusable...

Use www.geocrawler.com.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-10-25 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-10-24 12:51 droping unique constraint Marcin Mazurek <M.Mazurek@poznan.multinet.pl>
2000-10-24 23:33 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2000-10-25 20:29 ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox