Re: SetDataBaseName - Mailing list pgsql-patches

From Mahesh Swamy
Subject Re: SetDataBaseName
Date
Msg-id 062501c43948$453fe3a0$b44bac89@maheshs
Whole thread Raw
In response to SetDataBaseName  ("Mahesh Swamy" <maheshs@fast.fujitsu.com.au>)
Responses Re: SetDataBaseName  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@sss.pgh.pa.us>
To: "Mahesh Swamy" <maheshs@fast.fujitsu.com.au>
Cc: "osspatches" <pgsql-patches@postgresql.org>
Sent: Thursday, May 13, 2004 11:32 PM
Subject: Re: [PATCHES] SetDataBaseName


> "Mahesh Swamy" <maheshs@fast.fujitsu.com.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
ordinaryuser 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
thisemail 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
emailunsubscribe@fast.fujitsu.com.au 



pgsql-patches by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: [HACKERS] threads stuff/UnixWare
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] threads stuff/UnixWare