Re: crear index en procedures

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: Juan <smalltalker(dot)marcelo(at)gmail(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: crear index en procedures
Date: 2010-07-06 17:44:46
Message-ID: AANLkTikbc0Bh80wwNBJo03fWTK6OT_Uy9eYL42P_j1cK@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

2010/7/5 Juan <smalltalker(dot)marcelo(at)gmail(dot)com>:
> Gente se puede crear indices en un procedure?
> algo asi como
>
>
> nameta='tablapepe' ;
> statement = 'CREATE INDEX i_ant1 ON '  ||  nameta ;
> statement = statement   ||'(antig)  WHERE antig < 5;';
> RAISE NOTICE 'INDEX =%',statement ;
> PERFORM   statement ;

Debes usar EXECUTE no PERFORM

--
Jaime Casanova www.2ndQuadrant.com
Soporte y capacitación de PostgreSQL

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2010-07-06 20:13:28 Re: consulta oid
Previous Message Martin Li Causi 2010-07-06 12:35:01 consulta oid