Isn't init_irels() dangerous ?

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "pgsql-hackers" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Isn't init_irels() dangerous ?
Date: 2000-12-19 15:41:15
Message-ID: EKEJJICOHDIEMGPNIFIJMEEMDCAA.Inoue@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

In InitPostgres()(postinit.c) I see the following code.

RelationCacheInitialize(); /* pre-allocated reldescs created here
*/
InitializeTransactionSystem(); /* pg_log,etc init/crash recovery
here */

init_irels() is at the end of RelationCacheInitialize() and
accesses system tables to build some system index
relations. However InitializeTransactionSystem() isn't
called at this point and so TransactionIdDidCommit()
always returns true. Time qualification doesn't work
properly under such a situation.
It seems that init_irels() should be called after
InitializeTransactionSystem() was called.

Comments ?

Regards.
Hiroshi Inoue

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sébastien Bonnet 2000-12-19 16:23:46 Re: libpq enhancement for multi-process application
Previous Message Hiroshi Inoue 2000-12-19 15:40:50 Is PQreset() proper ?