Re: Problems starting Template1...

From: "luis garcia" <ldgarc(at)gmail(dot)com>
To: "tomas(at)tuxteam(dot)de" <tomas(at)tuxteam(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problems starting Template1...
Date: 2006-10-26 12:29:43
Message-ID: 3de424340610260529h6130e3dep4856b4c901f7d8b8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, we all ready found the problem. I was creating the pg_class structure
for 32 fields, but in the creation of Template1 I just inserted 29
initialization
values, so the problem was that.

Just like this:

Wrong CODE:
DATA(insert OID = 1259 ( pg_class PGNSP 83 PGUID 0 1259 0 0 0 0 0 f
f r 32 0 0 0 0 0 t f f f f null 0 f _null_ ));

Right CODE:
DATA(insert OID = 1259 ( pg_class PGNSP 83 PGUID 0 1259 0 0 0 0 0 f
f r 32 0 0 0 0 0 t f f f f null 0 f f null 0 _null_ ));

If you see deep in there in the Wrong CODE there are just 29 values, but
in the Right CODE are 32, just as it should be.

Thanks anyway...

2006/10/26, tomas(at)tuxteam(dot)de <tomas(at)tuxteam(dot)de>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, Oct 23, 2006 at 02:32:47PM -0400, luis garcia wrote:
> > Hello, I'm from Venezuela, and I've been making some modifications
> > to Postgre's Catalog, but it seems to be a problem creating the
> Template1
> > Database.
> >
> > When the creation of the database is starting this is what happens:
> >
> > luis(at)Baco:~> /home/luis/pgsql/bin/initdb -D /home/luis/pgsql/data/
> [...]
> > incorrect number of columns in row (expected 32, got 29)
> ^^^^^^^^^^^^^^^^^^^^^
> [...]
>
> > I just added three more fields to pg_class structure (pg_class.h) just
> like
> > this:
>
> Note that you are changing the core data structures of PostgreSQL. You
> should change all the programs that work with them too :-)
>
> More to the point: what are you trying to achieve?
>
> Regards
> - -- tomás
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFFQGUiBcgs9XrR2kYRAgOuAJ424LQIicJORfaQATng9xQzk9Fq0wCeKRW4
> bUtdKg/bsHA3Mc1XZg10k3U=
> =/EF7
> -----END PGP SIGNATURE-----
>
>

--
Luis D. García M.
Telf: 0414-3482018

- FACYT - UC -
- Computación -

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zdenek Kotala 2006-10-26 13:31:30 Re: [HACKERS] COPY does not work with regproc and aclitem
Previous Message Simon Riggs 2006-10-26 09:30:21 Re: New CRC algorithm: Slicing by 8