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

Re: contrib/ltree patches

From: Teodor Sigaev <teodor(at)stack(dot)net>
To: Dan Langille <dan(at)langille(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org, oleg(at)sai(dot)msu(dot)su
Subject: Re: contrib/ltree patches
Date: 2002-11-27 16:55:07
Message-ID: 3DE4F8EB.4090405@stack.net (view raw or flat)
Thread:
Lists: pgsql-hackers
>>What is the reason for changing delimiter?
> 
> 
> My tree represents a file system.  Here are some entries:
>>>Below are the patches to make this change.  I have also moved the
>>>delimiter to a DEFINE so that other customizations are easily done. 
>>>This is a work in progress.
>>
> 
>>It's good.

> 
> #define ISALNUM(x)   ( isalnum((unsigned int)(x)) || (x) == '_' || 
> (x) == '-' || (x) == '.' || (x) == '+' || (x) == ':' || (x) == '~' || 
> (x) == '%' || (x) == ',' || (x) == '#')
> 
> Given that I am trying to allow any valid filename, I think ISALNUM 
> needs to allow any ASCII character.
> 
> I also think I will need to modify the parsing within lquery_in to 
> allow escaping of characters it recognizes but which may be part of a 
> file name (e.g. :%~ may be part of a file name, but these are special 
> characters to lquery_in).  That I think will be the biggest change.

Ok, I think it's a good extension. Let you prepare cumulative patch. 
Nevertheless, we have no chance to insert this to 7.3 release :(.  Only for 
7.3.1 or even 7.4.

-- 
Teodor Sigaev
teodor(at)stack(dot)net



In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2002-11-27 16:56:34
Subject: Re: FreeBSD, Linux: select, select count(*) performance
Previous:From: Neil ConwayDate: 2002-11-27 16:51:13
Subject: Re: next value expression

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