| From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
|---|---|
| To: | Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: proposal: psql: check env variable PSQL_PAGER |
| Date: | 2017-07-26 16:19:06 |
| Message-ID: | CAFj8pRAabntREdFwReo_YQeqKnpuBc4nBEMTBvY-kHh2S6Evtg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi
2017-07-26 13:15 GMT+02:00 Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>:
> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
>
> > Hi
> >
> > I wrote a special pager for psql. Surely, this pager is not good for
> paging
> > of man pages. So is not good to set it as global pager. We can introduce
> > new env variable PSQL_PAGER for this purpose. It can work similar like
> > PSQL_EDITOR variable.
> >
> > Notes, comments?
>
> There's already the option to put '\setenv PAGER ...' in .psqlrc, but I
> guess having it work like EDITOR makes sense for consistency, as well as
> not affecting commands spawned from psql via e.g. \!.
>
here is a patch - it is trivial
Regards
Pavel
>
> - ilmari
> --
> "The surreality of the universe tends towards a maximum" -- Skud's Law
> "Never formulate a law or axiom that you're not prepared to live with
> the consequences of." -- Skud's Meta-Law
>
| Attachment | Content-Type | Size |
|---|---|---|
| psql-psql-pager-env.patch | text/x-patch | 2.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sokolov Yura | 2017-07-26 16:39:17 | Re: Increase Vacuum ring buffer. |
| Previous Message | Tom Lane | 2017-07-26 16:18:30 | Re: pg_dump does not handle indirectly-granted permissions properly |