Re: [HACKERS] problem with splitting a string

2009-08-06 Thread Werner Echezuria
> > > What use is there for fuzzy predicates? I think it would mainly be to > stop more students from coming up with new implementations of the same > thing over and over. > Well, I'm sorry if anyone of us who is involved on these projects have already explain the true usefulness of sqlf and fuzz

Re: [HACKERS] problem with splitting a string

2009-08-05 Thread Alvaro Herrera
Tom Lane escribió: > Well, it'd mainly be a question of whether there's enough interest out > there, which I can't judge. From a project standpoint we just require > that it be BSD-licensed and not impose any undue new burden on > maintainers (thus not wanting new build tools), but beyond that it

Re: [HACKERS] problem with splitting a string

2009-08-05 Thread Tom Lane
Werner Echezuria writes: > Well, I use TextDatumGetCString in the main file, but it remains with the > weird characters. Hmm, no ideas then. Your interface code looks fine (making parse_str const seems a bit strange, but it's not related to the problem at hand). Given that the problems appear at

Re: [HACKERS] problem with splitting a string

2009-08-05 Thread Werner Echezuria
Hi, Well, I use TextDatumGetCString in the main file, but it remains with the weird characters. this is the main file: #include "postgres.h" #include "fmgr.h" #include "gram.h" #include "sqlf.h" #include "utils/builtins.h" extern Datum sqlf(PG_FUNCTION_ARGS); PG_MODULE_MAGIC; PG_FUNCTION_INFO

Re: [HACKERS] problem with splitting a string

2009-08-05 Thread Tom Lane
Werner Echezuria writes: > I'm trying to develop a contrib module in order to parse sqlf queries, I'm > using lemon as a LALR parser generator (because I think it's easier than > bison) and re2c (because I think it's easier than flex) but when I try to > split the string into words postgres add so

[HACKERS] problem with splitting a string

2009-08-05 Thread Werner Echezuria
Hi, I'm trying to develop a contrib module in order to parse sqlf queries, I'm using lemon as a LALR parser generator (because I think it's easier than bison) and re2c (because I think it's easier than flex) but when I try to split the string into words postgres add some weird characters (this wor