Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TYt9v-0000W1-As for pgsql-bugs@postgresql.org; Thu, 15 Nov 2012 06:42:43 +0000 Received: from outmail148154.authsmtp.co.uk ([62.13.148.154]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TYt9t-0006Fz-9s for pgsql-bugs@postgresql.org; Thu, 15 Nov 2012 06:42:42 +0000 Received: from mail-c232.authsmtp.com (mail-c232.authsmtp.com [62.13.128.232]) by punt6.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id qAF6gddo084319; Thu, 15 Nov 2012 06:42:39 GMT Received: from ayaki.localdomain (124-148-90-153.dyn.iinet.net.au [124.148.90.153]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id qAF6gWfp087162 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 15 Nov 2012 06:42:35 GMT Message-ID: <50A48ED6.1070102@2ndQuadrant.com> Date: Thu, 15 Nov 2012 14:42:30 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 MIME-Version: 1.0 To: stuart@stuartbishop.net CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7661: pgstattuple from unpackaged fails on old installation References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: a457e155-2eef-11e2-b10b-0025903375e2 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZeVg0b BQteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaQBbY1ZH HGQLWlZEUFt7XWF/ aAwfbAdZfEtKVxtj UFZIR1FNFgBqBAMA SF9vJB8lEFMGeHZ3 ZEBgEHRZW0w0JEJ4 RRtVEGgbZzI1Pn0e URVaalFVcFFXfh9H b1l/V3AKZDAFKBg1 TUcAFQ0eBgAXAhl6 CkpScwxLEw4TESUg TgweAC0rEAULXSI2 ZwEgMlcXH08eP0l6 P1IgXUlQNBlaDQlS V0BLGzNQI10IWyss C2sA X-Authentic-SMTP: 61633235383639.1019:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 124.148.90.153/2525 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201211/75 X-Sequence-Number: 34633 On 11/15/2012 02:19 PM, stuart@stuartbishop.net wrote: > The following bug has been logged on the website: > > Bug reference: 7661 > Logged by: Stuart Bishop > Email address: stuart@stuartbishop.net > PostgreSQL version: 9.1.6 > Operating system: Ubuntu 12.04 > Description: > > The pgstattuple upgrade from unpackaged script expects the pgstatindex > function to exist, but it does not on particularly old databases (My > pgstattuple originally installed with 8.3 or 8.4?). That's a known issue with several of the extensions. You need to upgrade the contrib module install to the current version, *then* wrap the unpackaged contrib module into an extension with "FROM UNPACKAGED". -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services