pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feeduse of <END> in psql
6+ messages / 4 participants
[nested] [flat]
* use of <END> in psql
@ 2006-03-13 00:50 Luis P. Mendes <luis_lupe2XXX@netvisaoXXX.pt>
0 siblings, 1 reply; 6+ messages in thread
From: Luis P. Mendes @ 2006-03-13 00:50 UTC (permalink / raw)
To: pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have postgres installed both in a Debian Sarge and in a Slackare 10.2
systems.
When I connect to a database via psql and do a select * from table; I
get the first page of results, considering \pset pager is on.
In Debian, I can press the <end> key to go directly to the last results
or I can use <page up> or <page down> to move across the results.
In the Slackware system, I can't do that. Can someone explain how to
activate this function?
Luis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEFMHYHn4UHCY8rB8RAoq/AJ42AFpih83DUNvjLysLXBzu92aWggCdHOb5
hLa9iZEwF8UzCY27aQ7HVqg=
=PM6a
-----END PGP SIGNATURE-----
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: use of <END> in psql
@ 2006-03-19 02:15 Bruce Momjian <pgman@candle.pha.pa.us>
parent: Luis P. Mendes <luis_lupe2XXX@netvisaoXXX.pt>
0 siblings, 1 reply; 6+ messages in thread
From: Bruce Momjian @ 2006-03-19 02:15 UTC (permalink / raw)
To: Luis P. Mendes <luis_lupe2XXX@netvisaoXXX.pt>; +Cc: pgsql-admin
Luis P. Mendes wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I have postgres installed both in a Debian Sarge and in a Slackare 10.2
> systems.
>
> When I connect to a database via psql and do a select * from table; I
> get the first page of results, considering \pset pager is on.
>
> In Debian, I can press the <end> key to go directly to the last results
> or I can use <page up> or <page down> to move across the results.
>
> In the Slackware system, I can't do that. Can someone explain how to
> activate this function?
Sounds like the PAGER is set differently on the two systems.
--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com
+ If your life is a hard drive, Christ can be your backup. +
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: use of <END> in psql
@ 2006-03-20 18:03 Dianne Yumul <dianne@wellsgaming.com>
parent: Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 2 replies; 6+ messages in thread
From: Dianne Yumul @ 2006-03-20 18:03 UTC (permalink / raw)
To: pgsql-admin
On Mar 18, 2006, at 6:15 PM, Bruce Momjian wrote:
> Luis P. Mendes wrote:
>> When I connect to a database via psql and do a select * from table; I
>> get the first page of results, considering \pset pager is on.
>>
>> In Debian, I can press the <end> key to go directly to the last
>> results
>> or I can use <page up> or <page down> to move across the results.
>>
>> In the Slackware system, I can't do that. Can someone explain how to
>> activate this function?
>
> Sounds like the PAGER is set differently on the two systems.
I have the same issue too. I can only use the space bar to go down
the results, page up and down keys do not work and neither does the
end key.
I have Postgresql 8.0.6, FC 4.
Thank you.
Dianne
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: use of <END> in psql
@ 2006-03-20 19:39 Luis P. Mendes <luis_lupe2XXX@netvisaoXXX.pt>
parent: Dianne Yumul <dianne@wellsgaming.com>
1 sibling, 1 reply; 6+ messages in thread
From: Luis P. Mendes @ 2006-03-20 19:39 UTC (permalink / raw)
To: pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
| I have the same issue too. I can only use the space bar to go down the
| results, page up and down keys do not work and neither does the end key.
Thank you Bruce! I lost any hope that I'd get any answer in this
newsgroup, so I posted the same question at alt.os.linux.slackware:
"""
Set the `PAGER' environment variable to something other than `more'
(psql's default)...
~ $ PAGER=less psql dbname
"""
It works. Now, I just have to make this change permanent. I've read
about psqlrc (or is it .psqlrc?) but it didn't work out, yet. When I
get there I'll post here.
Luis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEHwTdHn4UHCY8rB8RAhuIAJ91J2EKBquaIV7p86TAS63viiEm2wCgumkQ
GwZf/BN3Dob6W7B/9bZ5a9k=
=QOk+
-----END PGP SIGNATURE-----
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: use of <END> in psql
@ 2006-03-21 18:43 Jim C. Nasby <jnasby@pervasive.com>
parent: Dianne Yumul <dianne@wellsgaming.com>
1 sibling, 0 replies; 6+ messages in thread
From: Jim C. Nasby @ 2006-03-21 18:43 UTC (permalink / raw)
To: Dianne Yumul <dianne@wellsgaming.com>; +Cc: pgsql-admin
On Mon, Mar 20, 2006 at 10:03:28AM -0800, Dianne Yumul wrote:
> On Mar 18, 2006, at 6:15 PM, Bruce Momjian wrote:
>
> >Luis P. Mendes wrote:
> >>When I connect to a database via psql and do a select * from table; I
> >>get the first page of results, considering \pset pager is on.
> >>
> >>In Debian, I can press the <end> key to go directly to the last
> >>results
> >>or I can use <page up> or <page down> to move across the results.
> >>
> >>In the Slackware system, I can't do that. Can someone explain how to
> >>activate this function?
> >
> >Sounds like the PAGER is set differently on the two systems.
>
> I have the same issue too. I can only use the space bar to go down
> the results, page up and down keys do not work and neither does the
> end key.
>
> I have Postgresql 8.0.6, FC 4.
This is almost certainly not a PostgreSQL issue. Either the PAGER
environment variable is set differently, or there's some issue with
less/more/whatever you're using.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: use of <END> in psql
@ 2006-03-25 13:13 Jim C. Nasby <jnasby@pervasive.com>
parent: Luis P. Mendes <luis_lupe2XXX@netvisaoXXX.pt>
0 siblings, 0 replies; 6+ messages in thread
From: Jim C. Nasby @ 2006-03-25 13:13 UTC (permalink / raw)
To: Luis P. Mendes <luis_lupe2XXX@netvisaoXXX.pt>; +Cc: pgsql-admin
On Mon, Mar 20, 2006 at 07:39:10PM +0000, Luis P. Mendes wrote:
> It works. Now, I just have to make this change permanent. I've read
> about psqlrc (or is it .psqlrc?) but it didn't work out, yet. When I
> get there I'll post here.
Why not just put that in your ~/.profile / ~/.cshrc / whatever file your
shell uses.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2006-03-25 13:13 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-13 00:50 use of <END> in psql Luis P. Mendes <luis_lupe2XXX@netvisaoXXX.pt>
2006-03-19 02:15 ` Bruce Momjian <pgman@candle.pha.pa.us>
2006-03-20 18:03 ` Dianne Yumul <dianne@wellsgaming.com>
2006-03-20 19:39 ` Luis P. Mendes <luis_lupe2XXX@netvisaoXXX.pt>
2006-03-25 13:13 ` Jim C. Nasby <jnasby@pervasive.com>
2006-03-21 18:43 ` Jim C. Nasby <jnasby@pervasive.com>
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