diff --git a/README.md b/README.md index 849b715..cd3a464 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ smart people at [Hashrocket](http://hashrocket.com/). ### postgres - [Timestamp Functions](postgres/timestamp-functions.md) +- [Toggling The Pager In PSQL](postgres/toggling-the-pager-in-psql.md) - [Turning Timing On](postgres/turning-timing-on.md) - [Word Count for a Column](postgres/word-count-for-a-column.md) diff --git a/postgres/toggling-the-pager-in-psql.md b/postgres/toggling-the-pager-in-psql.md new file mode 100644 index 0000000..87fda4e --- /dev/null +++ b/postgres/toggling-the-pager-in-psql.md @@ -0,0 +1,11 @@ +# Toggling The Pager In PSQL + +When the pager is enabled in `psql`, commands that produce larger output +will be opened in a pager. The pager can be enabled within `psql` by running +`\pset pager on`. + +If you'd like to retain the output of commands, perhaps as reference for +subsequent commands, you can turn the pager off. As you might expect, the +pager can be disabled with `\pset pager off`. + +[source](http://stackoverflow.com/questions/11180179/postgresql-disable-more-output)