@@ -28,9 +28,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2828/* ***********************************************************************
2929.. function:: _pgr_createIndex(tab, col,indextype)
3030 _pgr_createIndex(sname,tname,colname,indextypes)
31-
31+
3232 if the column is not indexed it creates a 'gist' index otherwise a 'btree' index
33- Examples:
33+ Examples:
3434 * select _pgr_createIndex('tab','col','btree');
3535 * select _pgr_createIndex('myschema','mytable','col','gist');
3636 * perform 'select _pgr_createIndex('||quote_literal('tab')||','||quote_literal('col')||','||quote_literal('btree'))' ;
@@ -41,11 +41,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4141 Postcondition:
4242 sname.tname.colname its indexed using the indextype
4343
44-
44+
4545 Author: Vicky Vergara <vicky_vergara@hotmail.com>>
4646
4747 HISTORY
48- Created: 2014/JUL/28
48+ Created: 2014/JUL/28
4949************************************************************************/
5050
5151CREATE OR REPLACE FUNCTION _pgr_createIndex (
@@ -69,10 +69,10 @@ BEGIN
6969 perform _pgr_msg(msgKind, fnName);
7070 else
7171 if indext = ' gist' then
72- query = ' create index ' || _pgr_quote_ident(tname|| ' _' || colname|| ' _idx' )|| '
72+ query = ' create index ' || _pgr_quote_ident(tname|| ' _' || colname|| ' _idx' )|| '
7373 on ' || tabname|| ' using gist(' || quote_ident(colname)|| ' )' ;
7474 else
75- query = ' create index ' || _pgr_quote_ident(tname|| ' _' || colname|| ' _idx' )|| '
75+ query = ' create index ' || _pgr_quote_ident(tname|| ' _' || colname|| ' _idx' )|| '
7676 on ' || tabname|| ' using btree(' || quote_ident(colname)|| ' )' ;
7777 end if;
7878 perform _pgr_msg(msgKind, fnName, ' Adding index ' || tabname || ' _' || colname || ' _idx' );
0 commit comments