]> granicus.if.org Git - postgresql/log
postgresql
26 years agoBug fixes and enhances to psql submitted by Masaaki Sakaida
Tatsuo Ishii [Tue, 30 Mar 1999 05:00:42 +0000 (05:00 +0000)]
Bug fixes and enhances to psql submitted by Masaaki Sakaida

1. Fix problems of PAGER and \? command
2. Add -E option that shows actual queries sent by \dt and friends
3. Add version number in startup banners for psql

26 years agoSmall cleanups.
Bruce Momjian [Tue, 30 Mar 1999 01:37:28 +0000 (01:37 +0000)]
Small cleanups.

26 years agoAddition to test/locale submitted by Oleg Broytmann. Comments from him:
Tatsuo Ishii [Mon, 29 Mar 1999 09:00:19 +0000 (09:00 +0000)]
Addition to test/locale submitted by Oleg Broytmann. Comments from him:

There are two subdirectories (ISO8859-7 and koi8-to-win1251) containing
tests for Greek locale and server<=>client recoding feature (recently
submitted by Tatsuo Ishii <t-ishii@sra.co.jp>; we've debugged his patches
together in the field of Cyrillic support).

26 years agochange comparison char* and NULL to char* and '\0'. This should be
Tatsuo Ishii [Mon, 29 Mar 1999 08:19:36 +0000 (08:19 +0000)]
change comparison char* and NULL to char* and '\0'. This should be
more portable way.

26 years agoModify fmgr so that internal name (compiler name) of a built-in
Tom Lane [Mon, 29 Mar 1999 01:30:45 +0000 (01:30 +0000)]
Modify fmgr so that internal name (compiler name) of a built-in
function is found in prosrc field of pg_proc, not proname.  This allows
multiple aliases of a built-in to all be implemented as direct builtins,
without needing a level of indirection through an SQL function.  Replace
existing SQL alias functions with builtin entries accordingly.
Save a few K by not storing string names of builtin functions in fmgr's
internal table (if you really want 'em, get 'em from pg_proc...).
Update opr_sanity with a few more cross-checks.

26 years ago1. Vacuum is updated for MVCC.
Vadim B. Mikheev [Sun, 28 Mar 1999 20:32:42 +0000 (20:32 +0000)]
1. Vacuum is updated for MVCC.
2. Much faster btree tuples deletion in the case when first on page
   index tuple is deleted (no movement to the left page(s)).
3. Remember blkno of new root page in BTPageOpaque of
   left/right siblings when root page is splitted.

26 years agoExpanded opr_sanity test to look at pg_proc and other
Tom Lane [Sun, 28 Mar 1999 02:07:58 +0000 (02:07 +0000)]
Expanded opr_sanity test to look at pg_proc and other
related tables.

26 years agoNew regression test to cross-check pg_type, pg_class,
Tom Lane [Sun, 28 Mar 1999 02:06:23 +0000 (02:06 +0000)]
New regression test to cross-check pg_type, pg_class,
and related tables.

26 years agoClean up various minor irregularities detected by type_sanity
Tom Lane [Sun, 28 Mar 1999 02:01:39 +0000 (02:01 +0000)]
Clean up various minor irregularities detected by type_sanity
and newly expanded opr_sanity tests.

26 years agoRemove pg_attribute_check.sql: these checks merged into new
Tom Lane [Sun, 28 Mar 1999 01:57:32 +0000 (01:57 +0000)]
Remove pg_attribute_check.sql: these checks merged into new
regress test 'type_sanity'.

26 years agoFix bogus function signature for areajoinsel.
Tom Lane [Sun, 28 Mar 1999 01:56:12 +0000 (01:56 +0000)]
Fix bogus function signature for areajoinsel.
It still doesn't do anything, but at least now it does nothing correctly.

26 years agoDelete unused system table pg_parg.
Tom Lane [Sat, 27 Mar 1999 17:26:26 +0000 (17:26 +0000)]
Delete unused system table pg_parg.

26 years agoNo longer need this file here; superseded by oidjoins regress test.
Tom Lane [Fri, 26 Mar 1999 08:04:53 +0000 (08:04 +0000)]
No longer need this file here; superseded by oidjoins regress test.

26 years agoAdd results of findoidjoins as a standard regression test.
Tom Lane [Fri, 26 Mar 1999 08:02:52 +0000 (08:02 +0000)]
Add results of findoidjoins as a standard regression test.

