Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j20L3-0001Nu-87 for pgsql-docs@arkaria.postgresql.org; Wed, 12 Feb 2020 22:18:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j20L1-0003xC-FX for pgsql-docs@arkaria.postgresql.org; Wed, 12 Feb 2020 22:18:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j20L1-0003x5-2k for pgsql-docs@lists.postgresql.org; Wed, 12 Feb 2020 22:18:31 +0000 Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j20Kt-0005iC-KD for pgsql-docs@lists.postgresql.org; Wed, 12 Feb 2020 22:18:30 +0000 Received: by mail-qv1-xf42.google.com with SMTP id q9so783326qvu.7 for ; Wed, 12 Feb 2020 14:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=pGU18Mq3WyWTTK4jo2KU2g2qvmXyYU1r+QM4r6fyWOQ=; b=M0NQ7qiM6CvaNptN0uFMCm6/DfZZra9Xg6QOj/6zJpZj4MUOp6VWnmgThs1HGpFkMe iD7FK25TwMi1f9cUNoXGi/4p8q7t9l2qOM4+sR+rWvR+iMqPtsbrNqqmLUp4NSRICqoC FuI7Rt0B2NJrcO/Z62YFAHw7DfUZ3jquaOGvzlNBchM6mTSv54v9ML2L8bRGNHZ948W5 Jd+gDJsRPhKWRX+RgAazJAWps/Cwnj6UL3dWmznIaMKufAVzcnfILPJ+ObxGlYBYjP7m qGA3fbZgTnmwqVdRNH/6Ddub4obN9BQFizOxhXwHv6Gv/N9mxbP0PhROKXqEPB/0gOHt RxvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=pGU18Mq3WyWTTK4jo2KU2g2qvmXyYU1r+QM4r6fyWOQ=; b=f/3jjOSwiuZjSdU1Z085triEAeM3HfYrAiJpP2Q4ivtAlCYj0vNNRdnQf2IQV6AUOM 839eiuFaIcMa5sP02yqm9Q2DXuue/wIhAsp6ZgcPj8xmw1lxgPhjF7lAAgrLf0lO7yzA c1/TEDXgI7zcmtiGcOKsUZILLzi2XXzeSMG6yctD4+SwkQ3YjHaO/iS5CS6nXEPqKF2g ieE6pmS44P4AhpGCdJ0kzSryFpJQ6RXNwTmXCpJKKzc2bEZ1lbXb3aeyxpAjWWHWBER5 ePqoBUvUq5sEs6Lkhw0JIPdiK0cOzBbZKSL5mxRQ01hZ7OlFUkcVueEiENFxHLPYl7Gy EeFg== X-Gm-Message-State: APjAAAWP7ikIOaou26PvVo+tSktEPgCiMs3wPtjCLS0lJxv4+0ggbKhH ElZHJ8T9ZgVEjCE0jaOqYurijw== X-Google-Smtp-Source: APXvYqyp0UfJ3HrZAhO1YYKZnZuzoiHhVZStHcFOJHmTSUwbFzqU3uPzN0SoSvNwRvQAKlBX3Kmf3A== X-Received: by 2002:a05:6214:1634:: with SMTP id e20mr9178410qvw.205.1581545901824; Wed, 12 Feb 2020 14:18:21 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id u13sm284828qtg.64.2020.02.12.14.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 14:18:21 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 05E60300803; Wed, 12 Feb 2020 19:18:18 -0300 (-03) Date: Wed, 12 Feb 2020 19:18:18 -0300 From: Alvaro Herrera To: Tom Lane Cc: Alexander Lakhin , pgsql-docs@lists.postgresql.org Subject: Re: Getting our tables to render better in PDF output Message-ID: <20200212221818.GA15503@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <16399.1581544950@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Feb-12, Tom Lane wrote: > With a separate argument-types cell it'd likely be > better to just leave the cell empty, but do we want to write > just "→ rettype" in a signature cell? Yeah, it'd look very odd, and certainly the no-parens case makes it worse. I like this end result: > so being consistent with that might suggest including the function name > in function signatures: > > Function Signature > > age age(timestamp) → interval > > now now() → timestamp with time zone > > current_timestamp current_timestamp → timestamp with time zone > > I'm a bit suspicious of how much horizontal space that would eat, but > if we're able to get rid of the separate cell for result type, it > might work out OK. Regarding no-parens function signatures, perhaps we can add a footnote indicating that such functions have this strange shape because of the SQL committee, such as "† This function signature uses no parentheses because the SQL standard defines it in that way." -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services