Re: SSL certificate info on SQL level and HSM support for libpq - Mailing list pgsql-hackers

From Victor B. Wagner
Subject Re: SSL certificate info on SQL level and HSM support for libpq
Date
Msg-id 20060522065558.GA14465@cryptocom.ru
Whole thread Raw
In response to Re: SSL certificate info on SQL level and HSM support for libpq  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: SSL certificate info on SQL level and HSM support for libpq  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
On 2006.05.19 at 10:02:34 +0200, Martijn van Oosterhout wrote:

> On Fri, May 19, 2006 at 10:33:52AM +0400, Victor B. Wagner wrote:
> > 1. Am I correct that these function have to be INTERNAL? Or it is
> > possible to get access to MyProcPort variable (on Windows platform too)
> > from dynamically loadable object?
> 
> You should be able to have these in a contrib module, Postgres exports
> all symbols.

Thanks, it really works this way.

BTW, what should I do if I want to submit entirely new directory into
contrib - shall I make a patch against current source tree or just
archive of this directory would do?

> > 3. Almost same question about arbitrary precession integer values.
> > Where to look up C functions to convert decimal/hexadecimal/binary
> > string representing integer of 128 bits or so into Postgres NUMERIC
> > type.
> 
> numeric_in converts a text string to a numeric. Don't know about 128
> bit strings though.
This works. But I was unable to look up information about this function
in the docs, and have to resort to looking for its usage in the backend
sources.

I've also unable to find useful description of DirectFunctionCallN
family of functions, which seems to be neccessary to call one 'C'
language PostgreSQL function from another.

It is clear enough from examples in the sources, but...





pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: problem with PQsendQuery/PQgetResult and COPY FROM statement
Next
From: Martijn van Oosterhout
Date:
Subject: Re: SSL certificate info on SQL level and HSM support for libpq