Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id IAA20282 for postgres-redist; Thu, 1 Sep 1994 08:44:31 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199409011544.IAA20282@nobozo.CS.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id IAA20272; Thu, 1 Sep 1994 08:44:31 -0700
Message-Id: <199409011544.IAA20272@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
From: aoki@cs.berkeley.edu (Paul M. Aoki)
To: bfroehli@AWI-Bremerhaven.DE (Bernd Froehlich)
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: double quotes in postgres string 
Reply-To: aoki@cs.berkeley.edu (Paul M. Aoki)
In-reply-to: Your message of Thu, 1 Sep 94 14:03:30 +0200 
	     <9409011203.AA03467@edvs1.awi-bremerhaven.de> 
Date: Thu, 01 Sep 94 08:44:31 -0700
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Thu, 01 Sep 94 08:44:31 -0700
Resent-XMts: smtp

bfroehli@AWI-Bremerhaven.DE (Bernd Froehlich) writes:
> How do I put double quotes in a postgres string?
> I tried to precede them with a backslash but that did not work:
> * append test(a="\"")\g
> unknown escape given

the monitor uses backslash as its escape character.  use two:
 * append test(a="\\"hello world\\"")\g
--
  Paul M. Aoki          |  University of California at Berkeley
  aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
                        |  Berkeley, CA 94720-1776

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
