Skip site navigation (1) Skip section navigation (2)

Re: substring syntax with regexp

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: joseph speigle <joe(dot)speigle(at)jklh(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: substring syntax with regexp
Date: 2004-06-30 15:47:37
Message-ID: 9489.1088610457@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
joseph speigle <joe(dot)speigle(at)jklh(dot)us> writes:
> CREATE or replace FUNCTION hostname() RETURNS setof logpgsql.stats_type as
> '
> declare
> ...
>                 newuri = substr(tempuri from 'http://[^/]*/.*');

You forgot about doubling quotes within a function body :-(

			regards, tom lane

In response to

pgsql-general by date

Next:From: Dennis GearonDate: 2004-06-30 15:52:21
Subject: backups
Previous:From: laurent.marzulloDate: 2004-06-30 15:18:06
Subject: Transaction XID

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group