escaping wildcard chars - Mailing list pgsql-general

From Dan Wilson
Subject escaping wildcard chars
Date
Msg-id 008801bed726$ffdc2860$ac0bfea9@dwilson
Whole thread Raw
Responses Re: [GENERAL] escaping wildcard chars
List pgsql-general
I am trying to pull in the different types allowed by postgres for a create
function statement and am having problems with the types that start with an
underscore (_).  Because the underscore is the wildcard  for a single
character, I cannot perform the  following query correctly.

SELECT typname from pg_type WHERE NOT LIKE '_%'

It gives me an empty set.

Is there any way to escape the underscore.  I tried to use '\_%', but that
didn't help.  Any suggestions?

-Dan


pgsql-general by date:

Previous
From: "Dan Wilson"
Date:
Subject: Re: [GENERAL] pg-dump -- primary Key
Next
From: "Giuseppe Frangiamone"
Date:
Subject: declarative foreign keys in Postgresql