Re: Database Oid from SPI - Mailing list pgsql-general

From Markus Schiltknecht
Subject Re: Database Oid from SPI
Date
Msg-id 44C8C891.7010401@bluegap.ch
Whole thread Raw
In response to Re: Database Oid from SPI  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,

thank you both. I first tried that, but the segfault really irritated
me. It's now working fine with miscadmin.h. Sorry for the noise.

Regards

Markus

Tom Lane wrote:
> Actually I'd recommend you use the global MyDatabaseId from
> "miscadmin.h".  It'll be the same value, but it's always best
> to avoid unnecessary accesses to shared memory.
>
>             regards, tom lane

Alvaro Herrera wrote:
 > I'd use MyDatabaseId ...
 >


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Generating unique session ids
Next
From: Rodrigo Gonzalez
Date:
Subject: Re: Generating unique session ids