X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 86FF2D1B4F1 for ; Fri, 26 Sep 2003 14:43:19 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 25584-09 for ; Fri, 26 Sep 2003 11:42:50 -0300 (ADT) Received: from mta3.snet.net (mta3.snet.net [204.60.203.69]) by svr1.postgresql.org (Postfix) with ESMTP id 58CB1D1B4E1 for ; Fri, 26 Sep 2003 11:42:41 -0300 (ADT) Received: from [192.168.1.203] (167.95.252.64.snet.net [64.252.95.167]) by mta3.snet.net (8.12.3/8.12.3/SNET-smtp-1.2/D-1.1.1.1/O-1.1.1.1) with ESMTP id h8QEgeIJ024874; Fri, 26 Sep 2003 10:42:40 -0400 (EDT) Date: Fri, 26 Sep 2003 10:37:45 -0400 (EDT) From: Wei Weng X-X-Sender: wweng@localhost.localdomain To: Tom Lane Cc: pgsql-sql@postgresql.org Subject: Re: tsearch2 question In-Reply-To: <5912.1064536486@sss.pgh.pa.us> Message-ID: References: <5912.1064536486@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/330 X-Sequence-Number: 15308 But then when I do a psql < tsearch2.sql, it complains: bash-2.05a$ psql testdb < tsearch2.sql SET BEGIN NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'pg_ts_dict_pkey' for table 'pg_ts_dict' CREATE TABLE ERROR: stat failed on file '$libdir/tsearch2': No such file or directory ERROR: current transaction is aborted, queries ignored until end of transaction block ERROR: current transaction is aborted, queries ignored until end of transaction block ... (and the ERROR message repeats many times) Where did I do wrong?? Thanks Wei On Thu, 25 Sep 2003, Tom Lane wrote: > Wei Weng writes: > > In my tsearch2.sql there are statements like : > > --dict interface > > CREATE FUNCTION lexize(oid, text) > > returns _text > > as '$libdir/tsearch2' > > language 'C' > > with (isstrict); > > > I don't think $libdir is the real value that we want. > > Yes it is. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >