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

From Tom Lane
Subject Re: Database Oid from SPI
Date
Msg-id 5616.1154004193@sss.pgh.pa.us
Whole thread Raw
In response to Re: Database Oid from SPI  (Markus Schiltknecht <markus@bluegap.ch>)
Responses Re: Database Oid from SPI
List pgsql-general
Markus Schiltknecht <markus@bluegap.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

pgsql-general by date:

Previous
From: gustavo halperin
Date:
Subject: JDBC
Next
From: Adrian Klaver
Date:
Subject: Re: JDBC