Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C2DF84A2A39 for ; Sat, 25 Feb 2012 12:24:09 -0400 (AST) Received: from asbnvacz-mailrelay01.megapath.net ([207.145.128.243]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S1KPo-0003NN-A3 for pgsql-admin@postgresql.org; Sat, 25 Feb 2012 16:24:08 +0000 Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.41]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 7CDE2A7151D for ; Sat, 25 Feb 2012 11:23:55 -0500 (EST) Received: (qmail 23558 invoked from network); 25 Feb 2012 16:23:55 -0000 Received: by simscan 1.4.0 ppid: 3038, pid: 13792, t: 2.2076s scanners: clamav: 0.88.2/m:52/d:10739 spam: 3.0.4 Received: from unknown (HELO [192.168.2.101]) (sribe@elevated-dev.com@[63.227.17.6]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with AES128-SHA encrypted SMTP for ; 25 Feb 2012 16:23:52 -0000 Subject: Re: Problems with pg_restore (plpgsql already exists) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Scott Ribe In-Reply-To: <17919563-C079-438C-9702-5A0806127DFD@gmail.com> Date: Sat, 25 Feb 2012 09:23:50 -0700 Cc: Guillaume Lelarge , "pgsql-admin@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <274BAD81-38BF-4537-B474-ADCDF77E318A@elevated-dev.com> References: <4F4820C8.2000703@iii.com> <1330183903.2593.1.camel@localhost.localdomain> <17919563-C079-438C-9702-5A0806127DFD@gmail.com> To: Brian Weaver X-Mailer: Apple Mail (2.1084) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail2.sea5 X-Spam-Level: X-Spam-Status: No, score=0.0 required=8.0 tests=none autolearn=disabled version=3.0.4 X-Pg-Spam-Score: -1.2 (-) X-Archive-Number: 201202/105 X-Sequence-Number: 39165 On Feb 25, 2012, at 9:18 AM, Brian Weaver wrote: > Thanks for the pointer. Is it just me that finds it the behavior of = pg_restore odd? If the default installation since 9.0 has PL/PgSQL = installed then why does pg_restore still emit statements to create the = language? As a developer by trade it smells like a bug.=20 It's pg_dump that's emitting the command to create the language. If you = ran pg_dump from 9.0+, it would not do so. This is an example of why the = standard advice for upgrading is to use the newer pg_dump against the = older database--you can often get away without doing that, and I am one = of those people who often ignores that advice and does things the easier = way until it breaks, but it is safer. --=20 Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice