RE: get_database_name() from background worker

Поиск
Список
Период
Сортировка
От ROS Didier
Тема RE: get_database_name() from background worker
Дата
Msg-id 80fcaf2a456946a7a6cfa230d93a5f35@PCYINTPEXMU001.NEOPROD.EDF.FR
обсуждение исходный текст
Ответ на RE: get_database_name() from background worker  ("tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com>)
Ответы Re: get_database_name() from background worker  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
Hi
   With pg_background extension ,it is possible to make  "autonomous transaction" which means possibility to commit in
atransaction.
 
 It is like a client which connects to a postgresql instance. So you can execute any sql orders .

Best Regards
Didier ROS
-----Message d'origine-----
De : tsunakawa.takay@fujitsu.com [mailto:tsunakawa.takay@fujitsu.com] 
Envoyé : jeudi 12 décembre 2019 02:04
À : 'Koichi Suzuki' <koichi@2ndquadrant.com>
Cc : ROS Didier <didier.ros@edf.fr>; pgsql-hackers@lists.postgresql.org
Objet : RE: get_database_name() from background worker

From: Koichi Suzuki <koichi@2ndquadrant.com>
> I'm not using this.   Is this the must to use get_database_name()?

I don't think pg_background is a must, but the system catalog access by get_database_name() should require database
connectionand transaction.  See src/test/modules/worker_spi/worker_spi.c for an example of background worker.  That
usesboth of them.
 


Regards
Takayuki Tsunakawa





Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires
etles informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa
destination,toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. 

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le
divulguerou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre
système,ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous
remercionségalement d'en avertir immédiatement l'expéditeur par retour du message. 

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont
sécuriséesou dénuées de toute erreur ou virus. 
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in
thisMessage is confidential. Any use of information contained in this Message not in accord with its purpose, any
disseminationor disclosure, either whole or partial, is prohibited except formal approval. 

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this
messagein error, please delete it and all copies from your system and notify the sender immediately by return message. 

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Wrong assert in TransactionGroupUpdateXidStatus
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Add .editorconfig