Yes, one :-)

Is your account by any chance a member of a large number of groups? If
so, how many?

There is a fixed buffer of 1024 bytes. I have a feeling ythat one has to
be changed to dynamic.

//Magnus

>-----Original Message-----
>From: Thomas Hallgren [mailto:thhal@mailblocks.com] 
>Sent: den 17 augusti 2004 20:27
>To: pgsql-hackers@postgresql.org
>Subject: [HACKERS] initdb failure on win32
>
>
>I'm trying to run initdb on win32, freshly compiled from CVS 
>HEAD, but I 
>get the following error:
>
>creating template1 database in data/base/1 ... failed to get token 
>information: 122
>
>Any ideas?
>
>Regards,
>
>Thomas Hallgren
>
>
>---------------------------(end of 
>broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
>

Tue, 17 Aug 2004 20:28:55 +0200
"Magnus Hagander" <mha@sollentuna.net>
Re: initdb failure on win32
Magnus,

> There is a fixed buffer of 1024 bytes. I have a feeling ythat one has to
> be changed to dynamic.
> 
You're quite right. The 'InfoBufferSize' denotes 1122 bytes after this call.

if(!GetTokenInformation(AccessToken,TokenGroups,InfoBuffer,1024,&InfoBufferSize)) 


Regards,

Thomas Hallgren


Tue, 17 Aug 2004 22:12:47 +0200
Thomas Hallgren <thhal@mailblocks.com>
Re: initdb failure on win32