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

From Thierry Besancon
Subject Re: is there a way
Date
Msg-id 200205021503.g42F3Yo04784@apollinaire.paris4.sorbonne.fr
Whole thread Raw
In response to is there a way  ("Dorward Villaruz" <dorwardv@ntsp.nec.co.jp>)
List pgsql-general
Dixit "Dorward Villaruz" <dorwardv@ntsp.nec.co.jp> (le Thu, 2 May 2002 10:45:38 -0700) :

� Hello guys, i have a little problem concerning postgres
�
� 1) is there a way to time execution of sql statements in postgres without using any frontend languages like php ?
� 2) is there also a way of inserting 2000000 records to a table without using any frontend languages like php?

You always need a frontend language to speak with a server ;-)

It may be a general purpose web server side language or it may be
other languages like PERL, Python, C... You also have the "psql" unix
shell command that gives you interactive session with the postgresql
database. Just write your SQL statements in a file and say :

        psql -f your-filename your-database

and your statements will be executed. You can time a unix command with
"time cmd" so "time psql -f your-filename your-database".

Best regards.

        Thierry Besancon

pgsql-general by date:

Previous
From: "Joel Burton"
Date:
Subject: Re: is there a way
Next
From: Fran Fabrizio
Date:
Subject: Re: Joe Celko Function : problem