pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Johannes Graƫn <johannes@selfnet.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: tsvector string representation and parsing
Date: Thu, 24 Feb 2022 10:46:14 -0500
Message-ID: <1349227.1645717574@sss.pgh.pa.us> (raw)
In-Reply-To: <54593f15-6b3b-086e-ce1e-69f0af9d38a9@selfnet.de>
References: <9e1f312a-92cf-e002-9bfd-728aa450ee09@selfnet.de>
	<1259438.1645655411@sss.pgh.pa.us>
	<54593f15-6b3b-086e-ce1e-69f0af9d38a9@selfnet.de>

=?UTF-8?Q?Johannes_Gra=c3=abn?= <johannes@selfnet.de> writes:
> Before using format(), I tried just generating those strings by doubling 
> any single quote or backslash and enclosing the whole string in single 
> quotes, but that didn't seem a safe way, though it works in principle:

That's the documented requirement, so I don't see why it wouldn't be
safe.

			regards, tom lane





view thread (4+ messages)

Message-ID: <1349227.1645717574@sss.pgh.pa.us>
Permalink:  ../1349227.1645717574@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1349227.1645717574@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, johannes@selfnet.de
  Subject: Re: tsvector string representation and parsing
  In-Reply-To: <1349227.1645717574@sss.pgh.pa.us>
  References: <9e1f312a-92cf-e002-9bfd-728aa450ee09@selfnet.de> <1259438.1645655411@sss.pgh.pa.us> <54593f15-6b3b-086e-ce1e-69f0af9d38a9@selfnet.de> <1349227.1645717574@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox