On Wed, Nov 12, 2003 at 05:35:40PM -0500, Christopher Murtagh wrote: > chris=# select htsearch('sample_return2.txt','dbname'); > htsearch > ---------------------------------- > {HASH(0x835c298),2100,2113,2114} > (1 row) > > Any obvious thing that I'm doing wrong? I'm using 7.4RC2. As always, any > help or info would be much appreciated. Bonus points if someone knows > what the HASH is. :-)
You are initializing the array incorrectly in your htdig(text, text) function. {} is the hash reference you are seeing; HASH(0xwhatever) is its text representation. Do my @Result = (); instead, or leave it uninitialized. -- Alvaro Herrera (<alvherre[a]dcc.uchile.cl>) "Un poeta es un mundo encerrado en un hombre" (Victor Hugo) ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html