26 years agoRemove a bunch of dead entries exposed by findoidjoins crosschecks.
Tom Lane [Fri, 26 Mar 1999 07:32:42 +0000 (07:32 +0000)]
Remove a bunch of dead entries exposed by findoidjoins crosschecks.
Apparently, whatever these things used to link to got recycled into
something else ... but the dependent entries didn't.

26 years agoUpdate findoidjoins for 6.5: remove workaround for long-dead bug,
Tom Lane [Fri, 26 Mar 1999 07:21:58 +0000 (07:21 +0000)]
Update findoidjoins for 6.5: remove workaround for long-dead bug,
use NOT EXISTS() which is a lot faster than NOT IN (),
update documentation.

26 years agoRevise memutils.h to use alignment information gathered by
Tom Lane [Thu, 25 Mar 1999 19:05:19 +0000 (19:05 +0000)]
Revise memutils.h to use alignment information gathered by
configure, instead of having a bunch of crufty platform-specific guesses.

26 years agoFix multi-byte+locale problem
Tatsuo Ishii [Thu, 25 Mar 1999 04:46:53 +0000 (04:46 +0000)]
Fix multi-byte+locale problem

26 years agoClean up att_align calculations so that XXXALIGN macros
Tom Lane [Thu, 25 Mar 1999 03:49:34 +0000 (03:49 +0000)]
Clean up att_align calculations so that XXXALIGN macros
need not be bogus.

