Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 52F9D632671 for ; Sat, 17 Jul 2010 18:04:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 45229-05 for ; Sat, 17 Jul 2010 21:04:24 +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 F2F70632661 for ; Sat, 17 Jul 2010 18:04:24 -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 o6HL4JEj013867; Sat, 17 Jul 2010 17:04:19 -0400 (EDT) To: Heikki Linnakangas cc: Thom Brown , Joseph Conway , Dave Page , Steve Atkins , pgsql-docs Subject: Re: Railroad diagrams, a-la sqlite In-reply-to: <4C4215CD.6020500@enterprisedb.com> References: <2AACFC47-C121-4549-B015-AC4FCA9380CE@blighty.com> <4C4212F8.1080704@joeconway.com> <4C4215CD.6020500@enterprisedb.com> Comments: In-reply-to Heikki Linnakangas message dated "Sat, 17 Jul 2010 23:42:53 +0300" Date: Sat, 17 Jul 2010 17:04:18 -0400 Message-ID: <13866.1279400658@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.011 tagged_above=-5 required=5 tests=BAYES_40=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/125 X-Sequence-Number: 5781 Heikki Linnakangas writes: > On 17/07/10 23:36, Thom Brown wrote: >> On 17 July 2010 21:30, Joseph Conway wrote: >>> Oracle SELECT: >>> http://download.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_10002.htm >> Yeah, that kinda chaotic. Looks like a sadistic puzzle from the >> Krypton Factor. :S > Mind you, that syntax is genuinely complex. It would look chaotic using > the text representation we currently use as well. Well, our own SELECT syntax isn't exactly short: http://developer.postgresql.org/pgdocs/postgres/sql-select.html The problem I personally see with railroad diagrams is that there's so much whitespace in 'em. Our current SELECT syntax diagram fits on a page, more or less, but it would span multiple pages in railroad form. That doesn't make for a leap forward in comprehensibility IMO. regards, tom lane