Re: regexp_matches where clause - PG 9.1 - Mailing list pgsql-general

From Arjen Nienhuis
Subject Re: regexp_matches where clause - PG 9.1
Date
Msg-id CAG6W84L8zq-VSQCHN91xJ1LD8u9tJni6044jyWfcFoOdfO_Z0g@mail.gmail.com
Whole thread Raw
Responses Re: regexp_matches where clause - PG 9.1  (Patrick B <patrickbakerbr@gmail.com>)
List pgsql-general


On Apr 6, 2017 05:57, "Patrick B" <patrickbakerbr@gmail.com> wrote:
Hi guys,

i've got this column:

path_name character varying(255)

I store full S3 bucket path for the attachments of my application on it; example:

/{s3bucket}/filesuser/client/27801123/attachment/4510/main
/{s3bucket}/filesuser/client/27801123/attachment/4510/file


I wanna do a select, where path_name has only 'main' and not anything else.

WHERE path_nane LIKE '%/main'


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: A change in the Debian install
Next
From: Patrick B
Date:
Subject: Re: regexp_matches where clause - PG 9.1