Re: is there a way - Mailing list pgsql-general

From Joel Burton
Subject Re: is there a way
Date
Msg-id JGEPJNMCKODMDHGOBKDNAEIFCMAA.joel@joelburton.com
Whole thread Raw
In response to is there a way  ("Dorward Villaruz" <dorwardv@ntsp.nec.co.jp>)
List pgsql-general
1) is there a way to time execution of sql statements in postgres without using any frontend languages like php ? 
 
You can use a shell time command to wrap around the psql command. Something like:
 
$ time psql -f sql_commands_to_execute 
 
pg7.3devel (in CVS) lets you "EXPLAIN ANALYZE SELECT ...", which shows actually processing time for a query as well as each individual processing step (!)
2) is there also a way of inserting 2000000 records to a table without using any frontend languages like php? 
 
Write it in plpgsql, plperl, plpython, or (not yet in the official distro) plruby.

pgsql-general by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: is there a way
Next
From: Thierry Besancon
Date:
Subject: Re: is there a way