Re: View Filtered Rows technique

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Dale Seaburg <kg5lt(at)verizon(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: View Filtered Rows technique
Date: 2018-05-19 17:01:18
Message-ID: CAKFQuwYc6-9kFJefOxgvJddFnx-hu7gkidhAMZ+qLD2+KT_x5A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, May 19, 2018 at 9:55 AM, Dale Seaburg <kg5lt(at)verizon(dot)net> wrote:

> I am looking for a convenient way to search a specific table where a
> specific column contains a string like this: "\2016\ \" (within the
> quote-marks, but not including the quote-marks). I haven't found anything
> in the documentation (8.4.5). I am using the View Data | View Filtered
> Rows method. I was hoping there might be a 'CONTAINS' clause that would do
> the trick. Any clues or help is appreciated.

​This sounds like a pgAdmin question and should be addressed to them.

​https://www.pgadmin.org/support/list/

You should also be checking the pgAdmin docs, not PostgreSQL proper (the
version you indicate is an ancient and unsupported PostgreSQL release).
Using pure SQL you'd do something like:

col ~ '\\\d{6}\\\s+\\' (regular expression match operator)

depending upon what exactly you mean by "like this"...

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2018-05-19 18:39:26 Re: postgres=# VACUUM FULL pg_statistic => ERROR: missing chunk number 0 for toast value .. in pg_toast_2619
Previous Message Dale Seaburg 2018-05-19 16:55:36 View Filtered Rows technique