Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208649 - dev-db/postgresql need more or other PAGER
Summary: dev-db/postgresql need more or other PAGER
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-03 00:05 UTC by Henning Schild
Modified: 2008-07-18 16:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Schild 2008-02-03 00:05:47 UTC
After installing postgresql on my gfbsd system i could not use the "psql" terminal correctly.
The default pager for this termin is "more" but this does not come with gfbsd.

One solution would be to make postgresql depend on sys-apps/more. And another solution would be to "export PAGER=less" for the whole system.
On my setup PAGER is not set to any default pager which may be a problem for other applications too.
So this bug might not only affect postgresql.

Reproducible: Always

Steps to Reproduce:
1."emerge -C more" or "export PAGER=this_is_not_a_pager"
2.psql
3.inside psql > \h

Actual Results:  
error: "more: not found" or "this_is_not_a_pager: not found"

Expected Results:  
would expect psql help

the simplest solution seems to be to add 

PAGER="/usr/bin/less"

to /etc/env.d/00basic
Comment 1 Alexis Ballier gentoo-dev 2008-07-18 16:15:14 UTC
baselayout 2 installs /etc/profile which contains:
export PAGER=${PAGER:-/usr/bin/less}

See for example:
http://www.gentoo.org/doc/en/openrc-migration.xml#doc_chap2_sect8

So I consider this fixed eventually ;)