Thread: SPI find backend id (novice)

SPI find backend id (novice)

From
alban
Date:
how find backend id for pg_temp_nnn with SPI_language ?
Thank


Re: SPI find backend id (novice)

From
alban
Date:
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 );