X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id E43A411F6CED for ; Wed, 19 Apr 2006 09:11:42 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: -1.522 X-Spam-Level: X-Spam-Status: No, score=-1.522 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, HTML_TEXT_AFTER_BODY=0.115, NO_REAL_NAME=0.961] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id ygv2P4pKqNJc for ; Wed, 19 Apr 2006 09:11:12 -0300 (ADT) X-Greylist: delayed 00:32:53.411253 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id ECE3C11F60B4 for ; Wed, 19 Apr 2006 09:11:05 -0300 (ADT) Received: from wip-ectls-mx1.wipro.com (wip-ectls-mx1.wipro.com [203.91.193.21]) by svr4.postgresql.org (Postfix) with ESMTP id 04C585AF894 for ; Wed, 19 Apr 2006 11:37:32 +0000 (GMT) Received: from wip-ectls-mx1.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 1765F220E17 for ; Wed, 19 Apr 2006 15:31:03 +0530 (IST) Received: from blr-ec-bh02.wipro.com (blr-ec-bh02.wipro.com [10.201.50.92]) by wip-ectls-mx1.wipro.com (Postfix) with ESMTP id EDFF022022C for ; Wed, 19 Apr 2006 15:31:02 +0530 (IST) Received: from swagath.wipro.com ([10.200.50.199]) by blr-ec-bh02.wipro.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 19 Apr 2006 15:31:01 +0530 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C66398.29E28C50" Subject: Problem with /usr/local/pgsql/bin/psql Date: Wed, 19 Apr 2006 15:31:01 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with /usr/local/pgsql/bin/psql Thread-Index: AcZjmCmmXXNhW19jR8O49GRchQCX+A== From: To: X-OriginalArrivalTime: 19 Apr 2006 10:01:01.0998 (UTC) FILETIME=[2A2674E0:01C66398] X-Archive-Number: 200604/231 X-Sequence-Number: 21400 This is a multi-part message in MIME format. ------_=_NextPart_001_01C66398.29E28C50 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi , =0D I am trying to insert data into the table via shell script using psql command. But it giving syntax error. the same query is finely working pgAdmin III client. The query and error given below. =0D Eg: /usr/local/pgsql/bin/psql -d temp -c 'insert into temp.ip_mapping_tb(ip,location) values('192.100.9.51','FirstFloor')' =0D ERROR: syntax error at or near ".9" at character 85 LINE 1: ...pping_tb(ip,location) values(192.100.9.51,Firs... =0D Also when i am givinf Firstfloor as First Floor it was giving error =0D /usr/local/pgsql/bin/psql -d temp -c 'insert into temp.ip_mapping_tb(ip,location) values('192.100.9.51','First Floor')' =0D psql: FATAL: role "Floor)" does not exist =0D =0D Thanks and Regards Dhanesh =0D The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.=0D WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email. =0D www.wipro.com ------_=_NextPart_001_01C66398.29E28C50 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi=0D ,
 
    I=0D am trying to insert data into the table via shell script using psql=0D command.
   =0D But it giving syntax error. the same query is finely working pgAdmin III=0D client.
   =0D The query and error given below.
 
   =0D Eg:
       =0D /usr/local/pgsql/bin/psql -d temp -c 'insert into=0D temp.ip_mapping_tb(ip,location) =0D values('192.100.9.51','FirstFloor')'
 
       = ERROR: =0D syntax error at or near ".9" at character=0D 85
        LINE 1:=0D ...pping_tb(ip,location) = values(192.100.9.51,Firs...
 
        Also= when i=0D am givinf Firstfloor as First Floor it was giving error
 
       =0D /usr/local/pgsql/bin/psql -d temp -c 'insert into=0D temp.ip_mapping_tb(ip,location)  values('192.100.9.51','First=0D Floor')'
 
        psql:= =0D FATAL:  role "Floor)" does not exist

 

       

Thanks and=0D Regards

Dhanesh

 

The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email.

www.wipro.com
------_=_NextPart_001_01C66398.29E28C50--