Bruce Momjian
f6e603cffa
Add new -x XID option to /contrib/pg_resetxlog for future pg_upgrade use.
2002-01-10 17:51:52 +00:00
Tom Lane
92a2598f97
The result of getopt() should be compared to -1, not EOF, per
...
pgsql-hackers discussion of this date.
2002-01-10 01:11:45 +00:00
Bruce Momjian
f88aa2d653
Update my2pg to version 1.22.
2002-01-07 22:36:51 +00:00
Tom Lane
6d6b3e911c
Add variants of digest() and hmac() that accept text inputs.
...
Marko Kreen says:
This is so obvious that I would like to make it 'official'.
Seems like the theology around bytea<>text casting kept me from
seeing the simple :)
2002-01-07 18:56:09 +00:00
Bruce Momjian
b490469cb9
> > On Fri, Dec 21, 2001 at 11:43:21AM +0800, Christopher Kings-Lynne
...
wrote:
> > > Just testing pgcrypto on freebsd/alpha. I get some warnings:
> > They should be harmless, although I should fix them.
>
> The actual code is:
>
> if ((dlen & 15) || (((unsigned) res) & 3))
> return -1;
> Hard to imagine how (uint *) & 3 makes any sense, unless res isn't
> always a (uint8 *). Is that true?
At some point it was casted to (uint32*) so I wanted to be sure its ok.
ATM its pointless. Please apply the following patch.
--
marko
2002-01-03 07:21:48 +00:00
Bruce Momjian
6b086de31a
Update dbase for Maarten.Boekhold.
2001-12-31 13:32:04 +00:00
Tom Lane
ee051baeac
Make sure that all <ctype.h> routines are called with unsigned char
...
values; it's not portable to call them with signed chars. I recall doing
this for the last release, but a few more uncasted calls have snuck in.
2001-12-30 23:09:42 +00:00
Bruce Momjian
491545fff4
Do not require iconv for dbase conversion.
2001-12-21 05:29:46 +00:00
Bruce Momjian
3f94ff5400
Allow contrib/dbase to compile if HAVE_ICONV_H it not defined. This is
...
only a partial solution but a step in the right direction.
2001-12-21 04:30:59 +00:00
Bruce Momjian
eb36cdd562
Add needed libiconv link to contrib/dbase, per Christopher Kings-Lynne
2001-12-21 04:13:12 +00:00
Tatsuo Ishii
71d641cf15
Reflect Tom's change
2001-12-20 01:56:08 +00:00
Tom Lane
897083715b
Fix pgstattuple to acquire a read lock on the target table. This
...
prevents embarassments such as having the table dropped or truncated
partway through the scan. Also, fix free space calculation to include
pages that currently contain no tuples.
2001-12-19 20:28:41 +00:00
Peter Eisentraut
f9d87c66db
Fix warning
2001-12-19 18:49:24 +00:00
Bruce Momjian
cde5fae7c9
>>I confirmed the UNION hack is no longer required. Thanks! Is it too late
...
>>to change the README in contrib/dblink?
>>
>
> No, I don't think that's a problem. Send a patch.
>
Here's a (documentation only) patch for the contrib/dblink README.
Joe Conway
2001-12-13 10:48:39 +00:00
Hiroshi Inoue
aa82ac8ab2
Fix a lo_manage()'s bug.
2001-12-07 04:18:31 +00:00
Bruce Momjian
657499dbab
We forgot to mention in README.rtree_gist we implemented new
...
picksplit algorithm for Rtree. Please apply patch below to CVS
Oleg Bartunov
2001-12-05 18:25:28 +00:00
Bruce Momjian
8f73bb4da9
* include <endian.h> is not enough, include sys/types.h too
...
everywhere.
At least it was now detected correctly.
marko
2001-11-30 17:39:20 +00:00
Bruce Momjian
8aa538cfd5
* When postgres.h does not define BYTE_ENDIAN pgcrypto
...
produces garbage.
I learned the hard way that
#if UNDEFINED_1 == UNDEFINED_2
#error "gcc is idiot"
#endif
prints "gcc is idiot" ...
Affected are MD5/SHA1 in internal library, and also HMAC-MD5/HMAC-SHA1/
crypt-md5 which use them. Blowfish is ok, also Rijndael on at
least x86.
Big thanks to Daniel Holtzman who send me a build log which
contained warning:
md5.c:246: warning: `X' defined but not used
Yes, gcc is that helpful...
Please apply this.
--
marko
2001-11-29 19:40:37 +00:00
Bruce Momjian
c9483cb6e4
This patch mark datatype txtidx as 'extended' storage type.
...
Thanks.
Teodor Sigaev
2001-11-26 17:45:41 +00:00
Tom Lane
56f5dc9078
Remove bogus pg_amop insertion commands, per discussion of 25-Oct.
...
No change in results of script, but perhaps less confusion for people
reading it.
2001-11-24 23:28:09 +00:00
Bruce Momjian
3345da53ad
Update my2pg.pl for release.
2001-11-21 02:43:30 +00:00
Bruce Momjian
c78975f845
Include sys/types.h in crypt-des.c. FreeBSD netinet/in.h
...
needs it.
Seems it is getting compileable...
Marko Kreen
2001-11-20 21:10:38 +00:00
Bruce Momjian
60f777606f
Duh, my regexp's missed bunch of them. Here's next batch, this
...
should be all.
Marko Kreen
2001-11-20 18:54:07 +00:00
Bruce Momjian
540155b777
pgcrypto uses non-standard type uint, which causes compile
...
failures on FreeBSD. This patch replaces uint -> unsigned.
This was reported by Daniel Holtzman against 0.4pre3 standalone
package, but it needs fixing in contrib/pgcrypto too.
Marko Kreen
2001-11-20 15:50:53 +00:00
Peter Eisentraut
aff53b27f0
Make the yacc rules safe for parallel make. See discussion on pgsql-patches
...
and comment in src/backend/parser/Makefile for the technical details.
2001-11-16 16:32:33 +00:00
Bruce Momjian
d4337f6a7c
Read getopt() into an int, not char.
2001-11-15 18:40:52 +00:00
Bruce Momjian
d7a343d5ce
Add port number to pg_dumplo.
...
andrea gelmini
2001-11-12 17:44:14 +00:00
Bruce Momjian
149d13de74
When given oversized key, encrypt/decrypt corrupted
...
memory. This fixes it. Also a free() was missing.
marko
2001-11-08 15:56:58 +00:00
Bruce Momjian
62298f60b2
Add mention of another MySQL conversion tool.
2001-11-06 22:25:53 +00:00
Bruce Momjian
ea08e6cd55
New pgindent run with fixes suggested by Tom. Patch manually reviewed,
...
initdb/regression tests pass.
2001-11-05 17:46:40 +00:00
Bruce Momjian
c41b6b1b9c
Fix small problem Tom Lane found with pgindent run.
2001-10-30 05:38:56 +00:00
Bruce Momjian
cd01c32f55
Add trailing semicolon for Joe Conway
2001-10-29 19:41:54 +00:00
Bruce Momjian
6783b2372e
Another pgindent run. Fixes enum indenting, and improves #endif
...
spacing. Also adds space for one-line comments.
2001-10-28 06:26:15 +00:00
Bruce Momjian
b81844b173
pgindent run on all C files. Java run to follow. initdb/regression
...
tests pass.
2001-10-25 05:50:21 +00:00
Bruce Momjian
fde8edaf53
Add do { ... } while (0) to more bad macros.
2001-10-25 01:29:37 +00:00
Bruce Momjian
b4a57b0648
Add more missing 'do { ... } while (0)' in missing macros. Without it,
...
these macros fail in if/else cases:
#define X \
{ \
... \
}
{
if (...)
X;
else
...
}
with proper setup:
#define X \
do { \
... \
} while (0)
it works fine.
2001-10-25 00:55:48 +00:00
Tatsuo Ishii
f8aa02eb85
"time" is now a reserved keyword(changed to "mtime").
2001-10-24 08:07:22 +00:00
Tom Lane
4fec55af6c
Fix several problems with simple_prompt() --- the nastiest being that
...
the entered password would get echoed on some platforms, eg HPUX.
We have enough copies of this code that I'm thinking it ought to be
moved into libpq, but that's a task for another day.
2001-10-18 21:57:11 +00:00
Tom Lane
77f27d5ec3
Fix some portability problems (get it to compile, at least, on HP's cc)
2001-10-15 19:15:18 +00:00
Tom Lane
aa6970efff
Fix some portability problems (get it to compile, at least, on HP's cc)
2001-10-15 18:56:30 +00:00
Tom Lane
1e2779117d
Fix some portability problems (get it to compile, at least, on HP's cc)
2001-10-15 18:49:40 +00:00
Tom Lane
b261cb9fa1
Updated regression test for tsearch, from Teodor Sigaev.
2001-10-15 17:41:33 +00:00
Tom Lane
b57705673d
txtidx datatype for full text indexing with GiST.
...
From Oleg Bartunov and Teodor Sigaev.
2001-10-12 23:19:09 +00:00
Bruce Momjian
7ff432c9ad
1. Implemented binary search in array
...
Oleg Bartunov
2001-10-04 15:41:14 +00:00
Tom Lane
2d6b1f29fb
Update incorrect expected file. Use 'timestamp without time zone'
...
datatype in test, to try to avoid any dependency on local time zone.
2001-10-03 18:39:12 +00:00
Tom Lane
a5dafa3177
Tweak to test HAVE_GETOPT_H before including <getopt.h>, so as to
...
build on systems without.
2001-10-02 22:38:43 +00:00
Tom Lane
6d18c038b7
Fix a couple of stray // comments.
2001-10-01 17:53:12 +00:00
Bruce Momjian
43cadb9231
Add missing pgcrypto files.
2001-10-01 16:12:23 +00:00
Tatsuo Ishii
9a23885f72
Add pgstattuple
2001-10-01 01:52:38 +00:00
Bruce Momjian
9588084263
* regression tests
...
* minor doc updates
Marko Kreen
2001-09-30 22:18:29 +00:00