Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: psql wrappe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 29 Topic 9335 of 10118
Post > Topic >>

Re: psql wrapped format default for backslash-d commands

by alvherre@[EMAIL PROTECTED] (Alvaro Herrera) May 9, 2008 at 05:19 PM

Bruce Momjian escribió:

> Of course, running it on a 50-column display in 'aligned' mode isn't
> going to look good either.

This is what I get by pasting from a 50-column aligned psql (8.3):

                                                    QUERY PLAN            
                                        
-------------------------------------------------------------------------------------------------------------------
 Nested Loop  (cost=1.03..25.86 rows=807 width=673) (actual
time=4.349..20.973 rows=1897 loops=1)
   ->  Seq Scan on pg_type  (cost=0.00..8.69 rows=269 width=563) (actual
time=0.019..0.798 rows=271 loops=1)
   ->  Materialize  (cost=1.03..1.06 rows=3 width=110) (actual
time=0.018..0.033 rows=7 loops=271)
         ->  Seq Scan on pg_language  (cost=0.00..1.03 rows=3 width=110)
(actual time=4.296..4.312 rows=7 loops=1)
 Total runtime: 35.041 ms
(5 lignes)


No unwanted line breaks.  Of course, on the terminal it looks narrower,
but this doesn't affect cut'n paste behavior.

My conclusion is that we have to make very sure that "wrapped" is not
the default for explain.

FWIW this is expanded output:

alvherre=# \x
Affichage étendu activé.
alvherre=# explain analyze select * from pg_type, pg_language;
-[ RECORD 1
]-----------------------------------------------------------------------------------------------------------------
QUERY PLAN | Nested Loop  (cost=1.03..25.86 rows=807 width=673) (actual
time=0.055..15.648 rows=1897 loops=1)
-[ RECORD 2
]-----------------------------------------------------------------------------------------------------------------
QUERY PLAN |   ->  Seq Scan on pg_type  (cost=0.00..8.69 rows=269
width=563) (actual time=0.019..0.623 rows=271 loops=1)
-[ RECORD 3
]-----------------------------------------------------------------------------------------------------------------
QUERY PLAN |   ->  Materialize  (cost=1.03..1.06 rows=3 width=110) (actual
time=0.002..0.016 rows=7 loops=271)
-[ RECORD 4
]-----------------------------------------------------------------------------------------------------------------
QUERY PLAN |         ->  Seq Scan on pg_language  (cost=0.00..1.03 rows=3
width=110) (actual time=0.005..0.021 rows=7 loops=1)
-[ RECORD 5
]-----------------------------------------------------------------------------------------------------------------
QUERY PLAN | Total runtime: 19.649 ms



-- 
Alvaro Herrera                               
http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 sup****t

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 29 Posts in Topic:
psql wrapped format default for backslash-d commands
bruce@[EMAIL PROTECTED]   2008-05-09 13:52:24 
Re: psql wrapped format default for backslash-d commands
direvus@[EMAIL PROTECTED]  2008-05-10 04:31:31 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-09 14:37:44 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-09 16:07:57 
Re: psql wrapped format default for backslash-d commands
direvus@[EMAIL PROTECTED]  2008-05-10 04:42:24 
Re: psql wrapped format default for backslash-d commands
aidan@[EMAIL PROTECTED]   2008-05-09 14:51:51 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-09 16:51:17 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-09 16:50:22 
Re: psql wrapped format default for backslash-d
Kevin.Grittner@[EMAIL PRO  2008-05-09 15:47:03 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-09 16:53:52 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-09 17:19:10 
Re: psql wrapped format default for
Kevin.Grittner@[EMAIL PRO  2008-05-09 16:07:37 
Re: psql wrapped format default for
bruce@[EMAIL PROTECTED]   2008-05-09 17:12:34 
Re: psql wrapped format default for backslash-d
Kevin.Grittner@[EMAIL PRO  2008-05-09 16:56:44 
Re: psql wrapped format default for backslash-d commands
tgl@[EMAIL PROTECTED] (T  2008-05-09 23:49:58 
Re: psql wrapped format default for backslash-d commands
bryce2@[EMAIL PROTECTED]   2008-05-12 23:12:55 
Re: psql wrapped format default for backslash-d commands
direvus@[EMAIL PROTECTED]  2008-05-13 16:39:55 
Re: psql wrapped format default for backslash-d commands
bryce2@[EMAIL PROTECTED]   2008-05-13 00:17:06 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-13 10:21:34 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-13 10:43:02 
Re: psql wrapped format default for backslash-d commands
tgl@[EMAIL PROTECTED] (T  2008-05-13 11:47:58 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-13 11:53:09 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-13 12:09:29 
Re: psql wrapped format default for backslash-d commands
tgl@[EMAIL PROTECTED] (T  2008-05-13 12:30:47 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-13 12:57:57 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-13 14:19:16 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-13 14:33:37 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-06-30 15:45:28 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-06-30 15:41:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 7:26:25 CDT 2008.