Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-es-ayuda by date

Next:From: Alvaro HerreraDate: 2010-07-06 20:13:28
Subject: Re: consulta oid
Previous:From: Martin Li CausiDate: 2010-07-06 12:35:01
Subject: consulta oid

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group