How to find configuration data in _PG_init()

From: <david(at)andl(dot)org>
To: <pgsql-general(at)postgresql(dot)org>
Subject: How to find configuration data in _PG_init()
Date: 2016-03-10 13:24:17
Message-ID: 004201d17ad0$27d39920$777acb60$@andl.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

My language handler requires some configuration information to start up, which I would like to get from the file system (but it could be set up by an SQL query SET). Currently I’m using hard-coded paths, which doesn’t seem like a good solution. Is there perhaps a way to get the path that was used to load the DLL? I couldn’t find one in the existing language implementations.

Having got started it then needs to query the database. Is that OK in _PG_init()?

Any hints much appreciated.

Regards

David M Bennett FACS

_____

Andl - A New Database Language - andl.org

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-03-10 13:37:15 Re: Unable to match same value in field.
Previous Message Adam Brusselback 2016-03-10 12:09:18 Re: Plan to support predicate push-down into subqueries with aggregates?