From: Oleksii Kliukin <alexk@hintbits.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: regex match and special characters
Date: Sat, 18 Aug 2018 18:12:43 +0300
Message-ID: <D46B147F-6532-4C2A-808F-AADAA160698B@hintbits.com> (raw)
In-Reply-To: <abb828a5-3483-c595-4316-a9ee48837e86@aklaver.com>
References: <VisenaEmail.3c.a2f490fd2f459412.1654333b814@tc7-visena>
<abb828a5-3483-c595-4316-a9ee48837e86@aklaver.com>
Hi Adrian,
> On 16. Aug 2018, at 18:13, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>
> test=# select 'abcd'||chr(8198) ~ 'abcd\s';
> ?column?
> ----------
> t
> (1 row)
>
>
> Wonder if the OP has standard_conforming_strings='off' and
> escape_string_warning='off'?
>
Both are set to ‘on’ for me for all versions (I believe those are default settings). I have 12devel indeed on my test system alongside 9.6, but I’ve tried it as well on PostgreSQL 10 running on a different distro with different locale settings and it produced the same result (check being true).
I think Tom’s answer solves it, although I am wondering how did you get true in the statement quoted above on PostgreSQL 9.6, perhaps that result is actually from PostgreSQL 10?
Cheers,
Oleksii=
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: alexk@hintbits.com, adrian.klaver@aklaver.com, andreas@visena.com
Subject: Re: regex match and special characters
In-Reply-To: <D46B147F-6532-4C2A-808F-AADAA160698B@hintbits.com>
References: <VisenaEmail.3c.a2f490fd2f459412.1654333b814@tc7-visena> <abb828a5-3483-c595-4316-a9ee48837e86@aklaver.com> <D46B147F-6532-4C2A-808F-AADAA160698B@hintbits.com>
* 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