Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 47CED9FBC1C for ; Mon, 4 Jun 2007 17:19:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 14087-06 for ; Mon, 4 Jun 2007 17:19:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by postgresql.org (Postfix) with ESMTP id E7F699FB8B5 for ; Mon, 4 Jun 2007 17:19:12 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so346976ana for ; Mon, 04 Jun 2007 13:19:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=uioHR/thOINQnfXsp0QO08s9Lt3cEDenoF2FUG9kgwDYOvUxGmlAiNTvQFXwWu0p75d0v65cE9y2mFRgIYZCFJRUDUes31Ki2CbZRnE4fo6Z299nH5Y8ehTi40VMU2jWHSP9i4yyNH+SV85bPrnOvDdlAtHeXW6gQt/kqStym4o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=KKtMY4JMWtc6WigkpFIYtA3AqeTBkwP4ukMD5yJI2bCkiK7oC+orxz2E7+BTIDxYqIzqHNvfqZ3WWbwIREhzyLAmIDCar4xSJ7LBlv2kYhUdZaiA+6w4F4QbYCZMTjXgmYMTY8+z9C3vbMswD9R7RSniI9lo5DiGbEVvBRSQd2M= Received: by 10.100.95.19 with SMTP id s19mr2788810anb.1180988351277; Mon, 04 Jun 2007 13:19:11 -0700 (PDT) Received: by 10.100.173.9 with HTTP; Mon, 4 Jun 2007 13:19:11 -0700 (PDT) Message-ID: Date: Mon, 4 Jun 2007 16:19:11 -0400 From: "Shoaib Mir" To: "Ranieri Mazili" Subject: Re: [SQL] Inserting a path into Database Cc: pgsql-general@postgresql.org, pgsql-sql@postgresql.org In-Reply-To: <466471C8.40506@terra.com.br> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11492_30902018.1180988351242" References: <466471C8.40506@terra.com.br> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/353 X-Sequence-Number: 115176 ------=_Part_11492_30902018.1180988351242 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline If you are on 8.1 you can use double qoutes ( 'C:\\Program Files\\My program' ) on in 8.2 you can use the new "backslash_quote (string)" setting. You can find help on "backslash_quote (string)" at --> http://www.postgresql.org/docs/current/static/runtime-config-compatible.html -- Shoaib Mir EnterpriseDB (www.enterprisedb.com) On 6/4/07, Ranieri Mazili wrote: > > Hello, > > I need to insert a path into a table, but because "\" I have a error by > postgres, so how can I insert a path like bellow into a table: > > insert into production values ('C:\Program Files\My program'); > > I appreciate any help > Thanks > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > ------=_Part_11492_30902018.1180988351242 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline If you are on 8.1 you can use double qoutes ( 'C:\\Program Files\\My program' ) on in 8.2 you can use the new "backslash_quote (string)"  setting.

You can find help on " backslash_quote (string)" at --> http://www.postgresql.org/docs/current/static/runtime-config-compatible.html

--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 6/4/07, Ranieri Mazili < ranieri.oliveira@terra.com.br> wrote:
Hello,

I need to insert a path into a table, but because "\" I have a error by
postgres, so how can I insert a path like bellow into a table:

insert into production values ('C:\Program Files\My program');

I appreciate any help
Thanks

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

------=_Part_11492_30902018.1180988351242--