Re: Database Oid from SPI

From: Markus Schiltknecht <markus(at)bluegap(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Subject: Re: Database Oid from SPI
Date: 2006-07-27 14:07:13
Message-ID: 44C8C891.7010401@bluegap.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 ...
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rodrigo Gonzalez 2006-07-27 14:11:23 Re: Generating unique session ids
Previous Message Alvaro Herrera 2006-07-27 13:55:21 Re: Generating unique session ids