Re: Drop/ Alter index if exist

From: Pau Marc Munoz Torres <paumarc(at)gmail(dot)com>
To: Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Drop/ Alter index if exist
Date: 2009-12-23 14:22:45
Message-ID: 19b5841a0912230622ld7b7701r6d7f4a7d097ded25@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

thanks

2009/12/22 Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>

>
>
> 2009/12/22 Pau Marc Munoz Torres <paumarc(at)gmail(dot)com>
>
> Hi every body
>>
>
>
>>
>> there is some way to delete or rename an index only if this index exists?
>>
>> something like
>>
>> "alter index index rename to pepe if exists"
>>
>>
> for drop - yes:
> DROP INDEX IF EXISTS name;
>
> for rename - there is no simple solution. well, actually there are
> solutions but they are more complicated than the problem.
> (think of user defined functions)
>
>
> --
> Filip Rembiałkowski
> JID,mailto:filip(dot)rembialkowski(at)gmail(dot)com
> http://filip.rembialkowski.net/
>

--
Pau Marc Muñoz Torres

Laboratori de Biologia Computacional
Institut de Biotecnologia i Biomedicina Vicent Villar

Universitat Autonoma de Barcelona
E-08193 Bellaterra (Barcelona)

telèfon: 93 5812807
Email : paumarc(dot)munoz(at)bioinf(dot)uab(dot)cat

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-12-23 15:21:17 Re: reindex
Previous Message Chris Barnes 2009-12-23 14:20:36 Re: Archive command seem to be working.