Re: Session variables and C functions - Mailing list pgsql-general

From Tom Lane
Subject Re: Session variables and C functions
Date
Msg-id 28229.1321552964@sss.pgh.pa.us
Whole thread Raw
In response to Session variables and C functions  (Ivan Voras <ivoras@freebsd.org>)
Responses Re: Session variables and C functions  (Ivan Voras <ivoras@freebsd.org>)
List pgsql-general
Ivan Voras <ivoras@freebsd.org> writes:
> Ideally, the C module would create its own "custom variable class,"
> named e.g. "module", then define some setting, e.g. "module.setting".
> The users would then execute an SQL command such as "SET SESSION
> module.setting='something'", and the module would need to pick this up
> in the C function.

Plenty of examples of that in contrib/ ...

            regards, tom lane

pgsql-general by date:

Previous
From: Siva Palanisamy
Date:
Subject: Please recommend me the best bulk-delete option
Next
From: Siva Palanisamy
Date:
Subject: Please recommend me the best bulk-delete option