Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9167939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:30:45+00:00 2026-06-17T15:30:45+00:00

When I use psql , the command line tool of PostgreSQL, in interactive mode,

  • 0

When I use psql, the command line tool of PostgreSQL, in interactive mode, it lists data as paginated output.

However, because I use psql in a terminal application which can handle long outputs itself, I rather would like to get the whole output without the paginating with the annoying --more-- line.

Is there any way to customise the paging behavior in psql? I tried to set LESS in the surrounding shell environment to cat, but this din’t help.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:30:46+00:00Added an answer on June 17, 2026 at 3:30 pm

    From the fine psql manual:

    \pset option [ value ]
    […]
    pager
    Controls use of a pager
    program for query and psql help output. If the environment variable
    PAGER is set, the output is piped to the specified program.
    Otherwise a platform-dependent default (such as more) is used.

    When the pager option is off, the pager program is not used. When the pager option is on, the pager is used when appropriate

    So you can say this from the psql prompt:

    psql> \pset pager off
    

    to turn the pager off. If you want this to always apply, you can add \pset pager off to your ~/.psqlrc file.

    You can also use \? from the psql prompt to get a quick summary of the special commands at your disposal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

mohpc04pp1: /h/u544835 % psql arco Welcome to psql 8.1.17, the PostgreSQL interactive terminal. Type:
What command or short key can I use to exit the PostgreSQL command line
using the COPY command in postgresql 8.4 to export data of type bytea, this
use strict; use warnings; use Data::Dumper; my %h; my $undef = undef; $h{''}='test2'; $h{$undef}
use LWP::UserAgent; use Data::Dumper; my $ua = new LWP::UserAgent; $ua->agent(AgentName/0.1 . $ua->agent); my $req
I use Postgresql with the PostGIS extensions for ad-hoc spatial analysis. I generally construct
I am dumping my database 'mydatabase' into a text file 'mydatabase.sql' through command line.
I use following command to dump some structures from server' database to be able
I have a bash shell script. I have a psql copy command that has
I just installed postgresql on my mac (lion) using homebrew, and when I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.