pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Corey Huinker <corey.huinker@gmail.com>
Cc: Daniel Verite <daniel@manitou-mail.org>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Subject: Re: Variable substitution in psql backtick expansion
Date: Mon, 04 Sep 2017 16:35:28 -0400
Message-ID: <14258.1504557328@sss.pgh.pa.us> (raw )
In-Reply-To: <alpine.DEB.2.20.1709042116020.16641@lancre >
References: <bc15034d-b421-42ac-89b1-c3485fa1728b@manitou-mail.org >
<CADkLM=dzsbgJdP7KAJnbihxU1XFnWZgit9ye5cWnvkjZXyPbGw@mail.gmail.com >
<alpine.DEB.2.20.1704021805550.4632@lancre >
<CADkLM=c+hm2rc0tkKgC-ZgrLttHT2KkfppE+BC-=i-xj+7V-TQ@mail.gmail.com >
<3926.1491159242@sss.pgh.pa.us >
<alpine.DEB.2.20.1704022151080.9265@lancre >
<CAFj8pRDyaC+FaSxd92CLcuV+UFGhwY7NVVBhqFvxPkhvKNhyww@mail.gmail.com >
<alpine.DEB.2.20.1705211737030.6053@lancre >
<CA+TgmobT3rD6jaZMCs=PWH_khMu6Bb4TwX+r4tbTNA41hx32=w@mail.gmail.com >
<13303.1503698976@sss.pgh.pa.us >
<CA+TgmobXCcEM7uB8_g+tKfB-1gvEyp+Qmmre9bcXU9mgpmW38Q@mail.gmail.com >
<14596.1503701034@sss.pgh.pa.us >
<alpine.DEB.2.20.1708260747110.3627@lancre >
<20786.1503760136@sss.pgh.pa.us >
<alpine.DEB.2.20.1708261740590.17521@lancre >
<24850.1503766425@sss.pgh.pa.us >
<alpine.DEB.2.20.1708261959560.27500@lancre >
<4959.1503774468@sss.pgh.pa.us >
<alpine.DEB.2.20.1708270811060.18068@lancre >
<2947.1504542679@sss.pgh.pa.us >
<alpine.DEB.2.20.1709042116020.16641@! lancre >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> I also like Daniel's idea to update formatting rules, eg following what is
> done for environment variables and accepting that it won't fit in one page
> anyway.
Yeah. When you look at all three portions of the helpVariables output,
it's clear that we have faced this issue multiple times before and not
been too consistent about how we dealt with it. There are places that
go over 80 columns; there are places that break the description into
multiple lines (and some of those *also* exceed 80 columns); there are
places that just shove the description onto the next line.
I think we should go with Daniel's idea for all three parts.
> I like trying to keep the 80 (or 88 it seems) columns limit if possible,
> because my getting older eyes water on long lines.
Me too :-(. Also, it seems like we should not assume that we have
indefinite amounts of space in both dimensions. We've already accepted
the need to page vertically, so let's run with that and try to hold
the line on horizontal space.
> In the documentation, I do not think that both SERVER_VERSION_NAME and
> _NUM (or whatever their chosen name) deserve two independent explanations
> with heavy repeats just one after the other, and being treated differently
> from VERSION_*.
I started with it that way, but it seemed pretty unreadable with the
parenthetical examples added. And I think we need the examples,
particularly the one pointing out that you might get something like "beta".
> Seeing it as is, it calls for having "SERVER_VERSION" as well, but I'm not
> sure of the better way to get it. I tried with "SELECT VERSION() AS
> SERVER_VERSION \gset" but varnames are lowerized.
The problem there is you can't get version() without an extra round trip
to the server --- and an extra logged query --- which people are going to
complain about.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
view thread (96+ messages) latest in thread
Message-ID: <14258.1504557328@sss.pgh.pa.us>
Permalink: ../14258.1504557328@sss.pgh.pa.us/
Also on: postgresql.org/message-id/14258.1504557328@sss.pgh.pa.us
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, coelho@cri.ensmp.fr, robertmhaas@gmail.com, pavel.stehule@gmail.com, corey.huinker@gmail.com, daniel@manitou-mail.org
Subject: Re: Variable substitution in psql backtick expansion
In-Reply-To: <14258.1504557328@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox