Re: Database Oid from SPI

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Schiltknecht <markus(at)bluegap(dot)ch>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Database Oid from SPI
Date: 2006-07-27 12:43:13
Message-ID: 5616.1154004193@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Markus Schiltknecht <markus(at)bluegap(dot)ch> writes:
> Whoops, sorry, there was another reason for the segfault. Using
> MyProc->databaseId works. Is it the right way to do it, though?

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2006-07-27 13:11:00 Re: JDBC
Previous Message Alvaro Herrera 2006-07-27 12:27:21 Re: Database Oid from SPI