Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id C00E06326F9 for ; Thu, 12 Feb 2009 14:48:07 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 81180-06 for ; Thu, 12 Feb 2009 14:48:03 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mail.postgresql.org (Postfix) with ESMTP id C1E74633086 for ; Thu, 12 Feb 2009 14:48:02 -0400 (AST) Received: by gxk24 with SMTP id 24so215718gxk.19 for ; Thu, 12 Feb 2009 10:48:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xRnHlxVqM0+O231sFx5x6GBY+QhGmhaChVJm1eQsGqU=; b=Orz0bvoCBpYS1ThkVIjRxZzTWaTiAwBFi4F7pTEK5FdTud88kTZRtj1XFP6dlb5pxL lM1cBmpaQJVSSdqV5nRB0UEsC4hwpHgezmOmAmWDayIlwFWliXQvfoi5HHPWrUnfbE/f DupZ3re7TQfG4mjU6cQEFOBDGSjrIv+kzAa/M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jm3BWUqR3FJ8jQ4nI0JpqcpriENRLxkRuFDGwHP+yfZQbNhRxkfuVyR6bmu3YsvKav UlNrO09B1R1zvQ9V17T0M+lh8Qc5gl9AbqNJYJQS+9iM1LXAU8e2HBu3rtL7dMNWOmhv NwFlnOFY1G08JYCLrODAXrJhW+gZDkKiYu9Bo= MIME-Version: 1.0 Received: by 10.151.78.15 with SMTP id f15mr1232023ybl.131.1234464481445; Thu, 12 Feb 2009 10:48:01 -0800 (PST) In-Reply-To: <0B44204C-7F10-4DD5-8180-CF5D6506F671@indiana.edu> References: <1233948948.15061.46.camel@jd-laptop.pragmaticzealot.org> <0B44204C-7F10-4DD5-8180-CF5D6506F671@indiana.edu> Date: Thu, 12 Feb 2009 11:48:01 -0700 Message-ID: Subject: Re: User defined functions... - Found to be tsearch From: Scott Marlowe To: Carol Walter Cc: pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/81 X-Sequence-Number: 31302 On Wed, Feb 11, 2009 at 8:11 AM, Carol Walter wrote: > Hello, > It seems these functions are not user defined functions, but tsearch > functions. Now, I need to know about tsearch2. I've searched my system and > I don't find the functions that are being called from this database. I'm > still a newby with postgres. Should I see these tables and these functions > with in my users database or are they supposed to be global. If they are > supposed to be available only within the specific users database, how do I > make them available to other databases. I'm trying to make an exact copy of > this database. The original database is failing the sanity check. I can > copy the data out, but not the schema. I manually created a duplicate > schema to copy the data back into, but the copy is failing on these two > table because it doesn't find the functions. I'm not even sure I have the > tsearch module for this version of postgres. It's 8.2.4. I did an upgrade > to 8.2.11 and I see a tsearch directory under contrib, but there doesn't > seem to be one anywhere else, where I would expect it to be for the 8.2.4 > version. tsearch is included from 8.3 onwards. 8.2 does not have it built it. You'd have to go into the contrib directory and build it (if you built pgsql from source) and then install it from there. But upgrading from 8.2 with tsearch added on to 8.3 is a bit of a pain, so I'd strongly suggest just going to 8.3 if you can. If 8.2.4 is missing a contrib dir, and you installed from packages it's likely you didn't install the 8.2.4-contrib package.