Re: SPI find backend id (novice) - Mailing list pgsql-hackers

From alban
Subject Re: SPI find backend id (novice)
Date
Msg-id bvjmct$1r7d$1@news.hub.org
Whole thread Raw
In response to SPI find backend id (novice)  (alban <alban.minassian@wanadoo.fr>)
List 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 );


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Idea about better configuration options for sort memory
Next
From: Gaetano Mendola
Date:
Subject: Re: Idea about better configuration options for sort memory