From jaspreet@noida.hclt.com Mon May 29 14:24:42 2000 Received: from mercury.noida.hclt.com ([204.160.248.59]) by hub.org (8.9.3/8.9.3) with ESMTP id KAA22743 for ; Mon, 29 May 2000 10:24:42 -0400 (EDT) (envelope-from jaspreet@noida.hclt.com) Received: from jaspreet (jaspreet [204.160.254.232]) by mercury.noida.hclt.com (8.8.7/8.8.7) with SMTP id TAA08006 for ; Mon, 29 May 2000 19:54:24 +0530 Message-ID: <026601bfc97a$054f9d40$e8fea0cc@noida.hclt.com> From: "Jaspreet Singh" To: Subject: Embedded Vacuum sql Date: Mon, 29 May 2000 19:57:29 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0263_01BFC9A8.1ECDB670" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200005/83 This is a multi-part message in MIME format. ------=_NextPart_000_0263_01BFC9A8.1ECDB670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am a developing a PGE application in 6.5.3 using ecpg and libpq. However I am unable to Vacuum Analyze the tables using embedded sql. But t= he same command works from the prompt through vacuumdb comand. This I detect while query. My query takes 1 hr if vacuum hasn't been done o= n the database.=20 I use the following command :- "EXEC SQL VACUUM ANALYZE Kindly let me know how to use embedded sql to vacuum analyze. thanx and regards, jaspreet ------=_NextPart_000_0263_01BFC9A8.1ECDB670 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I am a developing a PGE application in 6.5.3 using = ecpg=20 and libpq.
However I am unable to Vacuum Analyze the tables&nb= sp;=20 using embedded sql. But the same command works from the prompt through vacu= umdb=20 comand.
This I detect while query. My query takes 1 hr if v= acuum=20 hasn't been done on the database.
I use the following command :-
"EXEC SQL VACUUM ANALYZE <Table Name><= /DIV>
Kindly let me know how to use embedded sql to vacuu= m=20 analyze.
 
thanx and regards,
jaspreet
------=_NextPart_000_0263_01BFC9A8.1ECDB670-- From meskes@postgresql.org Tue May 30 10:32:32 2000 Received: from feivel.fam-meskes.de (pC19EBED0.dip0.t-ipconnect.de [193.158.190.208]) by hub.org (8.9.3/8.9.3) with ESMTP id GAA07832 for ; Tue, 30 May 2000 06:32:32 -0400 (EDT) (envelope-from michael@fam-meskes.de) Received: by feivel.fam-meskes.de (Postfix, from userid 1000) id E2DF22BD30; Tue, 30 May 2000 10:23:37 +0200 (CEST) Date: Tue, 30 May 2000 10:23:37 +0200 From: Michael Meskes To: Jaspreet Singh Cc: pgsql-interfaces@postgresql.org Subject: Re: Embedded Vacuum sql Message-ID: <20000530102337.A2904@fam-meskes.de> Mail-Followup-To: Jaspreet Singh , pgsql-interfaces@postgresql.org References: <026601bfc97a$054f9d40$e8fea0cc@noida.hclt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.9i In-Reply-To: <026601bfc97a$054f9d40$e8fea0cc@noida.hclt.com>; from jaspreet@noida.hclt.com on Mon, May 29, 2000 at 07:57:29PM +0530 X-Archive-Number: 200005/95 On Mon, May 29, 2000 at 07:57:29PM +0530, Jaspreet Singh wrote: > I am a developing a PGE application in 6.5.3 using ecpg and libpq. However > I am unable to Vacuum Analyze the tables using embedded sql. But the same > command works from the prompt through vacuumdb comand. This I detect while What exactly doesn't work with embedded sql? I only tried calling vacuum without analyse. And that worked. > query. My query takes 1 hr if vacuum hasn't been done on the database. I > use the following command :- "EXEC SQL VACUUM ANALYZE
Kindly Does ECPG bark on this command? Or is it incorrectly executed? What happens? Michael -- Michael Meskes Michael@Fam-Meskes.De Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!