Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XsyTw-0002HJ-Tg for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Nov 2014 18:35:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XsyTv-0006sZ-Tw for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Nov 2014 18:35:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xs9mO-0002Qd-Ft for pgsql-bugs@postgresql.org; Sat, 22 Nov 2014 12:27:08 +0000 Received: from hm1479-23.locaweb.com.br ([201.76.49.93]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xs9mH-0000TO-6N for pgsql-bugs@postgresql.org; Sat, 22 Nov 2014 12:27:03 +0000 Received: from mcbain0008.correio.biz (189.126.112.84) by hm1479-19.locaweb.com.br (PowerMTA(TM) v3.5r15) id he20ha0nvdcf for ; Sat, 22 Nov 2014 10:26:58 -0200 (envelope-from ) Received: from bart0124.correio.pw (bart0124.email.locaweb.com.br [10.50.0.23]) by mcbain0008.correio.biz (Postfix) with ESMTP id 734B523F812 for ; Sat, 22 Nov 2014 10:26:58 -0200 (BRST) X-AuthUser: ricardo.sardinha@ti.polynorte.com.br X-LocaWeb-COR: locaweb_2009_x-mail Received: from DSV03 (unknown [201.75.113.23]) (Authenticated sender: ricardo.sardinha@ti.polynorte.com.br) by bart0124.correio.pw (Postfix) with ESMTPA id A8F3D20AF828F for ; Sat, 22 Nov 2014 10:26:56 -0200 (BRST) From: "Ricardo Sardinha" To: Subject: function length(numeric) does not exist Date: Sat, 22 Nov 2014 08:26:48 -0400 Message-ID: <000001d0064f$98112d70$c8338850$@sardinha@ti.polynorte.com.br> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01D0062E.10FF8D70" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdAFn+GQr45/yttTSLSachp83m7d3A== Content-Language: pt-br X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=OakWD3jY c=1 sm=1 tr=0 a=pYliKAbn3Ok8/NNdPcCSvw==:117 a=JgBkpZYqwN+zJqQhibsb2w==:17 a=VM7MXBOAAAAA:8 a=tTmXYsw_VXAA:10 a=LY5eZEIwAAAA:8 a=5y4faFyK3SkA:10 a=mAZOzE5Vz8WhHwO0kdYA:9 a=OkwiF73dzo8A:10 a=xkSFGOSO4rkA:10 a=qkyZwQaeNToA:10 a=zM0zt5Lkdl5RJTIXgFMA:9 a=Veq9MEsT-ya5cilH:21 a=gakVHeaGNNQngkVc:21 a=wPNLvfGTeEIA:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=0rZpPdcgnI_yoImhwPAA:9 a=FiEURtufiM02K8xx:21 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=frz4AuCg-hUA:10 X-Virus-Scanned: clamav-milter 0.98.4 at mcbain0008 X-Virus-Status: Clean X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Esta é uma mensagem em várias partes no formato MIME. ------=_NextPart_000_0001_01D0062E.10FF8D70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Version: PostgreSQL 9.2.6, compiled by Visual C++ build 1600, 32-bit =20 When I try to use the function length occurs the error: =20 "ERRO: 42883: fun=E7=E3o length(numeric) n=E3o existe" (function = length(numeric) does not exist). =20 Then I try to create length function: =20 CREATE OR REPLACE FUNCTION length(tsvector) RETURNS int4 AS '$libdir/tsearch2', 'tsvector_length' LANGUAGE 'c' IMMUTABLE STRICT; ALTER FUNCTION length(tsvector) OWNER TO postgres; =20 But the return is: =20 -------------------------------------------------------------------------= --- -------------------------------------------------------------------------= --- -------- =20 ERRO: n=E3o p=F4de encontrar fun=E7=E3o "tsvector_length" no arquivo = "C:/Program Files/PostgreSQL/9.2/lib/tsearch2.dll" (could not find function "tsvector_length" in the file "C:/Program Files/PostgreSQL/9.2/lib/tsearch2.dll") =20 =20 ********** Error ********** =20 ERRO: n=E3o p=F4de encontrar fun=E7=E3o "tsvector_length" no arquivo = "C:/Program Files/PostgreSQL/9.2/lib/tsearch2.dll" (could not find function "tsvector_length" in the file "C:/Program Files/PostgreSQL/9.2/lib/tsearch2.dll") =20 SQL state: 42883 =20 -------------------------------------------------------------------------= --- -------------------------------------------------------------------------= --- -------- =20 I need the help! =20 Thanks! =20 ------=_NextPart_000_0001_01D0062E.10FF8D70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Version: PostgreSQL 9.2.6, = compiled by Visual C++ build 1600, 32-bit

 

When I try to use the function = length occurs the error:

 

"ERRO: 42883: fun=E7=E3o = length(numeric) n=E3o existe" (function length(numeric) does not exist).

 

Then I try to create = length function:

=A0

CREATE OR REPLACE FUNCTION = length(tsvector)

=A0 RETURNS int4 = AS

'$libdir/tsearch2', = 'tsvector_length'

=A0 LANGUAGE 'c' IMMUTABLE = STRICT;

ALTER FUNCTION length(tsvector) = OWNER TO postgres;

 

But the return = is:

 

------------------------------------------------------------= -------------------------------------------------------------------------= ---------------------------

 

ERRO:=A0 n=E3o p=F4de encontrar fun=E7=E3o = "tsvector_length" no arquivo "C:/Program = Files/PostgreSQL/9.2/lib/tsearch2.dll"

(could not = find function "tsvector_length" in the file "C:/Program Files/PostgreSQL/9.2/lib/tsearch2.dll")

 

 

********** Error = **********

 

ERRO: n=E3o p=F4de encontrar fun=E7=E3o = "tsvector_length" no arquivo "C:/Program = Files/PostgreSQL/9.2/lib/tsearch2.dll"

(could not = find function "tsvector_length" in the file "C:/Program Files/PostgreSQL/9.2/lib/tsearch2.dll")

 

SQL state: = 42883

 

------------------------------------------------------------= -------------------------------------------------------------------------= ---------------------------

 

I need the = help!

 

Thanks!

 

------=_NextPart_000_0001_01D0062E.10FF8D70--