From: Koichi Suzuki <koi...@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