Teodor Sigaev
bb8998a475
Fix parser bug on Windows with UTF8 encoding and C locale, the reason was
...
sizeof(wchar_t) = 2 instead of 4.
19 years ago
Teodor Sigaev
f2a01b0d5a
Fix localization support for multibyte encoding and C locale.
...
Slightly reworked patch from Tatsuo Ishii
19 years ago
Bruce Momjian
f99a569a2e
pgindent run for 8.2.
20 years ago
Bruce Momjian
f3d99d160d
Add CVS tag lines to files that were lacking them.
20 years ago
Teodor Sigaev
cb4ea994c6
Improve support of multibyte encoding:
...
- tsvector_(in|out)
- tsquery_(in|out)
- to_tsvector
- to_tsquery, plainto_tsquery
- 'simple' dictionary
20 years ago
Teodor Sigaev
faacdab101
Improve tag recognizing
20 years ago
Teodor Sigaev
9551ab2fe9
Fix small memory leak
20 years ago
Teodor Sigaev
4f94b49a31
Improve word parser.
...
- allow ~ in filenames
- -8.2.1 now is '-' and '8.2.1' instead of '-8.2' '.' '3'
- '.text' now is not a file
20 years ago
Teodor Sigaev
e8c81e179e
Improve word parser.
...
- improve file and path recognition
- fix misspeling
- improve tag recognition
20 years ago
Bruce Momjian
436a2956d8
Re-run pgindent, fixing a problem where comment lines after a blank
...
comment line where output as too long, and update typedefs for /lib
directory. Also fix case where identifiers were used as variable names
in the backend, but as typedefs in ecpg (favor the backend for
indenting).
Backpatch to 8.1.X.
20 years ago
Teodor Sigaev
3c6cd8a113
Fixes motivated by snake and spoonbill pgbuildfarm members
20 years ago
Teodor Sigaev
62699337bc
remove forgotten // comments
20 years ago
Teodor Sigaev
c52795d18a
Text parser rewritten:
...
- supports multibyte encodings
- more strict rules for lexemes
- flex isn't used
Add:
- tsquery plainto_tsquery(text)
Function makes tsquery from plain text.
- &&, ||, !! operation for tsquery for combining
tsquery from it's parts: 'foo & bar' || 'asd' => 'foo & bar | asd'
20 years ago
Tom Lane
c62b29a603
Fix several contrib makefiles that failed in VPATH builds, particularly
...
when not using gcc (which has slightly nonstandard inclusion rules).
20 years ago
Tom Lane
ad148c4154
Suppress warnings on platforms where fprintf is a macro (eg, recent
...
Fedora). This was already done by somebody for the core flex files,
but these contrib files seem to have been missed.
20 years ago
Tom Lane
0b36cb83dc
PGXS should be set with := not =, as specified in the documentation,
...
to avoid useless multiple executions of pg_config.
21 years ago
Teodor Sigaev
f82b853b47
1 Update Snowball sources
...
2 Makefile fixes
21 years ago
Tom Lane
0636d55843
Fix some more 'old-style parameter declaration' warnings.
21 years ago
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
22 years ago
Teodor Sigaev
bb89237531
1 Eliminate duplicate field HLWORD->skip
...
2 Rework support for html tags in parser
3 add HighlightAll to headline function for generating highlighted
whole text with saved html tags
22 years ago
Tom Lane
fa96a5e15b
Add %option nodefault to all our flex lexers. Fix a couple of rule gaps
...
exposed thereby. AFAICT these would not lead to any worse problems than
junk emitted on the backend's stdout, but we should have the option to
catch possible worse errors in future.
22 years ago
Teodor Sigaev
a5a68766e1
One more fix confusion
22 years ago
Teodor Sigaev
8f678600c2
Avoid confusion start_parse_str function with tsearch V1
22 years ago
PostgreSQL Daemon
969685ad44
$Header: -> $PostgreSQL Changes ...
22 years ago
Tom Lane
3f43446e36
Persuade tsearch/tsearch2 to work (or at least pass their regression
...
tests) when using flex 2.5.31. The fix is to *not* try to use palloc
and pfree for allocations within the lexer; when you do that, the
yy_buffer_stack gets freed at inopportune times. The code is already
set up to do manual deallocation, so I see no particular advantage to
using palloc anyway.
23 years ago
Peter Eisentraut
3d0d78ce2f
Bring the makefiles up to our conventions.
23 years ago
Teodor Sigaev
d3fe721a40
Eliminate function start_parse_fh and macro YY_INPUT
23 years ago
Tom Lane
3b29525a79
Sub-Makefiles need to explicitly add CFLAGS_SL to CFLAGS, else their
...
object files do not get built with -fpic.
23 years ago
Tom Lane
f237a80d8a
Fix to build correctly outside source tree.
23 years ago
Teodor Sigaev
d6f0f44b55
make sub-Makefiles in the sub-directories
23 years ago
Bruce Momjian
089003fb46
pgindent run.
23 years ago
Teodor Sigaev
b88605337e
tsearch2 module
23 years ago