Search Postgresql Archives

Re: A question about generate_series

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"=?gb18030?B?zsTSuw==?=" <896634148@xxxxxx> writes:
> postgres=# SELECT x FROM generate_series(1, 25, 1) As x;
> &nbsp;x &nbsp;
> ----
> &nbsp; 1
> &nbsp; 2
> &nbsp; 3
> &nbsp; 4
> &nbsp; 5
> &nbsp; 6
> &nbsp; 7
> &nbsp; 8
> &nbsp; 9
> &nbsp;10
> &nbsp;11
> &nbsp;12
> &nbsp;13
> &nbsp;14
> &nbsp;15
> &nbsp;16
> &nbsp;17
> &nbsp;18
> &nbsp;19
> &nbsp;20
> &nbsp;21
> Time: 0.518 ms


> My question is, why postgres didn't print the 22 to 25?

I'm betting there's something broken about your pager
settings, because 21 is as far as the display would get
in a standard-height (24 lines) xterm window.  When I do
this I see

...
 19
 20
 21
--More--

Since you're not getting a prompt but just the subsequent
\timing output, it seems that the rest of the output went
into the bit bucket, which psql would certainly never do
on its own.  But a malfunctioning pager might act that way.

			regards, tom lane





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux