implemention of calls to stored procs.

Поиск
Список
Период
Сортировка
От Nic Ferrier
Тема implemention of calls to stored procs.
Дата
Msg-id 87sn8yx6xu.fsf@tf1.tapsellferrier.co.uk
обсуждение исходный текст
Ответы Re: implemention of calls to stored procs.  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: implemention of calls to stored procs.  (Holger Krug <hkrug@rationalizer.com>)
Список pgsql-general
I've been looking at the implementation of the procedural language
support code with a view to writing a java plugin (ie: something to
allow java classes to be used as stored procs).

From what I udnerstand of the architecture it seems that the SPI API
is inherently single threaded. I think this because of the way that
the SPI stuff work, one calls SPI_connect and then you can do an
SPI_exec to do a query, this sets a global value...


Perhaps I've misunderstood the implementation details and there is
some hidden black magic that means that more than one thread can be
doing some SPI operations?

If not, am I right? Can only one user supplied proc be running at once
across the whole postgres engine?



Nic Ferrier

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pltclu createlang for pgMail
Следующее
От: Tom Lane
Дата:
Сообщение: Re: implemention of calls to stored procs.