Re: tsvector string representation and parsing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Johannes Graën <johannes(at)selfnet(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: tsvector string representation and parsing
Date: 2022-02-24 15:46:14
Message-ID: 1349227.1645717574@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?UTF-8?Q?Johannes_Gra=c3=abn?= <johannes(at)selfnet(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Wim Bertels 2022-02-24 17:16:48 \set \e and newline
Previous Message Catalin Maftei 2022-02-24 12:48:55 alter table to multi partitions