From: | Jeff <threshar(at)torgo(dot)978(dot)org> |
---|---|
To: | Victor Spång Arthursson <victor(at)tosti(dot)dk> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Newbie-question |
Date: | 2003-10-28 13:33:57 |
Message-ID: | 20031028083357.596b3b89.threshar@torgo.978.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 28 Oct 2003 14:14:51 +0100
Victor Spång Arthursson <victor(at)tosti(dot)dk> wrote:
> Are presently converting from mysql to postgresql, and my first
> newbiequestion is how to make all the rows in a result from a select
> just "swosh" by? That is, I dont want to see them page for page; just
> to scroll by so I can se the last line with the number of corresponding
> rows.
1. in psql, \pset pager will turn paging off.
Although, if you really want a row count, a much better way to do that is select count(*) from [rest of select statement]
>
> And is there a way to see how long time a query took to execute without
> running a EXPLAIN ANALYSE on the query?
>
in psql, use \timing and it will print how long each query you type in took.
--
Jeff Trout <jeff(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2003-10-28 13:49:37 | Re: Versioning control in PostgreSQL? |
Previous Message | Bruno Wolff III | 2003-10-28 13:33:39 | Re: SELECT with row>32k hangs over SSL-Connection |