Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 304E84759C4 for ; Tue, 18 Jun 2002 03:52:31 -0400 (EDT) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by postgresql.org (Postfix) with SMTP id 9466D4759BA for ; Tue, 18 Jun 2002 03:52:29 -0400 (EDT) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Tue Jun 18 09:35:35 2002 +0200 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id JAA10156; Tue, 18 Jun 2002 09:35:34 +0200 (METDST) From: Christoph Haller Message-Id: <200206180735.JAA21303@rodos> Subject: Re: Request for builtin function: Double_quote To: josh@agliodbs.com Date: Tue, 18 Jun 2002 9:35:34 METDST Cc: pgsql-sql@postgresql.org In-Reply-To: <200206171334.01532.josh@agliodbs.com>; from "Josh Berkus" at Jun 17, 102 10:39 pm X-Mailer: Elm [revision: 212.4] X-Archive-Number: 200206/224 X-Sequence-Number: 8189 Josh, I'm not sure what you mean by 'builtin C function'. There is one already size_t PQescapeString (char *to, const char *from, size_t length); Or do you mean a String Function like substring(string [from integer] [for integer]) I would rather call it 'builtin sql function'. Regards, Christoph > > Folks, > > Given the amount of qoute nesting we do in Postgres, I thought that we need a > function that handles automatic doubling of quotes within strings. I've > written one in PL/pgSQL (below). I'd really love to see this turned into a > builtin C function. > > -Josh >