Re: get_database_name() from background worker

Поиск
Список
Период
Сортировка
От Koichi Suzuki
Тема Re: get_database_name() from background worker
Дата
Msg-id CABWPsHHtvbDA-grP3-GrjMGtyhoeR3_R2Eey3KsqkNcSywj_Nw@mail.gmail.com
обсуждение исходный текст
Ответ на RE: get_database_name() from background worker  (ROS Didier <didier.ros@edf.fr>)
Ответы RE: get_database_name() from background worker  (ROS Didier <didier.ros@edf.fr>)
RE: get_database_name() from background worker  ("tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com>)
Список pgsql-hackers
I'm not using this.   Is this the must to use get_database_name()?
---
Koichi Suzuki


2019年12月11日(水) 16:26 ROS Didier <didier.ros@edf.fr>:
Hi
        I would like to know : Are you using pg_background extension to work with backgroud workers ?

        Thanks in advance

Best Regards

Didier ROS
Expertise SGBD
EDF - DTEO - DSIT - IT DMA


-----Message d'origine-----
De : tsunakawa.takay@fujitsu.com [mailto:tsunakawa.takay@fujitsu.com]
Envoyé : mercredi 11 décembre 2019 08:21
À : 'Koichi Suzuki' <koichi@2ndquadrant.com>
Cc : pgsql-hackers@lists.postgresql.org
Objet : RE: get_database_name() from background worker

From: Koichi Suzuki <koichi@2ndquadrant.com>
> I'm writing an extension running on background workers and found
> get_database_name() causes SEGV and found internally resource owner was
> wet to NULL.   Could anybody let me know how it happens and how I can use
> this function.   Argument to get_database_name() looks correct.

Did you specify BGWORKER_BACKGROUND_DATABASE_CONNECTION when registering the background worker?
Did you start transaction by calling StartTransactionCommand()?


Regards
Takayuki Tsunakawa





Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les 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 divulguer ou 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ées ou 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 this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or 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 message in 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 по дате отправления:

Предыдущее
От: jiankang liu
Дата:
Сообщение: Re: Start Walreceiver completely before shut down it on standby server.
Следующее
От: Koichi Suzuki
Дата:
Сообщение: Re: get_database_name() from background worker