Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id BFC98B63152 for ; Fri, 3 Jun 2011 14:30:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 93970-02 for ; Fri, 3 Jun 2011 17:29:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 38711B62C0C for ; Fri, 3 Jun 2011 14:29:58 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p53HTuuW001557; Fri, 3 Jun 2011 13:29:56 -0400 (EDT) To: "Kevin Grittner" cc: "Robert Haas" , "Daniel Cristian Cruz" , pgsql-bugs@postgresql.org Subject: Re: BUG #6050: Dump and restore of view after a schema change: can't restore the view In-reply-to: <4DE8D104020000250003E0EB@gw.wicourts.gov> References: <201106031238.p53CcA8P075374@wwwmaster.postgresql.org> <27042.1307113140@sss.pgh.pa.us> <4DE8D104020000250003E0EB@gw.wicourts.gov> Comments: In-reply-to "Kevin Grittner" message dated "Fri, 03 Jun 2011 12:18:12 -0500" Date: Fri, 03 Jun 2011 13:29:56 -0400 Message-ID: <1556.1307122196@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/39 X-Sequence-Number: 30418 "Kevin Grittner" writes: >> Tom Lane wrote: >>> Personally my advice is to avoid USING: it wasn't one of the SQL >>> committee's better ideas. > There's no query you can write with USING that you can't write in a > longer form with ON; but a query of moderate complexity can become > significantly shorter with USING, and thus easier to understand and > less prone to bugs than the ON form. If USING (x) actually were exactly equivalent to ON (a.x = b.x), I'd be less annoyed with it. But it isn't; the committee just couldn't resist the urge to decorate it with some dubious additional behaviors. regards, tom lane