39 |
#define SortMem 16 * 1024 |
#define SortMem 16 * 1024 |
40 |
#endif |
#endif |
41 |
|
|
42 |
|
#define ATTR_DELIMITER "{{!}}" |
43 |
|
|
44 |
/* prototype */ |
/* prototype */ |
45 |
char *attr2text(ESTDOC *doc, char *attr); |
char *attr2text(ESTDOC *doc, char *attr); |
46 |
|
|
205 |
|
|
206 |
/* minimum valid attribute length is 10: @a STREQ a */ |
/* minimum valid attribute length is 10: @a STREQ a */ |
207 |
if (! PG_ARGISNULL(2) && strlen(attr) >= 10) { |
if (! PG_ARGISNULL(2) && strlen(attr) >= 10) { |
208 |
elog(DEBUG1,"est_cond_add_attr(%s)", attr); |
elog(DEBUG1,"attributes: %s", attr); |
209 |
est_cond_add_attr(cond, attr); |
char *curr_attr; |
210 |
|
curr_attr = strtok(attr, ATTR_DELIMITER); |
211 |
|
while (curr_attr) { |
212 |
|
elog(DEBUG1,"est_cond_add_attr(%s)", curr_attr); |
213 |
|
est_cond_add_attr(cond, curr_attr); |
214 |
|
curr_attr = strtok(NULL, ATTR_DELIMITER); |
215 |
|
} |
216 |
} |
} |
217 |
|
|
218 |
/* set the search phrase to the search condition object */ |
/* set the search phrase to the search condition object */ |
237 |
/* total number of tuples to be returned */ |
/* total number of tuples to be returned */ |
238 |
if (limit && limit < resnum) { |
if (limit && limit < resnum) { |
239 |
nrows = limit; |
nrows = limit; |
|
elog(INFO, "This is probably a bug in limit implementation. Please report it to dpavlin@rot13.org"); |
|
240 |
} else { |
} else { |
241 |
nrows = resnum - offset; |
nrows = resnum - offset; |
242 |
} |
} |