Skip site navigation (1) Skip section navigation (2)

Re: Use of backslash in tsearch2

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, teodor(at)sigaev(dot)ru, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Use of backslash in tsearch2
Date: 2006-08-22 00:28:27
Message-ID: 200608220028.k7M0SRu07606@momjian.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > As part of the move to support standard-conforming strings and treat
> > backslash literally, I reviewed the tsearch2 code and found two place
> > that seemed to use \' rather than '', and generated the attached patch. 
> 
> I thought we had decided that that code should not be changed.  It has
> nothing to do with SQL literals, and changing it will create unnecessary
> backwards-compatibility problems.

I don't remember any comment regarding that.  I think it does relate to
SQL literals because it is creating a literal inside a literal. Also, at
the time this was a core-only discussion and I am hoping from a comment
from the tsearch2 folks.

-- 
  Bruce Momjian   bruce(at)momjian(dot)us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

In response to

pgsql-hackers by date

Next:From: mdeanDate: 2006-08-22 00:45:10
Subject: Re: ISBN/ISSN/ISMN/EAN13 module
Previous:From: Bruce MomjianDate: 2006-08-22 00:26:10
Subject: Re: COPY FROM view

pgsql-patches by date

Next:From: Bruce MomjianDate: 2006-08-22 00:48:06
Subject: Re: Use of backslash in tsearch2
Previous:From: Tom LaneDate: 2006-08-22 00:15:28
Subject: Re: Use of backslash in tsearch2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group