From: | Joseph Brenner <doomvox(at)gmail(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Select works only when connected from login postgres |
Date: | 2016-12-06 05:28:11 |
Message-ID: | CAFfgvXXRAxw_g8QS+oqNH9ywP5-7YYRkU359fV9x_ppndquwhw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Well yeah, trying to run a PAGER that's not there might throw an error.
Or you know, nothing in PAGER might imply "pager off".
> I find it a bit odd that all of your queries were using the pager...did I miss where you reported that setting?
I didn't report it because I wasn't looking in that direction. A
PAGER set to blank for login 'doom' and no PAGER setting for login
'postgres' explains much of what I was seeing, I think: selects run as
'doom' tended to be blank (unless I had a pset no pager somewhere),
selects run as 'postgres' always worked.
On Mon, Dec 5, 2016 at 9:03 PM, David G. Johnston
<david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> On Mon, Dec 5, 2016 at 9:53 PM, Joseph Brenner <doomvox(at)gmail(dot)com> wrote:
>>
>> And I guess I did that intentionally, my .bashrc has
>>
>> # I use emacs shells, I got a "pager" already:
>> export PAGER=''
>>
>
> PAGER= psql --pset=pager=always -c 'select 1;'
> <nothing on the screen>
>
> Remove PAGER= and I'm good.
>
> I guess that psql could be a bit more helpful by reporting something to
> stderr if the value of PAGER is not an executable (platform dependent...)
>
> I find it a bit odd that all of your queries were using the pager...did I
> miss where you reported that setting?
>
> David J.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Swapnil Vaze | 2016-12-06 05:36:12 | Migrating data from DB2 zOS to PostgreSQL |
Previous Message | David G. Johnston | 2016-12-06 05:03:42 | Re: Select works only when connected from login postgres |
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2016-12-06 05:46:13 | Re: Typmod associated with multi-row VALUES constructs |
Previous Message | Michael Paquier | 2016-12-06 05:13:23 | Re: Adding in docs the meaning of pg_stat_replication.sync_state |