Re: SPI find backend id (novice)

From: alban <alban(dot)minassian(at)wanadoo(dot)fr>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: SPI find backend id (novice)
Date: 2004-02-01 22:15:07
Message-ID: bvjmct$1r7d$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

alban wrote:

> how find backend id for pg_temp_nnn with SPI_language ?
> Thank

i have found :

#include "storage/backendid.h"
and use MyBackendId

example
appendStringInfo( str , "%d", MyBackendId );

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-02-01 22:28:22 fork/exec
Previous Message Bruce Momjian 2004-02-01 21:58:42 Re: Idea about better configuration options for sort memory