Re: is there a way

From: Thierry Besancon <Thierry(dot)Besancon(at)paris4(dot)sorbonne(dot)fr>
To: "Dorward Villaruz" <dorwardv(at)ntsp(dot)nec(dot)co(dot)jp>
Cc: "Postgres General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: is there a way
Date: 2002-05-02 15:03:34
Message-ID: 200205021503.g42F3Yo04784@apollinaire.paris4.sorbonne.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dixit "Dorward Villaruz" <dorwardv(at)ntsp(dot)nec(dot)co(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shaun Thomas 2002-05-02 15:06:55 Re: What popular, large commercial websites run
Previous Message Shaun Thomas 2002-05-02 14:57:21 Re: What popular, large commercial websites run