Tom Lane
6450cee473
Fix missed \' to '' conversion.
2006-05-21 21:13:50 +00:00
Bruce Momjian
833e84621c
Change \' to '', for SQL standards compliance. Backpatch to 7.3, 7.4,
...
and 8.0. Later releases already patched.
2006-05-21 19:57:40 +00:00
Teodor Sigaev
2ba15dbfc3
Detoast query in g_intbig_consistent and copy query in g_int_consistent.
...
Minor cleanups.
2006-04-03 10:45:28 +00:00
Tom Lane
ea8eeb4ca7
Fix order of linking of libxslt and libxml2, per Dave Page.
2006-03-10 15:40:06 +00:00
Neil Conway
74f615766c
Patch from Marko Kreen:
...
pgcrypto crypt()/md5 and hmac() leak memory when compiled against
OpenSSL as openssl.c digest ->reset will do two DigestInit calls
against a context. This happened to work with OpenSSL 0.9.6
but not with 0.9.7+.
Reason for the messy code was that I tried to avoid creating
wrapper structure to transport algorithm info and tried to use
OpenSSL context for it. The fix is to create wrapper structure.
It also uses newer digest API to avoid memory allocations
on reset with newer OpenSSLs.
Thanks to Daniel Blaisdell for reporting it.
2006-02-18 20:48:56 +00:00
Joe Conway
6c2fa48885
When the remote query result has a different number of columns
...
than the local query specifies (e.g. in the FROM clause),
throw an ERROR (instead of crashing). Fix for bug #2129 reported
by Akio Iwaasa.
2006-01-03 23:47:24 +00:00
Tom Lane
a559ef6594
There is a signedness bug in Openwall gen_salt code that pgcrypto uses.
...
This makes the salt space for md5 and xdes algorithms a lot smaller than
it should be.
Marko Kreen
2006-01-03 23:46:44 +00:00
Teodor Sigaev
ba6e1b2e72
Fix word's length in pg_regexec call
2005-12-21 13:08:14 +00:00
Teodor Sigaev
9a40b555d3
Fix stupid bug with sizeof
2005-12-06 18:22:21 +00:00
Teodor Sigaev
0c1a3f94c6
Fix incorrect header size macros
2005-11-03 18:15:47 +00:00
Tom Lane
09290098c5
Prevent core dump in contrib version of autovacuum when a table has been
...
dropped. Per report from daveg (not his patch, though).
2005-10-20 16:14:39 +00:00
Teodor Sigaev
b4d107a777
Update Snowball. I have to update it because of
...
old version doesn't available on Snowball's site and new version
of stemmers can't be compiled with old interface.
2005-09-15 11:56:58 +00:00
Tom Lane
497f11845c
int_array_enum function should be using fcinfo->flinfo->fn_extra for
...
working state, not fcinfo->context. Silly oversight on my part in last
go-round of fixes.
2005-08-15 19:05:30 +00:00
Tom Lane
ae1d34f23a
Back-port several small portability fixes to get contrib building
...
cleanly on AIX in the 8.0 branch. Rocco Altier
2005-08-02 01:35:23 +00:00
Tom Lane
ea72596db5
It appears that Darwin (OS X) does not cope well with C functions that
...
have the same name as the containing shared library --- as best I can
tell, the compiler internally creates a function of that name, and does
not warn you about the conflict. Fix buildfarm failure in back branches
by renaming tsearch() trigger function at the C level.
2005-07-18 21:37:23 +00:00
Bruce Momjian
75aed9f0c2
Backpatch to 8.0.X openssl portability fixes to pgcrypto.
2005-07-04 14:42:39 +00:00
Teodor Sigaev
babd4714f6
Prevent to divide by zero and range out of 0..1
2005-06-01 11:45:42 +00:00
Bruce Momjian
928d269abf
Fix pg_autovacuum -s flag to handle values > 2000 by using sleep()
...
instead of pg_usleep.
Backpatch to 8.0.X.
2005-05-11 17:58:32 +00:00
Tom Lane
298e077bc4
Change tsearch2 to not use the unsafe practice of creating functions
...
that return INTERNAL without also having INTERNAL arguments. Since the
functions in question aren't meant to be called by hand anyway, I just
redeclared them to take 'internal' instead of 'text'. Also add code
to ProcedureCreate() to enforce the restriction, as I should have done
to start with :-(
2005-05-03 16:51:22 +00:00
Teodor Sigaev
46edb8efad
workaround for bug in utils/date.h (timetz)
2005-04-27 13:01:27 +00:00
Tom Lane
73c195c607
Fix btree_gist to handle timetz zone correctly per recent changes.
2005-04-25 16:58:18 +00:00
Tom Lane
58d0214ed8
int_aggregate's int_enum() doesn't work correctly with arrays that
...
aren't 1-D, so give an error message instead of failing. Per report
from Ron Mayer.
2005-04-23 05:38:43 +00:00
Teodor Sigaev
cc5b676087
Add comment about permissions on pg_ts* tables
2005-04-19 13:58:11 +00:00
Tom Lane
9e57970860
Put back code mistakenly removed from copy of postmaster's
...
daemonize routine, namely forcing stdin/stdout/stderr to point
to /dev/null. Per Karl Denninger.
2005-04-03 00:02:03 +00:00
Teodor Sigaev
da2010f40b
Fix various comparing functions
2005-03-31 15:10:48 +00:00
Neil Conway
01ebb55c06
Document that the "-P" option to pg_autovacuum is insecure on many
...
platforms, and suggest using ~/.pgpass instead.
2005-03-30 05:06:32 +00:00
Bruce Momjian
7751c06852
Have libpgport link before libpq so that PG client applications are more
...
immunte to changes in libpq's usage of pgport between major versions.
Backpatch to 8.0.X.
2005-03-25 18:18:41 +00:00
Tom Lane
a4500f3262
Previous "64-bit fix" for intagg didn't actually work. This is already
...
fixed properly in CVS tip, but we need a band-aid for back branches.
Per report from Ron Mayer.
2005-03-23 19:06:54 +00:00
Neil Conway
8806b09b82
Some builds (depends on crypto engine support?) of OpenSSL
...
0.9.7x have EVP_DigestFinal function which which clears all of
EVP_MD_CTX. This makes pgcrypto crash in functions which
re-use one digest context several times: hmac() and crypt()
with md5 algorithm.
Following patch fixes it by carring the digest info around
EVP_DigestFinal and re-initializing cipher.
Marko Kreen.
2005-03-12 06:54:31 +00:00
Teodor Sigaev
10d3c07875
Prevent rank change in case of duplicate search terms
2005-03-05 16:17:47 +00:00
Teodor Sigaev
2573029e52
Further fix int64/float8 time/timetz
2005-02-27 09:28:07 +00:00
Teodor Sigaev
1d5b814be9
Further fix time/timetz...
2005-02-27 00:11:35 +00:00
Teodor Sigaev
1c8fbd9b25
Fix float8->int64 transformation
2005-02-25 14:04:39 +00:00
Teodor Sigaev
1c423be404
Simplify defines
2005-02-21 14:10:44 +00:00
Teodor Sigaev
f49d69b813
Fix memory leak for timestamp(with and w/o tz) and time indexes
2005-02-21 10:47:52 +00:00
Tom Lane
d2190ad66e
Make sure contrib C functions are marked strict where needed.
...
Kris Jurka
2005-01-29 22:35:17 +00:00
Tom Lane
49786de18e
Add intset() to README (backpatch teodor's docs fix in HEAD).
2005-01-28 22:58:59 +00:00
Tom Lane
5f0962a233
Now that I look at it, int_array_enum() didn't work either.
2005-01-27 21:50:06 +00:00
Tom Lane
4d43341043
Fix security and 64-bit issues in contrib/intagg. This code could
...
stand to be rewritten altogether, but for now just stick a finger in
the dike.
2005-01-27 21:35:07 +00:00
Tom Lane
e6941a7c7e
Adjust Windows autovacuum service to retry for up to 5 minutes waiting
...
for the postmaster to start. Dave Page
2005-01-26 22:25:23 +00:00
Neil Conway
9ea9892c99
Mark the text_soundex() function as "strict", to avoid crashing on NULL
...
input. Also, may as well mark it "cacheable" as well. From Kris Jurka.
2005-01-26 08:08:04 +00:00
Neil Conway
8e423d32cd
pg_autovacuum fixes from Dave Page:
...
- Dependency services may not be correctly registered when installing as
a Windows Service.
- The sleep time is changed from milliseconds to seconds as it should
be.
- Error messages during service installation/removal are logged to
stderr.
2005-01-24 00:14:23 +00:00
Bruce Momjian
6838635875
Update version restriction on xml2.
2005-01-22 22:14:28 +00:00
Bruce Momjian
4044d702e4
Fix README /contrib/xml2 reference in 8.0 and HEAD.
2005-01-22 21:21:49 +00:00
Teodor Sigaev
5b354d2c7e
Fixes:
...
1 Report error message instead of do nothing in case of error in regex
2 Malloced storage for mask, find and repl part of Affix. This parts may be
large enough in real life (for example in czech, thanks to moje <moje@kalhotky.net>)
2005-01-11 16:07:55 +00:00
Tom Lane
0549de06ba
Fix segfault when xpath_list function is applied to an invalid document.
...
John Gray
2005-01-09 17:40:40 +00:00
Tom Lane
8afe005f42
Consistently use geteuid() not getuid(); there were a few places deviating
...
from our long-established standard.
2005-01-08 22:51:15 +00:00
Tom Lane
7e1c8ef4fc
Some more missed copyright notices. Many of these look like they
...
should have been caught by the src/tools/copyright script ... why
weren't they?
2005-01-01 20:44:34 +00:00
Bruce Momjian
2daed8c5b3
Update copyrights that were missed.
2005-01-01 05:43:09 +00:00
PostgreSQL Daemon
2ff501590b
Tag appropriate files for rc3
...
Also performed an initial run through of upgrading our Copyright date to
extend to 2005 ... first run here was very simple ... change everything
where: grep 1996-2004 && the word 'Copyright' ... scanned through the
generated list with 'less' first, and after, to make sure that I only
picked up the right entries ...
2004-12-31 22:04:05 +00:00