Re: [GENERAL] deferring/disabling unique index

2004-01-09 Thread Oleg Lebedev
: [GENERAL] deferring/disabling unique index Joshua D. Drake wrote: > > >So, does it mean that the only way to disable the index is to drop > >and recreate it? What about setting indisunique to false temporarily? > > > > > > > I am just curious... why would you w

Re: [GENERAL] deferring/disabling unique index

2004-01-09 Thread Bruce Momjian
Joshua D. Drake wrote: > > >So, does it mean that the only way to disable the index is to drop and > >recreate it? What about setting indisunique to false temporarily? > > > > > > > I am just curious... why would you want to defer a unique constraint? I remember now --- if you do: UPDA

Re: [GENERAL] deferring/disabling unique index

2004-01-09 Thread Oleg Lebedev
: Bruce Momjian; [EMAIL PROTECTED] Subject: Re: [GENERAL] deferring/disabling unique index >So, does it mean that the only way to disable the index is to drop and >recreate it? What about setting indisunique to false temporarily? > > > I am just curious... why would you want to

Re: [GENERAL] deferring/disabling unique index

2004-01-09 Thread Bruce Momjian
Oleg Lebedev wrote: > So, does it mean that the only way to disable the index is to drop and > recreate it? What about setting indisunique to false temporarily? Not sure. I seem to remember a way someone got around this, but can't remember the details. -- Bruce Momjian

Re: [GENERAL] deferring/disabling unique index

2004-01-09 Thread Joshua D. Drake
So, does it mean that the only way to disable the index is to drop and recreate it? What about setting indisunique to false temporarily? I am just curious... why would you want to defer a unique constraint? Sincerely, Joshua Drake -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/O

Re: [GENERAL] deferring/disabling unique index

2004-01-09 Thread Oleg Lebedev
] Subject: Re: [GENERAL] deferring/disabling unique index Oleg Lebedev wrote: > Hi, > > I need to know if there is a way to defer or disable a unique index on > a table during an update. One way would be to set indisunique to > false, perform update and then set to true. But, this

Re: [GENERAL] deferring/disabling unique index

2004-01-09 Thread Bruce Momjian
Oleg Lebedev wrote: > Hi, > > I need to know if there is a way to defer or disable a unique index on a > table during an update. One way would be to set indisunique to false, > perform update and then set to true. But, this seems to be an ugly > solution. > > I've posted a similar message 6 mon