Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id BD13147628C for ; Thu, 4 Jul 2002 02:09:48 -0400 (EDT) Mailbox-Line: From pgman@candle.pha.pa.us Thu Jul 4 02:09:48 2002 Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 44DF1476462 for ; Thu, 4 Jul 2002 01:36:19 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g645a9301288; Thu, 4 Jul 2002 01:36:09 -0400 (EDT) From: Bruce Momjian Message-Id: <200207040536.g645a9301288@candle.pha.pa.us> Subject: Re: [SQL] pg_restore cannot restore function In-Reply-To: <502.1025760837@sss.pgh.pa.us> To: Tom Lane Date: Thu, 4 Jul 2002 01:36:09 -0400 (EDT) Cc: Jie Liang , PostgreSQL-patches X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-3.4 required=5.0 tests=IN_REP_TO version=2.30 X-Spam-Level: X-Archive-Number: 200207/31 X-Sequence-Number: 4209 Tom Lane wrote: > Bruce Momjian writes: > > The following patch fixes all of these, and it will be in 7.3. > > It will? Kindly explain what the heck this is doing. It looks to > me like it will probably break more cases than it fixes. AFAICS > it's just completely muddying the waters about what is quoted and > what isn't ... Well, the waters were already muddy. Doing a pg_dump -Ft, you will see with the old code how the tags for functions had quotes, and how the GRANT/REVOKE has quotes for table names, while the CREATE TABLE tags for these do not. This fixes that, and tries to get the -P string they enter for pg_restore to match the tag by removing spaces. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026