Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 9F7B31442C2B for ; Fri, 24 Feb 2012 19:44:29 -0400 (AST) Received: from mailgate.iii.com ([205.227.88.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S14oN-0006Xn-Vn for pgsql-admin@postgresql.org; Fri, 24 Feb 2012 23:44:29 +0000 Received: from mailhub.iii.com (mailhub [10.1.2.3]) by mailgate.iii.com (8.13.6/8.13.6) with ESMTP id q1ONhi0E023845 for ; Fri, 24 Feb 2012 15:43:44 -0800 (PST) Received: from [10.1.3.160] ([10.1.3.160]) by mailhub.iii.com (8.13.6/8.13.6) with ESMTP id q1ONn1Rv019015 for ; Fri, 24 Feb 2012 15:49:01 -0800 (PST) Message-ID: <4F4820C8.2000703@iii.com> Date: Fri, 24 Feb 2012 15:44:08 -0800 From: Dinesh Bhandary Reply-To: dbhandary@iii.com Organization: Innovative Interfaces User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Problems with pg_restore (plpgsql already exists) References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/101 X-Sequence-Number: 39161 one way to get over this issue is to do pg_dump of postgres 8.4 db using postgres 9.1.2 binaries. Here is a note from postgres 9.1.2 documentation "In a default PostgreSQL installation, the handler for the PL/pgSQL language is built and installed into the "library" directory; furthermore, the PL/pgSQL language itself is installed in all databases. If Tcl support is configured in, the handlers for PL/Tcl and PL/TclU are built and installed in the library directory, but the language itself is not installed in any database by default. Likewise, the PL/Perl and PL/PerlU handlers are built and installed if Perl support is configured, and the PL/PythonU handler is installed if Python support is configured, but these languages are not installed by default." hope this helps. Thanks. Dinesh On 2/24/2012 2:30 PM, Brian Weaver wrote: > CREATE DATABASE foo WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';