Re: psql -f and PAGER

2022-03-30 Thread Peter J. Holzer
On 2022-03-29 19:08:44 -0700, David G. Johnston wrote: > On Tue, Mar 29, 2022 at 6:30 PM Paul Jungwirth > wrote: > > I noticed that this runs your pager: > >      psql -f <(echo 'select * from pg_class;') > > but not this: > >      echo

Re: psql -f and PAGER

2022-03-29 Thread David G. Johnston
On Tue, Mar 29, 2022 at 6:30 PM Paul Jungwirth wrote: > I noticed that this runs your pager: > > psql -f <(echo 'select * from pg_class;') > > but not this: > > echo 'select * from pg_class;' | psql > > Indeed running the pager for -f but not stdin see

psql -f and PAGER

2022-03-29 Thread Paul Jungwirth
Hello, I noticed that this runs your pager: psql -f <(echo 'select * from pg_class;') but not this: echo 'select * from pg_class;' | psql A client encountered this when the psql command run from their deb's .postinst file started to hang. We can prevent it with PSQL_PA