Re: SetDataBaseName

From: "Mahesh Swamy" <maheshs(at)fast(dot)fujitsu(dot)com(dot)au>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "osspatches" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: SetDataBaseName
Date: 2004-05-14 00:13:23
Message-ID: 062501c43948$453fe3a0$b44bac89@maheshs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Hi Tom,

During bootstrap mode, when running initdb, the dabasename template1 is
passed in. 741 seems to handle this without using the global variable
DatabaseName (which is used in 7.3.3). Our extention still relies on that
global variable.

So how does 7.4.1 find the database name during bootstrap mode?

During bootstrap mode, get_database_name(databaseId) does not seem to work.
This is why we are setting the global variable. The databaseId is comming
from 7.4.1 code, so we are assuming that is valid.

We would like to do it correctly, so any recomendation would be appreciated.

Thankyou

Mahesh
----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mahesh Swamy" <maheshs(at)fast(dot)fujitsu(dot)com(dot)au>
Cc: "osspatches" <pgsql-patches(at)postgresql(dot)org>
Sent: Thursday, May 13, 2004 11:32 PM
Subject: Re: [PATCHES] SetDataBaseName

> "Mahesh Swamy" <maheshs(at)fast(dot)fujitsu(dot)com(dot)au> writes:
> > We were wondering is there any particular reason why this function
> > (SetDataBaseName) was taken out?
>
> Evidently because the variable it sets doesn't exist anymore.
>
> I cannot think of any valid reason for an extension to have been messing
> with that variable anyway; so maybe you'd better explain what you need
> to accomplish instead of asking a low-level question.
>
> regards, tom lane
>

This is an email from Fujitsu Australia Software Technology Pty Ltd, ABN 27 003 693 481. It is confidential to the ordinary user of the email address to which it was addressed and may contain copyright and/or legally privileged information. No one else may read, print, store, copy or forward all or any of it or its attachments. If you receive this email in error, please return to sender. Thank you.

If you do not wish to receive commercial email messages from Fujitsu Australia Software Technology Pty Ltd, please email unsubscribe(at)fast(dot)fujitsu(dot)com(dot)au

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Larry Rosenman 2004-05-14 00:13:26 Re: [HACKERS] threads stuff/UnixWare
Previous Message Bruce Momjian 2004-05-14 00:11:45 Re: [HACKERS] threads stuff/UnixWare