Markus Schiltknecht <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org