Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoDzh-000764-2j for pgsql-docs@arkaria.postgresql.org; Wed, 04 Dec 2013 15:04:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VoDzg-0001Wi-Gr for pgsql-docs@arkaria.postgresql.org; Wed, 04 Dec 2013 15:04:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoDze-0001VC-SH for pgsql-docs@postgresql.org; Wed, 04 Dec 2013 15:04:02 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoDzb-0008Q5-D2 for pgsql-docs@postgresql.org; Wed, 04 Dec 2013 15:04:02 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1VoDzZ-0003vn-OI; Wed, 04 Dec 2013 10:03:57 -0500 Date: Wed, 4 Dec 2013 10:03:57 -0500 From: Bruce Momjian To: Erik Rijkers Cc: pgsql-docs@postgresql.org Subject: Re: readability tutorial example in pdf Message-ID: <20131204150357.GA17114@momjian.us> References: <3791ded011417fafa56fd4fca92c5dc1.squirrel@webmail.xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <3791ded011417fafa56fd4fca92c5dc1.squirrel@webmail.xs4all.nl> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, May 4, 2013 at 11:00:26PM +0200, Erik Rijkers wrote: > The attached patch breaks code-example into two lines. > > In the pdf (A4) version this line is truncated by several words, making a tutorial example > incomprehensible. > > (The line-break also shows up in the html vrsion but does not look particularly ugly there) Agreed. I ended up splitting it into three lines; applied patch attached. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + --LZvS9be/3tNcYl/X Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="doc.diff" diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml new file mode 100644 index 3c067d5..1e45511 *** a/doc/src/sgml/advanced.sgml --- b/doc/src/sgml/advanced.sgml *************** SELECT depname, empno, salary, avg(salar *** 389,395 **** order in which the rows are output.) Here is an example: ! SELECT depname, empno, salary, rank() OVER (PARTITION BY depname ORDER BY salary DESC) FROM empsalary; --- 389,397 ---- order in which the rows are output.) Here is an example: ! SELECT depname, empno, salary, ! rank() OVER (PARTITION BY depname ORDER BY salary DESC) ! FROM empsalary; --LZvS9be/3tNcYl/X Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --LZvS9be/3tNcYl/X--