Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 6BA2B9FBA70 for ; Tue, 6 Mar 2007 11:39:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 22669-07 for ; Tue, 6 Mar 2007 11:39:27 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.238]) by postgresql.org (Postfix) with ESMTP id 85A069FBA9C for ; Tue, 6 Mar 2007 11:39:27 -0400 (AST) Received: by nz-out-0506.google.com with SMTP id r28so2236013nza for ; Tue, 06 Mar 2007 07:39:26 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Hz2gcr4H4BsJUqvVzYxEufZwcdQjLe/2qpn8hzwuL2PD4ByketmsJvA+mK0ZnsvUIbTEzuVBMHjHT/UjYoaYxj4NOQHNKSqnP9DtsZDAvHv7LJ+Es3oGZ5sTGiuc5cUyNZR12ecB+U/wKD+J9BsdXJq25tU9sXw6G44Vo1MNwE8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=p9KuzxKu7IDmLcTMVTo1b5MyYp1yJxE5Sjhfi0e6EXfWZPz1wb/8YxNyqy5aoNr7LWzbJtmRGqAnunUyVwZxtDNFsNvitJwPmkgCjxPlylzlSvda8yV87qfvQlO4tAXJm+go4LPkzr1b8Tsg/RAp03v8VZVuendduw3oB2Aw5IA= Received: by 10.114.112.1 with SMTP id k1mr1748088wac.1173195565846; Tue, 06 Mar 2007 07:39:25 -0800 (PST) Received: by 10.114.166.8 with HTTP; Tue, 6 Mar 2007 07:39:25 -0800 (PST) Message-ID: Date: Tue, 6 Mar 2007 10:39:25 -0500 From: "=?ISO-8859-1?Q?Rodrigo_De_Le=F3n?=" To: PostgreSQL , Pgadmin-Support Subject: Re: [SQL] Time of executed query In-Reply-To: <55c095e90703060520s3e4a1feej65f56cee46fd6700@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <55c095e90703060520s3e4a1feej65f56cee46fd6700@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/22 X-Sequence-Number: 6737 On 3/6/07, Ezequias Rodrigues da Rocha wrote: > Hi list, > > It is possible to retrieve the time of a SQL statement leads to > execute ? I would like to put in my application how much time each > operation leads to finish. > > Any suggestion ? > > -- > Ezequias Rodrigues da Rocha > http://ezequiasrocha.blogspot.com/ > use Mozilla Firefox:http://br.mozdev.org/firefox/ Sorry, didn't see the app part. Use clock_timestamp(). See: http://www.postgresql.org/docs/8.2/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT