Re: Session variables and C functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ivan Voras <ivoras(at)freebsd(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Session variables and C functions
Date: 2011-11-17 18:02:44
Message-ID: 28229.1321552964@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ivan Voras <ivoras(at)freebsd(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Siva Palanisamy 2011-11-17 18:03:54 Please recommend me the best bulk-delete option
Previous Message Siva Palanisamy 2011-11-17 18:02:02 Please recommend me the best bulk-delete option