Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Database Oid from SPI



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 ...
>




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group