Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 0286A9FA19D for ; Thu, 7 Dec 2006 21:55:21 -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 50200-10 for ; Thu, 7 Dec 2006 21:55:15 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by postgresql.org (Postfix) with ESMTP id A6ED69FA136 for ; Thu, 7 Dec 2006 21:55:15 -0400 (AST) Received: by py-out-1112.google.com with SMTP id d32so354728pye for ; Thu, 07 Dec 2006 17:55:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RMGhhCTnPs7f+KgZETpqEdBkKskPDRhqWUt1FpL4YqRQ9iUazfoVuNIH62kYiRdYEgr8+qHM4rMXRWK9mxGytcLO+5dLstYeQmhXfr3XCJ/KWaNIoFjdWVteQXOW0w8Sf1LvQOaHjgcCPpGsH7RMygUschkLofSQhaNWcBAW9ok= Received: by 10.35.9.15 with SMTP id m15mr2266211pyi.1165542914464; Thu, 07 Dec 2006 17:55:14 -0800 (PST) Received: by 10.35.80.8 with HTTP; Thu, 7 Dec 2006 17:55:14 -0800 (PST) Message-ID: Date: Fri, 8 Dec 2006 07:25:14 +0530 From: "Rajesh Kumar Mallah" To: "anuradha devi" Subject: Re: pgdump Cc: pgsql-admin@postgresql.org In-Reply-To: <693379.46863.qm@web90510.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <693379.46863.qm@web90510.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/50 X-Sequence-Number: 23842 On 12/8/06, anuradha devi wrote: > Hi > I have a pgdump.sql file and i want to restore it.The postgreSQL database > server is running and i issue the command psql -U postgres pgdump.sql in the > command prompt. > i get the following error. > C:\Program Files\PostgreSQL\8.2\bin>psql -U postgres pgdump.sql > psql: could not connect to server: Invalid argument (0x00002726/10022) > Is the server running on host "???" and accepting > TCP/IP connections on port 5432? Hi, This error means the psql client is not able to connect to the server that (may or maynot) be running in the machine. Make sure that the server is running. see if the process postmaster is running. once the server is running the command to restore is the command to run a sql script file is : psql -U postgres -f pgdump.sql (you missed the -f) Regds mallah. > Thanks > Anuradha > > > ________________________________ > Everyone is raving about the all-new Yahoo! Mail beta. > >