X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E918C329EDB for ; Wed, 15 Sep 2004 10:20:18 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37300-07 for ; Wed, 15 Sep 2004 09:20:02 +0000 (GMT) Received: from igcar.ernet.in (unknown [202.141.82.2]) by svr1.postgresql.org (Postfix) with ESMTP id 76588329ED4 for ; Wed, 15 Sep 2004 10:20:00 +0100 (BST) Received: from igcar.ernet.in (localhost [127.0.0.1]) by igcar.ernet.in (8.11.6/8.11.6) with ESMTP id i8F9CJn13535 for ; Wed, 15 Sep 2004 14:42:19 +0530 Received: from igcmail.igcar.ernet.in (igcmail [203.199.205.20])by igcar.ern et.in (8.11.6/8.11.6) with ESMTP id i8F9CD713527for ; Wed, 15 Sep 2004 14:42:13 +0530 Received: from mailser.igcar.ernet.in (mailser [10.1.1.2])by igcmail.igcar.e rnet.in (8.9.3+Sun/8.9.1) with ESMTP id OAA16809for ; Wed, 15 Sep 2004 14:48:46 -0500 (GMT) Received: from mailser.igcar.ernet.in (mailser [10.1.1.2])by mailser.igcar.e rnet.in (8.11.6/8.11.6) with ESMTP id i8F9imX14627for ; Wed, 15 Sep 2004 15:14:48 +0530 Received: from igcar.ernet.in ([10.1.6.54])by mailser.igcar.ernet.in (8.11.6 /8.11.6) with ESMTP id i8F9igu14612;Wed, 15 Sep 2004 15:14:42 +0530 Message-ID: <414809D1.2040509@igcar.ernet.in> Date: Wed, 15 Sep 2004 14:52:25 +0530 From: Sanjay Singh Organization: Indira Gandhi Centre for Atomic Research User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Stark Cc: John DeSoi , PostgreSQL Subject: Re: sleep function References: <200408101457.i7AEvvc15187@candle.pha.pa.us><46D44C5D-EBCF-11D8- A1CD-000A95B03262@icx.net> <87hdqu5x5q.fsf@stark.xeocode.com> In-Reply-To: <87hdqu5x5q.fsf@stark.xeocode.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.0 X-imss-result: Passed X-imss-scores: Clean:77.65651 C:20 M:1 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/104 X-Sequence-Number: 18950 Hi All, I am getting this message while I am trying to implement tsearch. java.sql.SQLException: ERROR: could not find tsearch config by locale what could be the problem Please help bye Sanjay Greg Stark wrote: > John DeSoi writes: > > >>On Aug 10, 2004, at 10:57 AM, Bruce Momjian wrote: >> >> >>>I can't think of one, no. I think you will have to use one of the >>>server-side languages and call a sleep in there. >> >>This is no good in the real world since it pounds the CPU, but it worked well >>enough for my testing purposes. > > > You went the long way around. I think what he meant was something as simple > as: > > bash-2.05b$ /usr/lib/postgresql/bin/createlang -U postgres plperlu test > > bash-2.05b$ psql -d test -U postgres > Welcome to psql 7.4.2, the PostgreSQL interactive terminal. > > Type: \copyright for distribution terms > \h for help with SQL commands > \? for help on internal slash commands > \g or terminate with semicolon to execute query > \q to quit > > test=# create or replace function sleep(integer) returns integer as 'return sleep(shift)' language plperlu; > CREATE FUNCTION > > test=# \timing > Timing is on. > > test=# select sleep(10) ; > sleep > ------- > 10 > (1 row) > > Time: 10002.493 ms > > -- Sanjay Singh ********************************************* | Scientific Officer / D, | | Library & Information Services, | | Indira Gandhi Centre for Atomic Research, | | Kalpakkam - 603102, Tamil Nadu (India) | | Phone : 0091 4114 280096(O) | | 0091 9894258801(R) | | Email : sanjjay@igcar.ernet.in | | sanjjay_in@yahoo.com | *********************************************