Tom Lane
bb36c51fcd
Fix several bugs in tsvectorin, including crash due to uninitialized field and
...
miscomputation of required palloc size. The crash could only occur if the
input contained lexemes both with and without positions, which is probably not
common in practice. The miscomputation would definitely result in wasted
space. Also fix some inconsistent coding around alignment of strings and
positions in a tsvector value; these errors could also lead to crashes given
mixed with/without position data and a machine that's picky about alignment.
And be more careful about checking for overflow of string offsets.
Patch is only against HEAD --- I have not looked to see if same bugs are
in back-branch contrib/tsearch2 code.
2007-10-23 00:51:23 +00:00
Tom Lane
f551348417
Clarify example of planner cost computation, per a suggestion from
...
James Shaw. Also update a couple of examples to reflect 8.3's improved
plan-printing code.
2007-10-22 21:34:33 +00:00
Tom Lane
3e17ef1cfa
Adjust ts_debug's output as per my proposal of yesterday: show the
...
active dictionary and its output lexemes as separate columns, instead
of smashing them into one text column, and lowercase the column names.
Also, define the output rowtype using OUT parameters instead of a
composite type, to be consistent with the other built-in functions.
2007-10-22 20:13:37 +00:00
Tom Lane
7ec280e117
Be careful to get share lock on each page before computing its free space.
...
ITAGAKI Takahiro
2007-10-22 17:29:35 +00:00
Tom Lane
88ae1bd3f2
Remove an Assert that's been obsoleted by recent changes in the parsetree
...
representation of DECLARE CURSOR. Report and fix by Heikki.
2007-10-22 17:04:35 +00:00
Magnus Hagander
f04b8a8e2c
Increase FD_SETSIZE on Win32 to allow for more than 54 clients.
...
Per Greg Stark & Dave Page
2007-10-22 10:40:47 +00:00
Tom Lane
6088bfb8b6
Create a quick-and-dirty list of known migration issues for pre-8.3
...
users of tsearch. This isn't meant to be permanent documentation,
but to call out the areas that need either fixing or real documentation.
2007-10-22 03:37:04 +00:00
Tom Lane
f1c87830b5
Add a useless return statement to suppress a warning seen with some
...
versions of gcc (I'm seeing it with Apple's gcc 4.0.1). I think the
reason we did not see this before was that the assert() macros in the
regex code were all no-ops till recently.
2007-10-22 01:02:22 +00:00
Tom Lane
1ea47dd8cb
Fix shared tsvector/tsquery input code so that we don't say "syntax error in
...
tsvector" when we are really parsing a tsquery. Report the bogus input,
too. Make styles of some related error messages more consistent.
2007-10-21 22:29:56 +00:00
Tom Lane
dfc6f130b4
Editorial overhaul for text search documentation. Organize the info
...
more clearly, improve a lot of unclear descriptions, add some missing
material. We still need a migration guide though.
2007-10-21 20:04:37 +00:00
Bruce Momjian
6cb00e67ef
Update Japanese FAQ.
...
Jun Kuwamura
2007-10-20 23:59:15 +00:00
Bruce Momjian
b002af5698
More release note word-smithing.
2007-10-20 23:41:23 +00:00
Tom Lane
531ead8ab4
Adjust error message to agree with documentation. The tsearch documentation
...
uniformly calls these things weights, not classes.
2007-10-20 21:06:20 +00:00
Bruce Momjian
24f3a77112
Fix release tag spelling typo.
2007-10-20 20:19:06 +00:00
Bruce Momjian
1ba96ef04f
More release note wording improvements.
2007-10-20 16:41:09 +00:00
Bruce Momjian
7b98f6be6e
Update German FAQ.
...
Ian Barwick
2007-10-20 15:49:09 +00:00
Tom Lane
41a312a1f6
Add a note pointing out that you can't log to syslog without tweaking
...
the syslog configuration file (at least not on most known Unixen).
I dunno why we hadn't had that info in the docs all along ...
2007-10-20 04:00:38 +00:00
Tom Lane
638bd34f89
Found another small glitch in tsearch API: the two versions of ts_lexize()
...
are really redundant, since we invented a regdictionary alias type.
We can have just one function, declared as taking regdictionary, and
it will handle both behaviors. Noted while working on documentation.
2007-10-19 22:01:45 +00:00
Tom Lane
ba6b0bfd63
ts_rewrite() does not return a set, only one row; fix mislabeling in
...
pg_proc.h.
2007-10-19 19:48:34 +00:00
Bruce Momjian
6fe5885cdf
More indenting cleanup for release notes.
2007-10-19 01:56:06 +00:00
Bruce Momjian
35dab98e1b
Consistently indent release notes for prior releases.
2007-10-18 23:34:54 +00:00
Bruce Momjian
decff24fe2
More release wording adjustments.
2007-10-18 23:05:06 +00:00
Bruce Momjian
52c51a45e6
More indenting cleanup, tag additions.
2007-10-18 16:47:58 +00:00
Bruce Momjian
f031610297
Move a few items into migration from the main changes section. Indent
...
8.3 consistently.
2007-10-18 16:45:05 +00:00
Neil Conway
35342395c0
Minor fixes for the release notes.
2007-10-18 06:07:23 +00:00
Bruce Momjian
403b6fd9a9
Small changes to release note descriptions.
2007-10-18 05:39:06 +00:00
Bruce Momjian
62c99fc289
First pass over release documentation. I trimmed down some of the
...
entries and removed a few.
2007-10-18 05:15:48 +00:00
Bruce Momjian
6bec963aa5
Re-add FAQ item:
...
<H3 id="item4.19">4.19) Why do I get "relation with OID #####
does not exist" errors when accessing temporary tables in PL/PgSQL
functions?</H3>
2007-10-17 17:34:51 +00:00
Tom Lane
26cbf791ec
Add missing entry for PG_WIN1250 encoding, per gripe from Pavel Stehule.
...
Also enable translation of PG_WIN874, which certainly seems to have an
obvious translation now, though maybe it did not at the time this table's
ancestor was created.
2007-10-17 15:24:04 +00:00
Tom Lane
6efae5bf2a
Another round of editorialization on the text search documentation.
...
Notably, standardize on using "token" for the strings output by a parser,
while "lexeme" is reserved for the normalized strings produced by a
dictionary.
2007-10-17 01:01:28 +00:00
Bruce Momjian
cb0d539d05
Mention Slony as just an example.
2007-10-16 19:44:18 +00:00
Magnus Hagander
d8c5edae3b
Fix the URL properly per Robert Treat.
2007-10-16 19:04:34 +00:00
Tom Lane
2011bebc89
Use 'token' not 'lexeme' to describe the output of a parser.
2007-10-16 18:02:26 +00:00
Tom Lane
56303abff0
Tweak toast-related logic in heapam.c so that the toaster is only invoked
...
when relkind = RELKIND_RELATION. This syncs these tests with the Asserts
in tuptoaster.c, and ensures that we won't ever try to, for example,
compress a sequence's tuple. Problem found by Greg Stark while stress-testing
with much-smaller-than-normal page sizes.
2007-10-16 17:05:26 +00:00
Tom Lane
9a4b29d832
Teach pgxs.mk and Install.pm how to install files from a contrib module
...
into SHAREDIR/tsearch_data. Use this instead of ad-hoc coding in
dict_xsyn/Makefile. Should fix current ContribCheck failures on MSVC.
2007-10-16 16:00:00 +00:00
Bruce Momjian
4fef90dfed
Add doc clarifications for warm standby.
2007-10-16 14:56:51 +00:00
Magnus Hagander
aad991b41b
Update URLs to a couple of external projects
2007-10-16 12:14:33 +00:00
Magnus Hagander
699a0ef7bb
Re-allow UTF8 encodings on win32. Since UTF8 is converted to
...
UTF16 before being used, all (valid) locales will work for this.
2007-10-16 11:30:16 +00:00
Peter Eisentraut
2d5b16bb10
Remove quotes around locale names in some places for consistency.
2007-10-16 09:09:11 +00:00
Bruce Momjian
59dc5d0e11
Slony switch is only seconds of downtime.
2007-10-16 05:37:40 +00:00
Bruce Momjian
e61d252152
Add mention of Slony for in-place upgrades.
2007-10-16 02:48:57 +00:00
Tom Lane
febd60bf5d
Fix pg_wchar_table[] to match revised ordering of the encoding ID enum.
...
Add some comments so hopefully the next poor sod doesn't fall into the
same trap. (Wrong comments are worse than none at all...)
2007-10-15 22:46:27 +00:00
Tom Lane
4b21d1f09b
Remove obsolete examples of add-on parsers and dictionary templates;
...
these are more easily and usefully maintained as contrib modules.
Various other wordsmithing, markup improvement, etc.
2007-10-15 21:39:57 +00:00
Tom Lane
5fcb079858
Add sample text search dictionary templates and parsers, to replace the
...
hard-to-maintain textual examples currently in the SGML docs. From
Sergey Karpov.
2007-10-15 21:36:50 +00:00
Tom Lane
fb631dba2a
Include NOLOGIN roles in the 'flat' password file. In the original
...
coding this was seen as useless, but the problem with not including them
is that the error message will often be something about authentication
failure, rather than the more helpful one about 'role is not permitted
to log in'. Per discussion.
2007-10-15 15:11:29 +00:00
Tom Lane
7cf3ff109d
make install is supposed to install everything under src/include/,
...
but it was missing a bunch of recently-added subdirectories.
2007-10-14 17:07:51 +00:00
Tom Lane
cd8e1f50dd
Ooops, forgot about adding -DFRONTEND.
2007-10-13 23:22:46 +00:00
Tom Lane
18e3fcc31e
Migrate the former contrib/txid module into core. This will make it easier
...
for Slony and Skytools to depend on it. Per discussion.
2007-10-13 23:06:28 +00:00
Tom Lane
17333b6d09
Remove contrib/txid, in preparation for migrating it into core.
2007-10-13 22:59:43 +00:00
Tom Lane
041a8b37f5
Try to fix msvc build for recent initdb changes.
2007-10-13 22:55:38 +00:00