26 years ago*** empty log message ***
Michael Meskes [Wed, 24 Mar 1999 20:05:15 +0000 (20:05 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Michael Meskes [Wed, 24 Mar 1999 14:54:10 +0000 (14:54 +0000)]
*** empty log message ***

26 years agoAdd KOI8/WIN/ALT support
Tatsuo Ishii [Wed, 24 Mar 1999 07:02:17 +0000 (07:02 +0000)]
Add KOI8/WIN/ALT support

26 years agoThese small utilities are for generating internal tables from
Tatsuo Ishii [Wed, 24 Mar 1999 07:01:37 +0000 (07:01 +0000)]
These small utilities are for generating internal tables from
rcode encoding tables.

26 years agoAdd KOI8/WIN/ALT to set client_encoding command help
Tatsuo Ishii [Wed, 24 Mar 1999 06:57:20 +0000 (06:57 +0000)]
Add KOI8/WIN/ALT to set client_encoding command help

26 years agoFix typo. #ifdef MUTIBYTE --> #ifdef MULTIBYTE
Tatsuo Ishii [Wed, 24 Mar 1999 06:55:14 +0000 (06:55 +0000)]
Fix typo. #ifdef MUTIBYTE --> #ifdef MULTIBYTE

26 years agoAdd KOI8/WIN/ALT to the multi-byte encoding selections
Tatsuo Ishii [Wed, 24 Mar 1999 06:53:28 +0000 (06:53 +0000)]
Add KOI8/WIN/ALT to the multi-byte encoding selections

26 years agoAdd KOI8/WIN/ALT to the multi-byte encoding selections
Tatsuo Ishii [Wed, 24 Mar 1999 06:20:38 +0000 (06:20 +0000)]
Add KOI8/WIN/ALT to the multi-byte encoding selections

26 years agoAdd KOI8/WIN/ALT to the multi-byte encoding selections
Tatsuo Ishii [Wed, 24 Mar 1999 04:22:13 +0000 (04:22 +0000)]
Add KOI8/WIN/ALT to the multi-byte encoding selections

26 years agoRemove Tee code, move to _deadcode.
Bruce Momjian [Tue, 23 Mar 1999 16:51:04 +0000 (16:51 +0000)]
Remove Tee code, move to _deadcode.

26 years agocleanups
Bruce Momjian [Tue, 23 Mar 1999 05:41:00 +0000 (05:41 +0000)]
cleanups

26 years agoHi,
Bruce Momjian [Mon, 22 Mar 1999 16:45:30 +0000 (16:45 +0000)]
Hi,

I have solved some problems with dynamic loading on NT. It is possible
to
run succesfully both trigger and plpgsql regression tests. The patch is
in
the included file "diff".

                        Dan

26 years agoAdd % to b_expr.
Bruce Momjian [Mon, 22 Mar 1999 05:07:32 +0000 (05:07 +0000)]
Add % to b_expr.

26 years agoCleanup of NULL in inet types.
Bruce Momjian [Mon, 22 Mar 1999 05:00:57 +0000 (05:00 +0000)]
Cleanup of NULL in inet types.

26 years agoCorrect some comments, fix a small memory wastage when datatype
Tom Lane [Sun, 21 Mar 1999 19:59:13 +0000 (19:59 +0000)]
Correct some comments, fix a small memory wastage when datatype
is pass-by-value.

26 years agoThis patch fixes the bug that made it impossible to grant permissions to
Bruce Momjian [Sun, 21 Mar 1999 06:31:59 +0000 (06:31 +0000)]
This patch fixes the bug that made it impossible to grant permissions to
a user such as "www-data".

Oliver

26 years agoAdd .cvsignore file so cvs doesn't complain if you have lex/yacc
Tom Lane [Sun, 21 Mar 1999 02:43:58 +0000 (02:43 +0000)]
Add .cvsignore file so cvs doesn't complain if you have lex/yacc
output files laying about.

26 years agocleanup
Bruce Momjian [Sun, 21 Mar 1999 02:30:22 +0000 (02:30 +0000)]
cleanup

26 years agoAh, *now* I understand: plpgsql lexer must be generated with flex -l ...
Tom Lane [Sun, 21 Mar 1999 02:27:47 +0000 (02:27 +0000)]
Ah, *now* I understand: plpgsql lexer must be generated with flex -l ...

26 years agoFix for %4 and 4%.
Bruce Momjian [Sun, 21 Mar 1999 02:26:56 +0000 (02:26 +0000)]
Fix for %4 and 4%.

26 years agoHmm, it seems some versions of flex declare yytext as extern char[]
Tom Lane [Sun, 21 Mar 1999 01:07:07 +0000 (01:07 +0000)]
Hmm, it seems some versions of flex declare yytext as extern char[]
but others declare it as extern char *.  gcc complains (quite rightly too).
Worked around it by rearranging the order of inclusions so that we don't
have to explicitly declare yytext; this should work with either variant.

26 years ago*** empty log message ***
Michael Meskes [Sat, 20 Mar 1999 19:46:54 +0000 (19:46 +0000)]
*** empty log message ***

26 years agoRemove yacc/lex output files from CVS repository.
Tom Lane [Sat, 20 Mar 1999 18:45:27 +0000 (18:45 +0000)]
Remove yacc/lex output files from CVS repository.

26 years agoRemove yacc/lex output files from CVS repository.
Tom Lane [Sat, 20 Mar 1999 18:03:37 +0000 (18:03 +0000)]
Remove yacc/lex output files from CVS repository.

26 years agoClean up build procedure: do not keep raw lex/yacc files around,
Tom Lane [Sat, 20 Mar 1999 18:00:38 +0000 (18:00 +0000)]
Clean up build procedure: do not keep raw lex/yacc files around,
only the edited ones.

26 years agomake clean should remove lex.yy.c
Tom Lane [Sat, 20 Mar 1999 17:58:21 +0000 (17:58 +0000)]
make clean should remove lex.yy.c

26 years agoScript for preparing derived files during tarball construction.
Tom Lane [Sat, 20 Mar 1999 17:53:54 +0000 (17:53 +0000)]
Script for preparing derived files during tarball construction.

26 years agoReverse out pfree agg part of patch from Erik Riedel.
Bruce Momjian [Sat, 20 Mar 1999 13:18:20 +0000 (13:18 +0000)]
Reverse out pfree agg part of patch from Erik Riedel.

26 years agocleanup
Bruce Momjian [Sat, 20 Mar 1999 02:31:45 +0000 (02:31 +0000)]
cleanup

26 years agocleanup
Bruce Momjian [Sat, 20 Mar 1999 02:07:31 +0000 (02:07 +0000)]
cleanup

26 years agoFix for aggregate memory leaks from Erik Riedel.
Bruce Momjian [Sat, 20 Mar 1999 01:13:22 +0000 (01:13 +0000)]
Fix for aggregate memory leaks from Erik Riedel.

26 years agoFix &g.
Bruce Momjian [Sat, 20 Mar 1999 00:15:40 +0000 (00:15 +0000)]
Fix &g.

26 years agoFix shift/reduce for NULL = Var.
Bruce Momjian [Fri, 19 Mar 1999 23:48:50 +0000 (23:48 +0000)]
Fix shift/reduce for NULL = Var.

26 years agoFix for memory leak in executor with fjIsNull.
Bruce Momjian [Fri, 19 Mar 1999 22:31:39 +0000 (22:31 +0000)]
Fix for memory leak in executor with fjIsNull.

26 years agoI suggest the following portability patch, which does not
Bruce Momjian [Fri, 19 Mar 1999 18:56:43 +0000 (18:56 +0000)]
I suggest the following portability patch, which does not
change functionality, but makes the code more ANSI C'ish.
My AIX xlc compiler barfs on all of these. Can someone please
review and apply to current.

 <<port.patch>>
Thanks
Andreas

26 years agoAdd EXCEPT/INTERSECT doc changes.
Bruce Momjian [Fri, 19 Mar 1999 02:41:41 +0000 (02:41 +0000)]
Add EXCEPT/INTERSECT doc changes.

26 years agocleanup parser
Bruce Momjian [Thu, 18 Mar 1999 22:11:47 +0000 (22:11 +0000)]
cleanup parser

26 years agogrammar cleanup'
Bruce Momjian [Thu, 18 Mar 1999 22:03:59 +0000 (22:03 +0000)]
grammar cleanup'

26 years agocleanup of grammer.
Bruce Momjian [Thu, 18 Mar 1999 22:01:56 +0000 (22:01 +0000)]
cleanup of grammer.

26 years agoFix optimizer indexing not working for negative numbers.
Bruce Momjian [Thu, 18 Mar 1999 21:39:56 +0000 (21:39 +0000)]
Fix optimizer indexing not working for negative numbers.

26 years agocleanups
Bruce Momjian [Thu, 18 Mar 1999 19:59:55 +0000 (19:59 +0000)]
cleanups

26 years ago*** empty log message ***
Michael Meskes [Thu, 18 Mar 1999 15:20:33 +0000 (15:20 +0000)]
*** empty log message ***

26 years agoAdd new postgres -O option to allow system table structure changes.
Bruce Momjian [Wed, 17 Mar 1999 22:53:31 +0000 (22:53 +0000)]
Add new postgres -O option to allow system table structure changes.

26 years agogrammar cleanup
Bruce Momjian [Wed, 17 Mar 1999 21:58:25 +0000 (21:58 +0000)]
grammar cleanup

26 years agoINET/CIDR doc cleanup
Bruce Momjian [Wed, 17 Mar 1999 21:38:13 +0000 (21:38 +0000)]
INET/CIDR doc cleanup

26 years agoAdd docs about left-associativity of operators.
Bruce Momjian [Wed, 17 Mar 1999 21:27:02 +0000 (21:27 +0000)]
Add docs about left-associativity of operators.

26 years agoAdd documentation change for %'s precidence.
Bruce Momjian [Wed, 17 Mar 1999 21:24:17 +0000 (21:24 +0000)]
Add documentation change for %'s precidence.

26 years agoLeft associates all operators, instead of non-associating them.
Bruce Momjian [Wed, 17 Mar 1999 21:02:57 +0000 (21:02 +0000)]
Left associates all operators, instead of non-associating them.

26 years agoHave % operator have precedence like /.
Bruce Momjian [Wed, 17 Mar 1999 20:17:13 +0000 (20:17 +0000)]
Have % operator have precedence like /.

26 years agoUpdate sgml for 6.4.* release changes.
Bruce Momjian [Tue, 16 Mar 1999 21:03:00 +0000 (21:03 +0000)]
Update sgml for 6.4.* release changes.

26 years agoUpdate nextval() code.
Bruce Momjian [Tue, 16 Mar 1999 20:15:06 +0000 (20:15 +0000)]
Update nextval() code.

26 years agoFix snprintf with strings, and nextval('"Aa"');
Bruce Momjian [Tue, 16 Mar 1999 04:26:01 +0000 (04:26 +0000)]
Fix snprintf with strings, and nextval('"Aa"');

26 years agoHere is a patch.
Bruce Momjian [Tue, 16 Mar 1999 03:24:18 +0000 (03:24 +0000)]
Here is a patch.
I have changed to call pg_exec_query_dest() instead of pg_exec_query().

Thanks.

Hiroshi Inoue

26 years agocontrib/array_iterator/array_iterator.c won't compile.
Bruce Momjian [Tue, 16 Mar 1999 03:09:51 +0000 (03:09 +0000)]
contrib/array_iterator/array_iterator.c won't compile.
Included patches should fix the problem.
--
Tatsuo Ishii

26 years agoautoconf
Bruce Momjian [Tue, 16 Mar 1999 03:09:09 +0000 (03:09 +0000)]
autoconf

26 years agoHmmm. It had to do with tcl/tk on FreeBSD. The configure scripts are
Bruce Momjian [Tue, 16 Mar 1999 03:02:55 +0000 (03:02 +0000)]
Hmmm.  It had to do with tcl/tk on FreeBSD.  The configure scripts are
in
different directories.  The patch gave the option of specifying a dir
for
the tk script and if they were both in the same directory then it didn't
mind being empty.  It's small so I'm including it.  It was tested with
autoconf 2.12.

Vince.

26 years agoChange Does Not Exist to 'does not exist'.
Bruce Momjian [Tue, 16 Mar 1999 02:57:10 +0000 (02:57 +0000)]
Change Does Not Exist to 'does not exist'.

26 years agocleanup
Bruce Momjian [Mon, 15 Mar 1999 22:20:20 +0000 (22:20 +0000)]
cleanup

26 years ago*** empty log message ***
Michael Meskes [Mon, 15 Mar 1999 18:26:55 +0000 (18:26 +0000)]
*** empty log message ***

26 years agoAllow sequence nextval actions to be case-sensitive.
Bruce Momjian [Mon, 15 Mar 1999 16:48:34 +0000 (16:48 +0000)]
Allow sequence nextval actions to be case-sensitive.

26 years agoIrix fix from Jeff Johnson
Bruce Momjian [Mon, 15 Mar 1999 15:20:52 +0000 (15:20 +0000)]
Irix fix from Jeff Johnson

26 years agobool uses one byte
Bruce Momjian [Mon, 15 Mar 1999 15:00:08 +0000 (15:00 +0000)]
bool uses one byte

26 years agoDrop buffers before destroying database files.
Bruce Momjian [Mon, 15 Mar 1999 14:07:44 +0000 (14:07 +0000)]
Drop buffers before destroying database files.

26 years agoLIKE cleanup.
Bruce Momjian [Mon, 15 Mar 1999 13:45:09 +0000 (13:45 +0000)]
LIKE cleanup.

26 years agoFix brain death in !!= operator ... it's still pretty bogus
Tom Lane [Mon, 15 Mar 1999 03:24:32 +0000 (03:24 +0000)]
Fix brain death in !!= operator ... it's still pretty bogus
but at least now it does what it's supposed to do ...

26 years ago> > > This patches src/bin/psql/psql.c.
Bruce Momjian [Mon, 15 Mar 1999 02:18:37 +0000 (02:18 +0000)]
> > > This patches src/bin/psql/psql.c.
> > >
> > > This patch is in responce to the following TODO list item:
> > >  * have psql \d on a view show the query
> > > -Ryan

26 years agoFix int8 configure one more time ... prior version didn't
Tom Lane [Mon, 15 Mar 1999 01:43:07 +0000 (01:43 +0000)]
Fix int8 configure one more time ... prior version didn't
define INT64_FORMAT in all cases.

26 years agoHi All,
Bruce Momjian [Mon, 15 Mar 1999 00:34:53 +0000 (00:34 +0000)]
Hi All,
I've changed the check_primary_key() function code to allow for either
the "automatic insert key rule" or "dependent insert key rule".
Previously it restricted the addtion of a child entry if the
corresponding parent entry was not there. Now if the option is
"automatic" it will add an entry in the parent too ( it will be
successful if there are no no-null fields in the parent apart from the
primary key).
The way to use it now is:
:/*
 * check_primary_key () -- check that key in tuple being
inserted/updated
 *                       references existing tuple in "primary" table.
 * Though it's called without args You have to specify referenced
 * table/keys while creating trigger:  key field names in triggered
table,
 * referenced table name, referenced key field names,type of action
[automatic|dependent]:
 * EXECUTE PROCEDURE
 * check_primary_key ('Fkey1', 'Fkey2', 'Ptable', 'Pkey1', 'Pkey2',
'[automatic|dependent]').
 */
I am attaching the new ../contrib/spi/refint.c file which will do this.
I will be glad to help in case of any problems.

- Anand.

26 years agocleanup
Bruce Momjian [Sun, 14 Mar 1999 20:17:20 +0000 (20:17 +0000)]
cleanup

26 years agoCleanup
Bruce Momjian [Sun, 14 Mar 1999 20:01:14 +0000 (20:01 +0000)]
Cleanup

26 years agoReversed out libpq protocol patch for Tom Lane.
Bruce Momjian [Sun, 14 Mar 1999 18:12:21 +0000 (18:12 +0000)]
Reversed out libpq protocol patch for Tom Lane.

26 years agosrc/backend/utils/adt/numeric.c fails to compile due to a string having
Bruce Momjian [Sun, 14 Mar 1999 16:49:32 +0000 (16:49 +0000)]
src/backend/utils/adt/numeric.c fails to compile due to a string having
an
embedded new-line character.

Billy G. Allie

26 years agoThis is another example of why not allowing utility functions in SPI
Bruce Momjian [Sun, 14 Mar 1999 16:46:21 +0000 (16:46 +0000)]
This is another example of why not allowing utility functions in SPI
would be a Bad Thing.

For what it's worth, I found another case in libpq where you can get a T
message without a D that my utility patch needs to handle.  I have
attached
the updated patch against the 6.4.2 version of
src/interfaces/libpq/fe-exec.c

Jerry Gay

26 years agoAttempting to insert a value of 'now' into a datetime type
Bruce Momjian [Sun, 14 Mar 1999 16:44:02 +0000 (16:44 +0000)]
Attempting to insert a value of 'now' into a datetime type
results in a bogus datetime value under AlphaLinux.  (Note that
the link to submit a port-specific bug on your website is broken)

-Test Case:
----------
testdb=> create table dttest (dt datetime);
testdb=> insert into dttest values ('now');

--------------------------------------------------------------------------

Solution:
---------
The basic problem is the typedefs of AbsoluteTime and RelativeTime,
which are both 'int32'.  These types appear to be used synonymously
with the 'time_t' type, which on AlphaLinux is typedef'd as a 'long
int', which is 64-bits (not 32).  The solution included here fixes
the datetime type (it now passes the regression test), but does not
pass the absolute and relative time regression tests.  Presumably, a
more thorough investigation of how these types are used is warranted.
The included patch is from the v6.3.2 source, but can be applied to
the v6.4.2 source.  Please note that there is also a RedHat-specific
patch distributed with the PostgreSQL source package from RedHat
that was applied first.

Rich Edwards

26 years agoHi,
Bruce Momjian [Sun, 14 Mar 1999 16:42:15 +0000 (16:42 +0000)]
Hi,

    Just in case you'd like to see what I was talking about, I am
attaching
my patch to src/interfaces/libpq/fe-exec.c to prevent utility functions
called from SPI from locking up the client.

Jerry Gay

26 years agoHere is a little syntax error found in a .y file... A dropped semi.
Bruce Momjian [Sun, 14 Mar 1999 16:40:18 +0000 (16:40 +0000)]
Here is a little syntax error found in a .y file...  A dropped semi.

DwD
--
Daryl W. Dunbar

26 years agoCleanup of hash functions in pg_proc.
Bruce Momjian [Sun, 14 Mar 1999 16:32:46 +0000 (16:32 +0000)]
Cleanup of hash functions in pg_proc.

26 years agocompile cleanup
Bruce Momjian [Sun, 14 Mar 1999 16:27:59 +0000 (16:27 +0000)]
compile cleanup

26 years agoCompile cleanup
Bruce Momjian [Sun, 14 Mar 1999 16:25:07 +0000 (16:25 +0000)]
Compile cleanup

26 years agoDone.
Bruce Momjian [Sun, 14 Mar 1999 16:08:17 +0000 (16:08 +0000)]
Done.

o overwriting an existing lobj now works
o 8KB garbage block always inserted problem is fixed

Tatsuo Ishii

26 years ago I've been having also sorts of fun trying to get kerberos 4
Bruce Momjian [Sun, 14 Mar 1999 16:06:43 +0000 (16:06 +0000)]
    I've been having also sorts of fun trying to get kerberos 4
authentifica
tion
working with postgresql-6.4.2 and  KTH-KRB Ebones
(http://www.pdc.kth.se/kth-kr
b) on a dec alpha running DU 4.0D using the native compiler. The
following
patch does the trick.

The rationale behind this is as follows. The KTH-KRB code header files
defines
lots of lengths like INST_SZ,REALM_SZ and KRB_SENDAUTH_VLEN. It also has
a
habit of doing things like

        chararray[LENGTH] = '\0'

to ensure null terminated strings. In my instance this just happens to
blat
the kerberos principal instance string leading to error like

        pg_krb4_recvauth: kerberos error: Can't decode authenticator
(krb_rd_req
)

The application code that comes with KTH-KRB uses "KRB_SENDAUTH_VLEN +
1" and
sometimes uses "INST_SZ + 1" so it seems safest to put that 1 char
buffer in
the appropriate place.

Rodney McDuff