Re: Example of a pg_gethostname() function. Feedback? - Mailing list pgsql-general

From Craig Ringer
Subject Re: Example of a pg_gethostname() function. Feedback?
Date
Msg-id 4EF55374.4020208@ringerc.id.au
Whole thread Raw
In response to Example of a pg_gethostname() function. Feedback?  (bricklen <bricklen@gmail.com>)
Responses Re: Example of a pg_gethostname() function. Feedback?
List pgsql-general
On 24/12/2011 2:47 AM, bricklen wrote:
> I had a need recently to get the server hostname of some databases
> that we were unit-testing and couldn't find a built-in function for
> it. One of my coworkers put together a C function that seems to work
> well.
> Does anyone have any suggestions or improvements to the code below?
Only that it might be less hassle to wrap gethostname from pl/perl or
pl/python rather than adding a new C function, particularly if this is
only for DB testing and is not performance critical.

--
Craig Ringer

pgsql-general by date:

Previous
From: Ben Chobot
Date:
Subject: Re: Initdb fails on openwrt in "creating template1 database"
Next
From: saqib11@igis.nust.edu.pk
Date:
Subject: pgrouting extension with quantum gis